Deploying Wrappers
Deploying a Wrapper
For Standard ERC20 Tokens
// Deploy ERC20 wrapper for USDT
IAssetFactory factory = IAssetFactory(ASSET_FACTORY_ADDRESS);
address usdtWrapper = factory.deployERC20Wrapper(
USDT_ADDRESS, // Underlying token
ORACLE_ADDRESS, // Price oracle
"Wrapped USDT", // Wrapper name
"wUSDT" // Wrapper symbol
);For LP Tokens
// Deploy Uniswap V2 LP wrapper
address lpWrapper = factory.deployUniswapV2Wrapper(
UNI_V2_PAIR_ADDRESS, // LP token address
ORACLE_REGISTRY, // Oracle for pricing
"Wrapped UNI-V2",
"wUNI-V2"
);For Yield-Bearing Tokens
Wrapper Factory
Verification
Adding to Strategy
Best Practices
Example: Custom Wrapper
Related Documentation
Last updated