Set Documentation
Search…
Depositing in Yearn

Getting the Wrap Calldata from Yearn:

In order to deposit or withdraw your components on Yearn, you will need to call the wrap (wrapWithEther) or unwrap (unwrapWithEther) functions on the WrapModule.
Select examples:
This is an example of what to pass into the wrap function for WBTC to yvWBTC.
1
/**
2
* MANAGER-ONLY: Instructs the SetToken to wrap an underlying asset into a wrappedToken via a specified adapter.
3
*
4
* @param _setToken Instance of the SetToken
5
* @param _underlyingToken Address of the component to be wrapped
6
* @param _wrappedToken Address of the desired wrapped token
7
* @param _underlyingUnits Quantity of underlying units in Position units
8
* @param _integrationName Name of wrap module integration (mapping on integration registry)
9
*/
10
function wrap(
11
0xYourSetTokenAddress,
12
0x2260fac5e5542a773aa44fbcfedf7c193bc2c599,
13
0xA696a63cc78DfFa1a63E9E50587C197387FF6C7E,
14
3000,
15
YearnWrapAdapter
16
)
Copied!
Last modified 5mo ago
Copy link