Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better fiat stables #2125

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

better fiat stables #2125

wants to merge 2 commits into from

Conversation

0xngmi
Copy link
Member

@0xngmi 0xngmi commented Nov 24, 2024

Change code for tether and circle to be based partially on on-chain data

could be improved by using an api to get treasury rate at a point in time but i couldnt find any

@llamatester
Copy link

The circle.ts adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees circle.ts

🦙 Running CIRCLE.TS adapter 🦙
---------------------------------------------------
Start Date:	Sat, 23 Nov 2024 15:17:08 GMT
End Date:	Sun, 24 Nov 2024 15:17:08 GMT
---------------------------------------------------

ETHEREUM 👇
Backfill start time not defined
NO METHODOLOGY SPECIFIED
Daily fees: 3.48 M
Daily revenue: 3.48 M
End timestamp: 1732461427 (2024-11-24T15:17:07.000Z)

@llamatester
Copy link

The tether adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees tether

🦙 Running TETHER adapter 🦙
---------------------------------------------------
Start Date:	Sat, 23 Nov 2024 15:17:19 GMT
End Date:	Sun, 24 Nov 2024 15:17:19 GMT
---------------------------------------------------

ETHEREUM 👇
Backfill start time not defined
NO METHODOLOGY SPECIFIED
Daily fees: 8.65 M
Daily revenue: 8.65 M
End timestamp: 1732461438 (2024-11-24T15:17:18.000Z)

@llamatester
Copy link

The circle.ts adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees circle.ts

🦙 Running CIRCLE.TS adapter 🦙
---------------------------------------------------
Start Date:	Sat, 23 Nov 2024 15:58:11 GMT
End Date:	Sun, 24 Nov 2024 15:58:11 GMT
---------------------------------------------------

ETHEREUM 👇
Backfill start time not defined
NO METHODOLOGY SPECIFIED
Daily fees: 4.77 M
Daily revenue: 4.77 M
End timestamp: 1732463890 (2024-11-24T15:58:10.000Z)

@llamatester
Copy link

The tether adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees tether

🦙 Running TETHER adapter 🦙
---------------------------------------------------
Start Date:	Sat, 23 Nov 2024 15:58:23 GMT
End Date:	Sun, 24 Nov 2024 15:58:23 GMT
---------------------------------------------------

ETHEREUM 👇
Backfill start time not defined
NO METHODOLOGY SPECIFIED
Daily fees: 16.91 M
Daily revenue: 16.91 M
End timestamp: 1732463902 (2024-11-24T15:58:22.000Z)

@0xngmi 0xngmi marked this pull request as ready for review November 24, 2024 18:28
@g1nt0ki
Copy link
Member

g1nt0ki commented Nov 24, 2024

maybe chainlink/pyth has an oracle from which we can pull treasury rate on chain?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants