Saffron Pool v2
Introduction
Saffron Pool V2
Miscellaneous State Variables
Type | Visibility | Name | Description |
---|---|---|---|
|
|
| Governance address |
|
|
| Pending governance address if accepted |
|
|
| Deposit enabled switch (true=disabled; false=allowed) |
|
|
| Pool shutdown switch (true=shutdown; false=online) |
|
|
| Base asset token address |
|
|
| Saffron Adapter contract address |
|
|
| Fee manager contract address |
|
|
| Pool name (for frontends) |
|
|
| Senior tranche SaffronPositionToken totalSupply |
|
|
| Exchange rate from senior tranche tokens to base assets |
|
|
| Fee yield receiver balance |
|
|
| User holdings SaffronPositionToken (ERC20) |
|
|
| User holdings SaffronPositionNFT (Insurance Fund NFT) |
Constructor
Type | Name | Description |
---|---|---|
|
| Address of Saffron Adapter to interface with underlying platform |
|
| Address of Base Asset token to be managed |
|
| Symbol of provided LP token |
|
| Name of provided LP token |
|
| Name of the pool |
deposit()
Deposit base assets to the pool
Type | Name | Description |
---|---|---|
|
| Amount (wei) of Insurance Assets to be deposited |
withdraw()
Withdraw capital from the pool by burning SAFF-LP tokens
Type | Name | Description |
---|---|---|
|
| Amount (wei) of Insurance Assets to be deposited |
begin_unfreeze_NFT()
Begin to unfreeze an NFT so it may be withdrawn
Type | Name | Description |
---|---|---|
|
| Position NFT ID to be unfrozen |
update_exchange_rate()
Updates senior exchange rate based on current Auto Compounded earnings, if any. Also update the total supply for each tranche
get_latest_pool_holdings()
Updates senior exchange rate based on current Auto Compounded earnings, if any. Also update the total supply for each tranche
get_update_exchange_rate_vars()
Get internal state variables
get_yield_receiver_supply()
Get the calculated base asset holdings of all yield receivers by multiplying their token supplies by their exchange rates
set_exchange_rate()
Set values for yield receivers for waterfall mode (only valid while pool is in a shut-down state)
Type | Name | Description |
---|---|---|
|
| Yield receiver to be updated ( =0 senior tranche; !=0 fees) |
|
| New exchange rate for specified yield receiver |
set_fee_manager()
Set fee manager (usually insurance fund)
Type | Name | Description |
---|---|---|
|
| Address of fee manager |
withdraw_fees()
Withdraw protocol fees
Type | Name | Description |
---|---|---|
|
| Address of new pool |
shut_down_pool()
Set the shut-down state of the pool
Type | Name | Description |
---|---|---|
|
|
|
disable_deposits()
Disable deposits (waterfall mode)
Type | Name | Description |
---|---|---|
|
|
|
propose_governance()
Propose transfer of governance to new address
Type | Name | Description |
---|---|---|
|
| Address of proposed new governance |
accept_governance()
Accept the role of governance (must be called by previously proposed candidate)
set_adapter()
Set a new Saffron Adapter to interface with underlying platform
Type | Name | Description |
---|---|---|
|
| Address of Saffron Adapter to interface with underlying platform |
sweep_erc()
Transfer LP assets to Mojito Staking
Type | Name | Description |
---|---|---|
|
| Amount (wei) of LP Assets to be staked in Mojito |
|
| Address to receive swept assets |
Last updated