Skip to content

Tokenomics + Handling API keys as secrets#4

Merged
imadarchid merged 6 commits intomainfrom
imad/tokenomics
Feb 20, 2025
Merged

Tokenomics + Handling API keys as secrets#4
imadarchid merged 6 commits intomainfrom
imad/tokenomics

Conversation

@imadarchid
Copy link
Copy Markdown
Owner

@imadarchid imadarchid commented Feb 19, 2025

This PR introduces several changes to ensure that MADT is able to honor redemptions in case of fluctuations in the USD/MAD rate. It also introduces a sample API request to two providers for the DON to execute.

Changes

  • Rebase mechanism that inflates/deflates the supply.
  • API request to Exchangerate API and CurrencyAPI. Other providers can be added and a median rate can be taken in consideration.
  • Adding a deployAll script to enhance the dev UX.

@imadarchid
Copy link
Copy Markdown
Owner Author

imadarchid commented Feb 19, 2025

To-do:

  • Write the request to retrieve exchange rates + test it locally.
  • Include fee structure for oracle payment.
  • Set up rebasing mechanism (inflate supply when MAD appreciates versus dollar, depreciate otherwise).

@imadarchid
Copy link
Copy Markdown
Owner Author

Fee structure will be determined after I do some txs on testnet.

@imadarchid imadarchid merged commit 2f3d8cd into main Feb 20, 2025
2 checks passed
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.

1 participant