Saffron Insurance Fund
Introduction
Saffron Insurance Fund
Miscellaneous State Variables
Type | Visibility | Name | Description |
---|---|---|---|
|
|
| Saffron treasury to collect fees |
|
|
| Asset to insure the pool's senior tranche with |
|
|
| Base asset to accumulate from pool |
|
|
| SaffronPoolV2 this contract insures |
|
|
| Saffron Position NFT |
|
|
| Tranche indicated in NFT storage value |
|
|
| Total balance of all user LP tokens |
|
|
| Internal state for reentrancy guard |
Constructor
Type | Name | Description |
---|---|---|
|
| Address of LP asset to be managed |
|
|
deposit()
Deposit insurance_assets into the insurance fund
Type | Name | Description |
---|---|---|
|
| Amount (wei) of Insurance Assets to be deposited |
withdraw()
Withdraw users principal and earnings by redeeming their Saffron Position NFT
Type | Name | Description |
---|---|---|
|
| Position NFT ID to be withdrawn |
emergency_withdraw()
Emergency withdraw with as few interactions / state changes as possible / BUT still have to wait for expiration
Type | Name | Description |
---|---|---|
|
| Position NFT ID to be withdrawn |
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
Type | Name | Description |
---|---|---|
|
| Address of new pool |
set_treasury()
Set a new Saffron Treasury address
Type | Name | Description |
---|---|---|
|
| Address of new treasury |
pending_earnings()
Get pending earnings for a given Saffron Position NFT
Type | Name | Description |
---|---|---|
|
| Position NFT ID to be checked |
Last updated