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

Add LunaX as collateral to mirror protocol #87

Merged

Conversation

bharath-123
Copy link
Contributor

@bharath-123 bharath-123 commented Jan 27, 2022

  • Fetch the exchange rate from the lunax staking contract and use on chain oracle to convert the luna value of lunax to uusd
  • Add a lunax_swap function to perform a swap of lunax to luna and pass it on the luna swap hook so that the luna swapped can be converted to ust.

@csanti csanti changed the base branch from main to lunax-migration January 27, 2022 06:09
@csanti
Copy link
Contributor

csanti commented Jan 27, 2022

Same as #86

@csanti csanti merged commit 59011d1 into Mirror-Protocol:lunax-migration Jan 27, 2022
csanti added a commit that referenced this pull request Feb 3, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
* Add LunaX as collateral to mirror protocol (#87)

* revert mint contract to v2.1.1

* revert factory and col oracle to 2.1.1 + add lunax to 2.1.1 col oracle

* adapt collector for lunax and prepare migration

* register LunaX collateral on migration

* fix clippy

* add input validation to col_oracle migration

Co-authored-by: Bharath Vedartham <vedabharath12345@gmail.com>
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.

None yet

2 participants