adminto create new lending markets.
marketsmapping which is referred to by the Lender and Redeemer when retrieving principal tokens. Additionally, the YieldSpace AMM pools allow for users to exit their debt positions prior to maturation by providing liquidity for each market's ERC-5095 token.
admin. That said, its functionality is integral to the Lender and Redeemer, and is worth exploring. This section will describe the methods available to the MarketPlace
createMarket: this method creates markets by adding entries to the
marketsmapping. Each market needs to have principal tokens defined for each protocol to work. Additionally, this method mints a new ERC-5095 token for each new market. This token is considered Illuminate's principal token, and is held by users.
pause: this method stops access to YieldSpace pools for any given principal as defined in the
setAdmin: this method allows for setting the admin to a new address.
setPool: this method allows for setting an address in the
poolsattribute contains the YieldSpace AMM pool for Illuminate's principal token.
markets: this mapping maps Markets (which consist of an underlying (
address) and a maturity (
uint256)) to a list of principal tokens (
address). The protocol that the address maps to depends on the
pools: this mapping maps Markets to YieldSpace AMM pools (
address). These pools allow users to swap their ERC-5095 positions for the underlying asset prior to maturity.
Principals: this enum is referenced throughout Illuminate and states which interest rate swap protocols are supported. In addition, this enum defines the index through which the protocols can be referred to when they are stored in lists (as is done in the