Flash unwinder contracts and scripts, relay lane tuning, trustless bridge and token-aggregation updates.
Made-with: Cursor
This commit is contained in:
@@ -39,7 +39,8 @@ contract DODOIntegrationExternalUnwinderMainnetForkTest is Test {
|
||||
|
||||
function testFork_cWUSDCToUSDC_unwindsThroughMainnetDodoIntegration() public skipIfNoFork {
|
||||
uint256 amountIn = 1_000_000; // 1 cWUSDC
|
||||
deal(CWUSDC, address(unwinder), amountIn);
|
||||
deal(CWUSDC, address(this), amountIn);
|
||||
IERC20(CWUSDC).approve(address(unwinder), amountIn);
|
||||
|
||||
uint256 before = IERC20(USDC).balanceOf(address(this));
|
||||
uint256 amountOut = unwinder.unwind(CWUSDC, USDC, amountIn, 1, abi.encode(POOL_CWUSDC_USDC));
|
||||
|
||||
Reference in New Issue
Block a user