initialize_identity_depository
Permissionned - Only one per controller could be initiated, for 1:1 mint/redeem against a desired collateral mint.
Last updated
Was this helpful?
Permissionned - Only one per controller could be initiated, for 1:1 mint/redeem against a desired collateral mint.
Last updated
Was this helpful?
Checks
Anchor IDL accounts checks
Validates: same decimals for collateral_mint
and redeemable_mint
Validates: enforced mint used for collateral_mint
(hardcoded as USDC:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
now)
Handler
Initialises the depository
PDA ()
Initialises the collateral_vault
PDA
Set redeemable_amount_under_management_cap
to an initial value of 1000000 ui units.
Emits Anchor InitializeIdentityDepositoryEvent
event
-