Skip to content

Commit

Permalink
fix: update parameters in examples for new AAVE faucet tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
dyedm1 committed Sep 12, 2023
1 parent 180746a commit 0c4f905
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions examples/FirstPanoptionFinal.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,16 @@ contract FirstPanoption is Script {
salt: 1337
});

DAI.approve({spender: address(pp.collateralToken0()), amount: type(uint256).max});
WBTC.approve({spender: address(pp.collateralToken1()), amount: type(uint256).max});
WBTC.approve({spender: address(pp.collateralToken0()), amount: type(uint256).max});
DAI.approve({spender: address(pp.collateralToken1()), amount: type(uint256).max});

pp.collateralToken0().deposit({
assets: 100 * 10 ** 18,
assets: 10 ** 8,
receiver: vm.addr(vm.envUint("DEPLOYER_PRIVATE_KEY"))
});

pp.collateralToken1().deposit({
assets: 10 ** 7,
assets: 100 * 10 ** 18,
receiver: vm.addr(vm.envUint("DEPLOYER_PRIVATE_KEY"))
});

Expand All @@ -69,11 +70,11 @@ contract FirstPanoption is Script {
.addLeg({
legIndex: 0,
_optionRatio: 1,
_asset: 0,
_asset: 1,
_isLong: 0,
_tokenType: 0,
_tokenType: 1,
_riskPartner: 0,
_strike: 5000,
_strike: -5000,
_width: 2
});

Expand Down

0 comments on commit 0c4f905

Please sign in to comment.