Claimable
Inherits: IERC165
Author: Mure
Interface for claim functionality of pools with support for ERC-165 detection.
Functions
claim
function claim(ClaimRecord calldata claim) external returns (uint256 depositDelta, uint256 claimDelta);
deltas
function deltas(ClaimRecord calldata claimRecord)
external
pure
returns (uint256 depositDelta, uint256 claimDelta, uint256 fee);
Events
Claim
event Claim(address indexed depositor, uint256 indexed amount);
Errors
BalanceMismatch
error BalanceMismatch(uint256 collectedFunds, uint256 reserves);
Structs
ClaimRecord
struct ClaimRecord {
address claimCurrency;
address depositor;
uint256 share;
uint256 supply;
uint256 claimReserves;
uint256 depositReserves;
uint256 deposit;
uint256 totalCollected;
string poolName;
address custodian;
uint16 feePercentage;
}