Gearbox

This section provides general guidelines for interacting with the vault and outlines the appropriate functions to use for integrating the pools.

circle-info

The guide uses wstETH and kpkwstETH tokens as examples

Deposit

1

Call approve(address, uint256)arrow-up-right on the wstETH token

  • spender(address) = 0xa9d17f6d3285208280a1fd9b94479c62e0aaba64, i.e. kpkwstETH

  • value(amount) = token amount to deposit

2

Call depositWithReferral(uint256, address, uint256)arrow-up-right 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()arrow-up-right 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()arrow-up-right on Merkl distributor, passing in users, tokens, amounts and merkl proofs suggested by the Merkl UI

Last updated