-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Credix] Minting/Redeeming/CollectProfit IXs #152
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At first glance, look like it could work. To be tested on devnet.
Few nit, but we don't really mind as we are going to drop this repo soon enough
pages/dao/[symbol]/proposal/components/instructions/UXD/EditIdentityDepository.tsx
Show resolved
Hide resolved
.min(0, 'Redeemable amount under management cap should be min 0'), | ||
}); | ||
|
||
const RegisterCredixLpDepository = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name should be EditCredixLpDepository
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleaned up 👌
} | ||
error={formErrors['collateralName']} | ||
> | ||
<SelectOptionList list={getDepositoryMintSymbols(connection.cluster)} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Credix is only USDC for now and most likely also in the future, you could simplify all form by removing Collateral selection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah agreed, I was thinking about this too, but devnet has a special collateral that is different from mercurial, i was unsure what to do as I didnt want to hardcode too much things
Was able to generate transactions proposals that looks good!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Abstract
This PR adds integration with the onchain credix smart contract by minting UXD when depositing collateral in credix and burning UXD when withdrawing collateral from credix
New instructions set:
register_credix_lp_depository
mint_with_credix_lp_depository
redeem_from_credix_lp_depository
collect_profit_of_credix_lp_depository
edit_credix_lp_depository
PR Combo:
Generated transactions: