InsuranceFund
Last updated
Was this helpful?
Last updated
Was this helpful?
If insurance has negative accountValue of vault, will deposit amount to vault
If balance of InsuranceFund
is over distributionThreshold
, transfer diff to SurplusBeneficiary
Insurance Fund should only distribute revenues surplus earned on the platform. In other words, funds directly held in the Insurance Fund contract (insuranceFundWalletBalance
) contributes to insuranceFundTotalBalance
but not necessarily to surplus
. Anyone can send funds to Insurance Fund and help it reach distributionThreshold
sooner, but once surplus
exceeds the revenues earned on the platform (insuranceFundFreeCollateral
), sending more funds won’t increase surplus
further
surplus
uint256
The surplus of distribution
Get settlement token address
token
address
The address of settlement token
(Deprecated function, will be removed in the next release), Get borrower(Vault
) address
vault
address
The address of Vault
Get Vault
address
vault
address
The address of Vault
Get insurance distributution threshold, this value is for fee distribution
distributionThreshold
uint256
The distribution threshold number
Get SurplusBeneficiary
surplusBeneficiary
address
The address of SurplusBeneficiary
Get InsuranceFund
capacity
capacityX10_S
int256
The capacity value (settlementTokenValue + walletBalance) in settlement token's decimals
Return Values:
Return Values:
Return Values:
Return Values:
Return Values:
Return Values:
Return Values: