Gearbox
This section provides general guidelines for interacting with the vault and outlines the appropriate functions to use for integrating the pools.
The guide uses wstETH and kpkwstETH tokens as examples
Deposit
Call approve(address, uint256) on the wstETH token
spender(address) =
0xa9d17f6d3285208280a1fd9b94479c62e0aaba64, i.e. kpkwstETHvalue(amount) = token amount to deposit
Call depositWithReferral(uint256, address, uint256) on kpkwstETH
assets(uint256) = tokens to be deposited
receiver(address) = your address, or the address to which you want the receipt tokens sent
referralCode(uint256) =
4143, i.e. kpk referral code
Withdraw
Call withdraw() on kpkwstETH
assets(uint256) = Amount of wstETH tokens to withdraw
receiver(address) = your address, or the address to which you want the WETH or wstETH tokens sent
owner(address) = your address, or the address from which the receipt tokens will be burned
Claim rewards
Merkl campaign reward tokens can be claimed through the following actions:
Call claim() on Merkl distributor, passing in users, tokens, amounts and merkl proofs suggested by the Merkl UI
Last updated