FeeDistributor
Overview
The FeeDistributor.vy
contract allows users to claim APW locking rewards.
FeeDistributor Methods
claim
Claim fees for _addr.
def claim(_addr: address = msg.sender) -> uint256
Input Parameter
Type
Description
_addr
address
The user address to claim for.
Return Parameter
Type
Description
amount
uint256
The amount claimed.
claim_many
Make multiple fee claims in a single call.
def claim_many(_receivers: address[20]) -> bool
Input Parameter
Type
Description
_receivers
address[20]
List of addresses to claim for. Claiming terminates at the first ZERO_ADDRESS.
Return Parameter
Type
Description
success
bool
True if execution succeeded.
checkpoint_token
Updates the token checkpoint.
def checkpoint_token()
checkpoint_total_supply
Update the veAPW total supply checkpoint.
def checkpoint_total_supply()
View Methods
ve_for_at
Get the veAPW balance for _user
at _timestamp
def ve_for_at(_user: address, _timestamp: uint256) -> uint256
Input Parameter
Type
Description
_user
address
The address to query balance for.
_timestamp
uint256
The epoch time to query balance at.
Return Parameter
Type
Description
balance
uint256
The veAPW balance.
Last updated