Saffron Pool v2
Last updated
Last updated
Saffron Pool V2
address
public
governance
Governance address
address
public
new_governance
Pending governance address if accepted
bool
public
deposits_disabled
Deposit enabled switch (true=disabled; false=allowed)
bool
public
shut_down
Pool shutdown switch (true=shutdown; false=online)
IERC20
public
base_asset
Base asset token address
address
public
adapter
Saffron Adapter contract address
address
public
fee_manager
Fee manager contract address
string
public
pool_name
Pool name (for frontends)
uint256
public
senior_token_supply
Senior tranche SaffronPositionToken totalSupply
uint256
public
senior_exchange_rate
Exchange rate from senior tranche tokens to base assets
uint256
public
fee_holdings
Fee yield receiver balance
SaffronPositionToken
public
position_token
User holdings SaffronPositionToken (ERC20)
SaffronPositionNFT
public
NFT
User holdings SaffronPositionNFT (Insurance Fund NFT)
address
_adapter
Address of Saffron Adapter to interface with underlying platform
address
_base_asset
Address of Base Asset token to be managed
string
name
Symbol of provided LP token
string
symbol
Name of provided LP token
string
_pool_name
Name of the pool
deposit()
Deposit base assets to the pool
uint256
amount
Amount (wei) of Insurance Assets to be deposited
withdraw()
Withdraw capital from the pool by burning SAFF-LP tokens
uint256
lp_amount
Amount (wei) of Insurance Assets to be deposited
begin_unfreeze_NFT()
Begin to unfreeze an NFT so it may be withdrawn
uint256
token_id
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)
uint256
yield_receiver
Yield receiver to be updated ( =0 senior tranche; !=0 fees)
uint256
value
New exchange rate for specified yield receiver
set_fee_manager()
Set fee manager (usually insurance fund)
address
to
Address of fee manager
withdraw_fees()
Withdraw protocol fees
address
_pool
Address of new pool
shut_down_pool()
Set the shut-down state of the pool
bool
_shut_down
true
shut-down; false
not shut-down
disable_deposits()
Disable deposits (waterfall mode)
bool
_deposits_disabled
true
disable deposits; false
allow deposits
propose_governance()
Propose transfer of governance to new address
address
to
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
address
_adapter
Address of Saffron Adapter to interface with underlying platform
sweep_erc()
Transfer LP assets to Mojito Staking
address
amount_qlp
Amount (wei) of LP Assets to be staked in Mojito
address
to
Address to receive swept assets