Skip to main content

ITokemakPool

Functions

underlyer

function underlyer() external returns (address)

balanceOf

function balanceOf(
address holder
) external returns (uint256)

Parameters

NameTypeDescription
holderaddress

requestWithdrawal

function requestWithdrawal(
uint256 amount
) external

Parameters

NameTypeDescription
amountuint256

ITokemakRewards

Functions

claim

function claim(
struct ITokemakRewards.Recipient recipient,
uint8 v,
bytes32 r,
bytes32 s
) external

Parameters

NameTypeDescription
recipientstruct ITokemakRewards.Recipient
vuint8
rbytes32
sbytes32

TokemakPCVDepositBase

Functions

constructor

function constructor(
address _core,
address _pool,
address _rewards
) internal

Tokemak PCV Deposit constructor

Parameters

NameTypeDescription
_coreaddressFei Core for reference
_pooladdressTokemak pool to deposit in
_rewardsaddressTokemak rewards contract to claim TOKE incentives

balance

function balance() public returns (uint256)

returns total balance of PCV in the Deposit excluding the FEI

balanceReportedIn

function balanceReportedIn() public returns (address)

display the related token of the balance reported

requestWithdrawal

function requestWithdrawal(
uint256 amountUnderlying
) external

request to withdraw a given amount of tokens to Tokemak. These tokens will be available for withdraw in the next cycles. This function can be called by the contract admin, e.g. the OA multisig, in anticipation of the execution of a DAO proposal that will call withdraw().

note that withdraw() calls will revert if this function has not been called before.

Parameters

NameTypeDescription
amountUnderlyinguint256of tokens to withdraw in a subsequent withdraw() call.

claimRewards

function claimRewards(
uint256 cycle,
uint256 amount,
uint8 v,
bytes32 r,
bytes32 s
) external

For an example of IPFS json file, see :

Parameters

NameTypeDescription
cycleuint256
amountuint256
vuint8
rbytes32
sbytes32

Events

ClaimRewards

event ClaimRewards(
address _caller,
address _token,
address _to,
uint256 _amount
)

event generated when rewards are claimed

Parameters

NameTypeDescription
_calleraddress
_tokenaddress
_toaddress
_amountuint256

RequestWithdrawal

event RequestWithdrawal(
address _caller,
address _to,
uint256 _amount
)

event generated when a withdrawal is requested

Parameters

NameTypeDescription
_calleraddress
_toaddress
_amountuint256