Skip to content

Commit

Permalink
deploy zerolend wrapper on linea
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrasecreth committed Aug 9, 2024
1 parent e73615b commit 3ca8d23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ repayment approval.
| Canonical | 0x6962ba38D6493B9Ed7E0a4b74624c43D844E1438 | Optimism | 94720 | Variable | [UniswapV3Wrapper](src/uniswapV3/UniswapV3Wrapper.sol) |
| Uniswap v3 + Pendle | 0xa353Fd50210786F0E038ddD574A21d0CCefb3163 | Arbitrum One | 497567 | Variable | [UniswapV3PendleWrapper](src/pendle/UniswapV3PendleWrapper.sol) |
| Velodrome | 0xcF13CDdbA3aEf757c52466deC310F221e06238d6 | Optimism | 163919 | Variable | [SolidlyWrapper](src/solidly/SolidlyWrapper.sol) |
| ZeroLend | 0xA48Cc0e4159C51d73B42c824f1444D1C1cbdA531 | Ethereum | 212569 | 0 | [AaveWrapper](src/aave/AaveWrapper.sol) |
| ZeroLend | 0xA48Cc0e4159C51d73B42c824f1444D1C1cbdA531 | Ethereum, Linea | 212569 | 0 | [AaveWrapper](src/aave/AaveWrapper.sol) |

Disclaimer: The gas costs are calculated for calling `flashLoan` on each wrapper for an arbitrarily chosen token and
loan amount. Gas refunds are not taken into account and might be significant in some cases. Calling the underlying flash
Expand Down
12 changes: 10 additions & 2 deletions script/AaveDeploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ contract AaveDeploy is Script {
POLYGON,
OPTIMISM,
BASE,
GNOSIS
GNOSIS,
LINEA
}

struct AaveDeployParams {
Expand All @@ -28,7 +29,7 @@ contract AaveDeploy is Script {
}

bytes32 public constant SALT = keccak256("alcueca-2");
Network public constant NETWORK = Network.MAINNET;
Network public constant NETWORK = Network.LINEA;

Registry internal registry = Registry(0xa348320114210b8F4eaF1b0795aa8F70803a93EA);

Expand Down Expand Up @@ -98,6 +99,13 @@ contract AaveDeploy is Script {
poolDataProvider: address(0)
})
);
deployParams[Network.LINEA].push(
AaveDeployParams({
name: "ZeroLend",
addressProvider: 0xC44827C51d00381ed4C52646aeAB45b455d200eB,
poolDataProvider: address(0)
})
);
}

function run() public {
Expand Down

0 comments on commit 3ca8d23

Please sign in to comment.