Deep Dive
ShieldPayoutDAO contract
This contract plays a role only after a loan market is closed. It’s main purpose is to handle SToken and UToken payouts.
Dao-only
Function | Params | Description |
---|---|---|
initialize | LSTcontract ,currencyDao ,marketDao | Called only by the ProtocolDao, but initiated by the Deployer. Stores the following information
|
register_shield_market | currency ,expiry ,underlying ,strike_price | Called only by the MarketDao. |
Common
Function | Params | Description |
---|---|---|
exercise_s | currency ,expiry ,underlying ,strike_price ,X | Transfers a payout to the caller in LCurrency for X STokens for the given currency, expiry, underlying, and strike_price. Note: The SToken has to have expired in order for payout to occur. |
exercise_u | currency ,expiry ,underlying ,strike_price ,X | Transfers a payout to the caller in LCurrency for X UTokens for the given currency, expiry, underlying, and strike_price. Note: The UToken has to have expired in order for payout to occur. |
Escape-hatch
Function | Params | Description |
---|---|---|
pause | - | Pauses all operations of the contract. |
unpause | - | Resumes all operations of the contract. |
escape_hatch_erc20 | address ,is_LERC20 | Transfers the entire contract balance of ERC20 or LERC20 token with the given address to the Escape Hatch Token Holder wallet. |
escape_hatch_mft | mft_type ,currency ,expiry ,underlying ,strike_price | Transfers the entire contract balance of the given type of MFT with the ID represented by the given currency, expiry, underlying, and strike_price. Eg,
|