Key Roles
Describes the abilities and roles of the admin
Admin
Our Lender, Redeemer and MarketPlace contract rely on an admin
to control certain aspects. They are described on a contract basis below.
Lender
In the Lender contract, the admin
has the following privileges:
approve
: the admin is responsible for executing the approval of the redeemer contract. This is necessary to facilitate the usage of Principal Tokens by the RedeemersetAdmin
: the admin is the only one that can transfer admin powerssetFee
: the admin can see a fee rate. This fee rate has a minimum value (which limits the amount of fees extracted per transaction)setMarketPlace
: the admin can set the MarketPlace contractscheduleWithdrawal
andscheduleFeeChange
: the admin can schedule these actions (there is a 3 day holding period)blockWithdrawal
andblockFeeChange
: the admin may block fee changes and withdrawalswithdrawFee
: the admin may withdraw fees from the contract. The amount extractable from the contract is limited by thefees
mappingwithdraw
: the admin may withdraw the entire balance of the token (this is an emergency measure)pause
: the admin may pause certain markets. This may be necessary in the event that an integrated principal token experiences insolvency or their own pauses
Redeemer
In the Redeemer contract, the admin
has the following privileges:
setAdmin
: the admin is the only one that can transfer admin powerssetMarketPlace
: the admin can set the MarketPlace contractsetConverter
: the admin can set the Converter contractsetLender
: the admin can set the Lender contractsetFee
: the admin can see a fee rate for automatic redemptions. This fee rate has a minimum value (which limits the amount of fees extracted per transaction)pauseRedemptions
: the admin may pause the redemption process. This is an emergency measure
MarketPlace
In the MarketPlace contract, the admin
has the following privileges:
createMarket
: the admin can create new marketssetPrincipal
: the admin can add principal tokens to a market if one has not already been set for the protocolsetPool
: the admin can set a Yield Space Pool for swapping Illuminate principal tokens and the underlyingsetAdmin
: the admin is the only one that can transfer admin powers
Lenders
These are the users of the protocol. They will be able to use Illuminate to arbitrage fixed rates markets and lend conveniently via our protocol and API.
Lender
lend
: this method will swap underlying assets for Illuminate's principal tokens in a given marketmint
: this method will mint Illuminate principal tokens in exchange for principal tokensbatch
: this method allows the user to chain multiplelend
andmint
calls together efficiently
Redeemer
redeem
: this method allows the user to swap their Illuminate principal tokens for the underlying asset after maturity
MarketPlace
sellPrincipalToken
: allows user to swap Illuminate principal tokens for the underlying asset prior to maturitybuyPrincipalToken
: allows user to swap underlying tokens for Illuminate principal tokenssellUnderlying
: allows user to swap underlying tokens for Illuminate principal tokensbuyUnderlying
: allows user to swap Illuminate principal tokens for underlying tokensbatch
: this method allows the user to chain multiple swap methods together efficiently
Last updated