Saffron Insurance Fund
Last updated
Last updated
Saffron Insurance Fund
Type | Visibility | Name | Description |
---|---|---|---|
Type | Name | Description |
---|---|---|
deposit()
Deposit insurance_assets into the insurance fund
withdraw()
Withdraw users principal and earnings by redeeming their Saffron Position NFT
emergency_withdraw()
Emergency withdraw with as few interactions / state changes as possible / BUT still have to wait for expiration
update()
Update state and accumulated assets_per_share
total_principal()
Get total amount of Insurance Assets held by pool
set_pool()
Set a new Saffron Pool address
set_treasury()
Set a new Saffron Treasury address
pending_earnings()
Get pending earnings for a given Saffron Position NFT
Type | Name | Description |
---|---|---|
Type | Name | Description |
---|---|---|
Type | Name | Description |
---|---|---|
Type | Name | Description |
---|---|---|
Type | Name | Description |
---|---|---|
Type | Name | Description |
---|---|---|
uint256
principal
Amount (wei) of Insurance Assets to be deposited
uint256
token_id
Position NFT ID to be withdrawn
uint256
token_id
Position NFT ID to be withdrawn
address
_pool
Address of new pool
address
_treasury
Address of new treasury
uint256
token_id
Position NFT ID to be checked
address
public
treasury
Saffron treasury to collect fees
address
public
insurance_asset
Asset to insure the pool's senior tranche with
address
public
pool_base_asset
Base asset to accumulate from pool
SaffronPoolV2
public
pool
SaffronPoolV2 this contract insures
SaffronPositionNFT
public
NFT
Saffron Position NFT
uint256
public
TRANCHE
Tranche indicated in NFT storage value
uint256
public
total_supply_lp
Total balance of all user LP tokens
uint256
private
_update_status
Internal state for reentrancy guard
address
_lp_address
Address of LP asset to be managed
string
_name