ClankerFeeLocker
Documentation of Clanker's ClankerFeeLocker
The ClankerFeeLocker contract is the user-facing contract for managing the fees generated from the tokens. Anyone is able to trigger the claim()
function to transfer fees from the fee locker to the user's address. This design decision was made because many users point their fees to multisigs or other contracts which cannot trigger the claim()
function themselves.
User Facing Functions:
// callable by anyone, transfers the available fees to the recipient
//
// note: the 'token' parameter is the token that is being claimed, not the token
// that is generating the fees. In other places in Clanker, the 'token' parameter
// is the token that is generating the fees.
function claim(address feeOwner, address token) external;
// view function to return the amount of `token` fees available to claim for a `feeOwner`
function availableFees(address feeOwner, address token) external view returns (uint256);
Last updated