Skip to content

Commit

Permalink
Merge pull request #105 from 1inch/feature/deploy-aave-wrapper-v3
Browse files Browse the repository at this point in the history
[SC-1028] Deploy AaveWrapperV3
  • Loading branch information
ZumZoom authored Dec 26, 2023
2 parents ad91d90 + f9aeeb3 commit 92ecd69
Show file tree
Hide file tree
Showing 9 changed files with 1,121 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ If no direct liquidity pair exists between two tokens, the spot price aggregator
* WETH - [0x2b36053EB3BC1D68f51Bb7916D1503D1556f3ffc](https://etherscan.io/address/0x2b36053EB3BC1D68f51Bb7916D1503D1556f3ffc)
* AaveV1 - [0x8C00a411Fe8983525F82CFCe34fe4B092d9E525d](https://etherscan.io/address/0x8C00a411Fe8983525F82CFCe34fe4B092d9E525d)
* AaveV2 - [0x06cC74503B6d1eB6D4d6Bc402f48fC07b804105f](https://etherscan.io/address/0x06cC74503B6d1eB6D4d6Bc402f48fC07b804105f)
* AaveV3 - [0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573](https://etherscan.io/address/0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573)
* Compound - [0x7C327E1Ee66d4cF7F4053387241351FDc95A0c04](https://etherscan.io/address/0x7C327E1Ee66d4cF7F4053387241351FDc95A0c04)
* YVault - [0x9FF110f132d988bfa9bC6a21851Da1aF3aC6EaF8](https://etherscan.io/address/0x9FF110f132d988bfa9bC6a21851Da1aF3aC6EaF8)
* stETH - [0x26daCf7E879b18FE658326ddD3ABC0D6910B3E9F](https://etherscan.io/address/0x26daCf7E879b18FE658326ddD3ABC0D6910B3E9F)
Expand Down Expand Up @@ -143,6 +144,7 @@ If no direct liquidity pair exists between two tokens, the spot price aggregator

* WMATIC - [0xA0446D8804611944F1B527eCD37d7dcbE442caba](https://polygonscan.com/address/0xA0446D8804611944F1B527eCD37d7dcbE442caba)
* AaveV2 - [0x138CE40d675F9a23E4D6127A8600308Cf7A93381](https://polygonscan.com/address/0x138CE40d675F9a23E4D6127A8600308Cf7A93381)
* AaveV3 - [0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573](https://polygonscan.com/address/0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573)

</details>

Expand Down Expand Up @@ -178,6 +180,7 @@ If no direct liquidity pair exists between two tokens, the spot price aggregator

<details><summary>Supported wrappers</summary>

* AaveV3 - [0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573](https://optimistic.etherscan.io/address/0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573)
* // todo: add BaseCoinWrapper

</details>
Expand Down Expand Up @@ -217,6 +220,7 @@ If no direct liquidity pair exists between two tokens, the spot price aggregator
<details><summary>Supported wrappers</summary>

* WETH - [0x0F85A912448279111694F4Ba4F85dC641c54b594](https://arbiscan.io/address/0x0F85A912448279111694F4Ba4F85dC641c54b594)
* AaveV3 - [0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573](https://arbiscan.io/address/0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573)

</details>

Expand Down Expand Up @@ -252,6 +256,7 @@ If no direct liquidity pair exists between two tokens, the spot price aggregator

* WAVAX - [0x046605839c01C54921f4aA1AAa245E88227707D8](https://snowtrace.io/address/0x046605839c01C54921f4aA1AAa245E88227707D8)
* AaveV2 - [0x8Aa57827C3D147E39F1058517939461538D9C56A](https://snowtrace.io/address/0x8Aa57827C3D147E39F1058517939461538D9C56A)
* AaveV3 - [0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573](https://snowtrace.io/address/0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573)

</details>

Expand Down Expand Up @@ -291,6 +296,7 @@ If no direct liquidity pair exists between two tokens, the spot price aggregator
<details><summary>Supported wrappers</summary>

* WXDAI - [0xB89A664FdAf504CDc7826B97Ba6e522d9b78dbE7](https://gnosisscan.io/address/0xB89A664FdAf504CDc7826B97Ba6e522d9b78dbE7)
* AaveV3 - [0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573](https://gnosisscan.io/address/0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573)

</details>

Expand Down Expand Up @@ -331,6 +337,7 @@ If no direct liquidity pair exists between two tokens, the spot price aggregator

* WFTM - [0x046605839c01C54921f4aA1AAa245E88227707D8](https://ftmscan.com/address/0x046605839c01C54921f4aA1AAa245E88227707D8)
* AaveV2 - [0xa0c978c28AB8aEfc95bF58e68A05ce6B9dEAc5A9](https://ftmscan.com/address/0xa0c978c28AB8aEfc95bF58e68A05ce6B9dEAc5A9)
* AaveV3 - [0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573](https://ftmscan.com/address/0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573)
* Scream - [0x7d18d5Ba1FA30Da1AD757c57eb643564CA02922D](https://ftmscan.com/address/0x7d18d5Ba1FA30Da1AD757c57eb643564CA02922D)

</details>
Expand Down Expand Up @@ -479,6 +486,7 @@ If no direct liquidity pair exists between two tokens, the spot price aggregator
<details><summary>Supported wrappers</summary>

* WETH - [0x3Ce81621e674Db129033548CbB9FF31AEDCc1BF6](https://basescan.org/address/0x3Ce81621e674Db129033548CbB9FF31AEDCc1BF6)
* AaveV3 - [0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573](https://basescan.org/address/0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573)

</details>

Expand Down
137 changes: 137 additions & 0 deletions deployments/arbitrum/AaveWrapperV3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"address": "0x0c8fc7a71C28c768FDC1f7d75835229beBEB1573",
"abi": [
{
"inputs": [
{
"internalType": "contract ILendingPoolV3",
"name": "lendingPool",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "NotAddedMarket",
"type": "error"
},
{
"inputs": [],
"name": "NotRemovedMarket",
"type": "error"
},
{
"inputs": [],
"name": "NotSupportedToken",
"type": "error"
},
{
"inputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"name": "aTokenToToken",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20[]",
"name": "tokens",
"type": "address[]"
}
],
"name": "addMarkets",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20[]",
"name": "tokens",
"type": "address[]"
}
],
"name": "removeMarkets",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"name": "tokenToaToken",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20",
"name": "token",
"type": "address"
}
],
"name": "wrap",
"outputs": [
{
"internalType": "contract IERC20",
"name": "wrappedToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "rate",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"receipt": {
"to": "0xD935a2bb926019E0ed6fb31fbD5b1Bbb7c05bf65",
"from": "0x56E44874F624EbDE6efCc783eFD685f0FBDC6dcF",
"contractAddress": null,
"gasUsed": "6679461",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0x22e5341ad7d46f57716001cb69f7ba0c376a7120836f7f84c704803a2d875bb7",
"logs": [],
"blockNumber": 162360157,
"cumulativeGasUsed": "6679461",
"status": 1
},
"args": [
"0x69FA688f1Dc47d4B5d8029D5a35FB7a548310654"
],
"numDeployments": 1,
"bytecode": "0x60a03461007057601f6107a238819003918201601f19168301916001600160401b038311848410176100755780849260209460405283398101031261007057516001600160a01b038116810361007057608052604051610716908161008c8239608051818181608201526102060152f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe604060808152600490600436101561001657600080fd5b6000803560e01c8063023276f01461040757806394a32b4b146103a2578063a928058b1461033e578063bfef7bdf146101db5763da40385d1461005857600080fd5b346101d85761006636610502565b92819273ffffffffffffffffffffffffffffffffffffffff92837f000000000000000000000000000000000000000000000000000000000000000016945b86518110156101d457846100b8828961064c565b51168351907fd2493b6c0000000000000000000000000000000000000000000000000000000082528582015260609081816024818b5afa9182156101ca5790879291859261019b575b5050168015610172579060019186610119838b61064c565b511690808552838a8961015d866020938a85528b8b207fffffffffffffffffffffffff0000000000000000000000000000000000000000988982541617905561064c565b511687525285852091825416179055016100a4565b505050517f54279e74000000000000000000000000000000000000000000000000000000008152fd5b6101ba9250803d106101c3575b6101b28183610492565b8101906106b0565b50503880610101565b503d6101a8565b85513d86823e3d90fd5b5080f35b80fd5b50903461033a576101eb36610502565b908273ffffffffffffffffffffffffffffffffffffffff94857f000000000000000000000000000000000000000000000000000000000000000016945b8451811015610336578661023c828761064c565b51168451907fd2493b6c0000000000000000000000000000000000000000000000000000000082528382015260609081816024818b5afa91821561032c5790899291869261030d575b50501680156102e557906001918452602084815282868620917fffffffffffffffffffffffff0000000000000000000000000000000000000000928381541690558a6102d1858b61064c565b511687525285852090815416905501610228565b8285517f7b609a5b000000000000000000000000000000000000000000000000000000008152fd5b6103239250803d106101c3576101b28183610492565b50503880610285565b86513d87823e3d90fd5b8280f35b5080fd5b50903461033a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261033a576020918173ffffffffffffffffffffffffffffffffffffffff918261039261046a565b1681528085522054169051908152f35b50903461033a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261033a576020918173ffffffffffffffffffffffffffffffffffffffff91826103f661046a565b168152600185522054169051908152f35b50346101d85760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d8575061044861044361046a565b6105c0565b73ffffffffffffffffffffffffffffffffffffffff8351921682526020820152f35b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361048d57565b600080fd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176104d357604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc83011261048d5767ffffffffffffffff9160043583811161048d578160238201121561048d5780600401359384116104d3578360051b906040519461056e6020840187610492565b85526024602086019282010192831161048d57602401905b828210610594575050505090565b813573ffffffffffffffffffffffffffffffffffffffff8116810361048d578152908301908301610586565b73ffffffffffffffffffffffffffffffffffffffff809116600052600060205280604060002054169060016020526040600020541681151560001461060d575090670de0b6b3a764000090565b905080156106225790670de0b6b3a764000090565b60046040517fc8a08d6f000000000000000000000000000000000000000000000000000000008152fd5b80518210156106605760209160051b010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b519073ffffffffffffffffffffffffffffffffffffffff8216820361048d57565b9081606091031261048d576106c48161068f565b916106dd60406106d66020850161068f565b930161068f565b9056fea2646970667358221220065609fae4446b57eb6c7cb87814770721ab01b22f7d08c925d98ecbd1ef993564736f6c63430008170033",
"deployedBytecode": "0x604060808152600490600436101561001657600080fd5b6000803560e01c8063023276f01461040757806394a32b4b146103a2578063a928058b1461033e578063bfef7bdf146101db5763da40385d1461005857600080fd5b346101d85761006636610502565b92819273ffffffffffffffffffffffffffffffffffffffff92837f000000000000000000000000000000000000000000000000000000000000000016945b86518110156101d457846100b8828961064c565b51168351907fd2493b6c0000000000000000000000000000000000000000000000000000000082528582015260609081816024818b5afa9182156101ca5790879291859261019b575b5050168015610172579060019186610119838b61064c565b511690808552838a8961015d866020938a85528b8b207fffffffffffffffffffffffff0000000000000000000000000000000000000000988982541617905561064c565b511687525285852091825416179055016100a4565b505050517f54279e74000000000000000000000000000000000000000000000000000000008152fd5b6101ba9250803d106101c3575b6101b28183610492565b8101906106b0565b50503880610101565b503d6101a8565b85513d86823e3d90fd5b5080f35b80fd5b50903461033a576101eb36610502565b908273ffffffffffffffffffffffffffffffffffffffff94857f000000000000000000000000000000000000000000000000000000000000000016945b8451811015610336578661023c828761064c565b51168451907fd2493b6c0000000000000000000000000000000000000000000000000000000082528382015260609081816024818b5afa91821561032c5790899291869261030d575b50501680156102e557906001918452602084815282868620917fffffffffffffffffffffffff0000000000000000000000000000000000000000928381541690558a6102d1858b61064c565b511687525285852090815416905501610228565b8285517f7b609a5b000000000000000000000000000000000000000000000000000000008152fd5b6103239250803d106101c3576101b28183610492565b50503880610285565b86513d87823e3d90fd5b8280f35b5080fd5b50903461033a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261033a576020918173ffffffffffffffffffffffffffffffffffffffff918261039261046a565b1681528085522054169051908152f35b50903461033a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261033a576020918173ffffffffffffffffffffffffffffffffffffffff91826103f661046a565b168152600185522054169051908152f35b50346101d85760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101d8575061044861044361046a565b6105c0565b73ffffffffffffffffffffffffffffffffffffffff8351921682526020820152f35b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361048d57565b600080fd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176104d357604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc83011261048d5767ffffffffffffffff9160043583811161048d578160238201121561048d5780600401359384116104d3578360051b906040519461056e6020840187610492565b85526024602086019282010192831161048d57602401905b828210610594575050505090565b813573ffffffffffffffffffffffffffffffffffffffff8116810361048d578152908301908301610586565b73ffffffffffffffffffffffffffffffffffffffff809116600052600060205280604060002054169060016020526040600020541681151560001461060d575090670de0b6b3a764000090565b905080156106225790670de0b6b3a764000090565b60046040517fc8a08d6f000000000000000000000000000000000000000000000000000000008152fd5b80518210156106605760209160051b010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b519073ffffffffffffffffffffffffffffffffffffffff8216820361048d57565b9081606091031261048d576106c48161068f565b916106dd60406106d66020850161068f565b930161068f565b9056fea2646970667358221220065609fae4446b57eb6c7cb87814770721ab01b22f7d08c925d98ecbd1ef993564736f6c63430008170033"
}
Loading

0 comments on commit 92ecd69

Please sign in to comment.