RewardsEscrow
Functions:
Events:
Graphs:
Function Definitions:
constructor()
isClaimable()
Parameter Name | Type | Description |
---|---|---|
| bytes32 | Bytes32 escrow ID |
getClaimableAmount()
Parameter Name | Type | Description |
---|---|---|
| bytes32 | Bytes32 escrow ID |
getEscrowIdsByUser()
Parameter Name | Type | Description |
---|---|---|
| address | address |
getEscrows()
there is no check to ensure that all escrows are owned by the same account. Make sure to account for this either by only sending ids for a specific account or by filtering the Escrows by account later on.
Parameter Name | Type | Description |
---|---|---|
| bytes32[] | array of escrow ids |
lock()
This creates a separate escrow structure which can later be iterated upon to unlock the escrowed funds
claimReward()
Uses the escrowId at the specified index of escrowIdsByAddress. This function is used when a user only wants to claim a specific escrowVault or if they decide the gas cost of claimRewards is too high for now. (lower cost but also lower reward)
claimRewards()
Uses the vaultIds at the specified indices of escrowIdsByAddress. This function is used when a user wants to claim multiple escrowVaults at once (probably most of the time) prevention for gas overflow should be handled in the frontend
addAuthorizedContract()
removeAuthorizedContract()
Events
Locked
RewardsClaimed
TokenAdded
AddAuthorizedContract
RemoveAuthorizedContract
Graphs
Dependency Graph
Inheritance Graph
Last updated