Skip to content

Commit

Permalink
Merge pull request #91 from 1inch/feature/deploy-dodo-mainnet
Browse files Browse the repository at this point in the history
[SC-587] Deploy Dodo and DodoV2
  • Loading branch information
zZoMROT authored Sep 17, 2023
2 parents 730afb1 + 86f4845 commit 38be6b3
Show file tree
Hide file tree
Showing 5 changed files with 222 additions and 54 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ If no direct liquidity pair exists between two tokens, the spot price aggregator
* UniswapV3 - [0xE85B42805e046D1933EB8e1C543C4da4E5e8fFa3](https://etherscan.io/address/0xE85B42805e046D1933EB8e1C543C4da4E5e8fFa3)
* Curve - [0xAD9393D581f1F4F91EED5B1C165eac8740A41f6E](https://etherscan.io/address/0xAD9393D581f1F4F91EED5B1C165eac8740A41f6E)
* Pancake 3 - [0xB4039b37d09772801a51764537c167445f52F48b](https://etherscan.io/address/0xB4039b37d09772801a51764537c167445f52F48b)
* Dodo - [0x0A7c4d89e1629f189Eb12dd716B178d1b90D9f66](https://etherscan.io/address/0x0A7c4d89e1629f189Eb12dd716B178d1b90D9f66)
* DodoV2 - [0x03aA019F3B78110e030c34e9fA98047A1f62859A](https://etherscan.io/address/0x03aA019F3B78110e030c34e9fA98047A1f62859A)

</details>

Expand Down Expand Up @@ -358,8 +360,8 @@ If no direct liquidity pair exists between two tokens, the spot price aggregator
* WannaSwap - [0x7bdc6954e1c7869B4147A320d589689F628E9921](https://aurorascan.dev/address/0x7bdc6954e1c7869B4147A320d589689F628E9921)
* NearPAD - [0x3E1Fe1Bd5a5560972bFa2D393b9aC18aF279fF56](https://aurorascan.dev/address/0x3E1Fe1Bd5a5560972bFa2D393b9aC18aF279fF56)
* AuroraSwap - [0xd8C7661C2bA6E9732613C15780f9fBBD55d8bf9c](https://aurorascan.dev/address/0xd8C7661C2bA6E9732613C15780f9fBBD55d8bf9c)
* Dodo - [0x7dd73CADbDb285b30Cdb92A5572eff6331EED857](https://aurorascan.dev/address/0x7dd73CADbDb285b30Cdb92A5572eff6331EED857)
* DodoV2 - [0x1b947aF8b3dd6aa96F8726cd92c894D0Ba6367a3](https://aurorascan.dev/address/0x1b947aF8b3dd6aa96F8726cd92c894D0Ba6367a3)
* Dodo - [0x0A7c4d89e1629f189Eb12dd716B178d1b90D9f66](https://aurorascan.dev/address/0x0A7c4d89e1629f189Eb12dd716B178d1b90D9f66)
* DodoV2 - [0x03aA019F3B78110e030c34e9fA98047A1f62859A](https://aurorascan.dev/address/0x03aA019F3B78110e030c34e9fA98047A1f62859A)

</details>

Expand Down
37 changes: 11 additions & 26 deletions deployments/aurora/DodoOracle.json

Large diffs are not rendered by default.

37 changes: 11 additions & 26 deletions deployments/aurora/DodoV2Oracle.json

Large diffs are not rendered by default.

106 changes: 106 additions & 0 deletions deployments/mainnet/DodoOracle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"address": "0x0A7c4d89e1629f189Eb12dd716B178d1b90D9f66",
"abi": [
{
"inputs": [
{
"internalType": "contract IDodoZoo",
"name": "_dodoZoo",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "ConnectorShouldBeNone",
"type": "error"
},
{
"inputs": [],
"name": "PoolNotFound",
"type": "error"
},
{
"inputs": [],
"name": "PoolWithConnectorNotFound",
"type": "error"
},
{
"inputs": [],
"name": "FACTORY",
"outputs": [
{
"internalType": "contract IDodoZoo",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20",
"name": "srcToken",
"type": "address"
},
{
"internalType": "contract IERC20",
"name": "dstToken",
"type": "address"
},
{
"internalType": "contract IERC20",
"name": "connector",
"type": "address"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "getRate",
"outputs": [
{
"internalType": "uint256",
"name": "rate",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "weight",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"transactionHash": "0x96824b2165372d29d8576416e1ce5953396c05336218a11c17e282b4a9cfd938",
"receipt": {
"to": "0xD935a2bb926019E0ed6fb31fbD5b1Bbb7c05bf65",
"from": "0x56E44874F624EbDE6efCc783eFD685f0FBDC6dcF",
"contractAddress": null,
"transactionIndex": 69,
"gasUsed": "568946",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0x2b624d5a736d6044122085ff6f43f43f97e0e1b9160c4d0e1214a612d53fbe99",
"transactionHash": "0x96824b2165372d29d8576416e1ce5953396c05336218a11c17e282b4a9cfd938",
"logs": [],
"events": [],
"blockNumber": 18155022,
"cumulativeGasUsed": "16605543",
"status": 1,
"byzantium": true
},
"args": [
"0x3a97247df274a17c59a3bd12735ea3fcdfb49950"
],
"numDeployments": 1,
"bytecode": "0x60a03461007157601f61090d38819003918201601f19168301916001600160401b038311848410176100765780849260209460405283398101031261007157516001600160a01b038116810361007157608052604051610880908161008d823960805181818161018301526105560152f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe608080604052600436101561001357600080fd5b600090813560e01c9081632dd31000146101395750633d549b321461003757600080fd5b346101365760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610136576004359073ffffffffffffffffffffffffffffffffffffffff918281168091036101325760243591838316809303610136576044358481168091036101325760409481036100da5750506100c06100c9926100ce926104f6565b909391936101a7565b610312565b82519182526020820152f35b6101096100ff9261010f836100f561011f95610125986104f6565b97919990926104f6565b95919790926101a7565b936101a7565b90508082101561012b5750610312565b92610222565b906100ce565b9050610312565b5080fd5b80fd5b90503461013257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101325760209073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b818102929181159184041417156101ba57565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81156101f3570490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8183098183029182808310920391808303921461030157670de0b6b3a764000090828211156102a3577faccb18165bd6fe31ae1cf318dc5b51eee0e1ba569b88cd74c1773b91fac10669940990828211900360ee1b910360121c170290565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d6174683a206d756c446976206f766572666c6f7700000000000000000000006044820152fd5b5050670de0b6b3a764000091500490565b801561044f576103dd816000908360801c80610443575b508060401c80610436575b508060201c80610429575b508060101c8061041c575b508060081c8061040f575b508060041c80610402575b508060021c806103f5575b50600191828092811c6103ee575b1c1b61038581856101e9565b01811c61039281856101e9565b01811c61039f81856101e9565b01811c6103ac81856101e9565b01811c6103b981856101e9565b01811c6103c681856101e9565b01811c6103d381856101e9565b01901c80926101e9565b808210156103e9575090565b905090565b0181610379565b600291509101903861036b565b6004915091019038610360565b6008915091019038610355565b601091509101903861034a565b602091509101903861033f565b6040915091019038610334565b91505060809038610329565b50600090565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761049657604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b908160209103126104f1575173ffffffffffffffffffffffffffffffffffffffff811681036104f15790565b600080fd5b604080517f1273b0c60000000000000000000000000000000000000000000000000000000080825273ffffffffffffffffffffffffffffffffffffffff8481166004808501919091528682166024850152602097969495909492939192917f00000000000000000000000000000000000000000000000000000000000000008416908981604481855afa90811561083f578a9392918691600091610822575b50169384159687159761079c575b5050505050169182156107755783517fee27c68900000000000000000000000000000000000000000000000000000000815286818381875afa90811561076a5760009161073d575b50600083156106f457505b958451937feab5d20e00000000000000000000000000000000000000000000000000000000855281858481845afa9485156106e9576000956106ba575b5081908651938480927f7c9b8e890000000000000000000000000000000000000000000000000000000082525afa9485156106b0575060009461067f575b50501561067b5791565b9091565b8181959293953d83116106a9575b6106978183610455565b81010312610136575051913880610671565b503d61068d565b513d6000823e3d90fd5b90948282813d83116106e2575b6106d18183610455565b810103126101365750519381610633565b503d6106c7565b86513d6000823e3d90fd5b811561071157506ec097ce7bc90715b34b9f1000000000046105f6565b806012847f4e487b71000000000000000000000000000000000000000000000000000000006024945252fd5b908782813d8311610763575b6107538183610455565b81010312610136575051386105eb565b503d610749565b85513d6000823e3d90fd5b83517f76ecffc0000000000000000000000000000000000000000000000000000000008152fd5b895190815273ffffffffffffffffffffffffffffffffffffffff918216898201908152939091166020840152935083918290819060400103915afa90811561076a579082916000916107f5575b501686388080806105a3565b6108159150883d8a1161081b575b61080d8183610455565b8101906104c5565b386107e9565b503d610803565b6108399150853d871161081b5761080d8183610455565b38610595565b88513d6000823e3d90fdfea26469706673582212209dcb64c52f608d0534f7592400e99fa230eb8c3da0bb7d58055611d5f60493f264736f6c63430008130033",
"deployedBytecode": "0x608080604052600436101561001357600080fd5b600090813560e01c9081632dd31000146101395750633d549b321461003757600080fd5b346101365760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610136576004359073ffffffffffffffffffffffffffffffffffffffff918281168091036101325760243591838316809303610136576044358481168091036101325760409481036100da5750506100c06100c9926100ce926104f6565b909391936101a7565b610312565b82519182526020820152f35b6101096100ff9261010f836100f561011f95610125986104f6565b97919990926104f6565b95919790926101a7565b936101a7565b90508082101561012b5750610312565b92610222565b906100ce565b9050610312565b5080fd5b80fd5b90503461013257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101325760209073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b818102929181159184041417156101ba57565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81156101f3570490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8183098183029182808310920391808303921461030157670de0b6b3a764000090828211156102a3577faccb18165bd6fe31ae1cf318dc5b51eee0e1ba569b88cd74c1773b91fac10669940990828211900360ee1b910360121c170290565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d6174683a206d756c446976206f766572666c6f7700000000000000000000006044820152fd5b5050670de0b6b3a764000091500490565b801561044f576103dd816000908360801c80610443575b508060401c80610436575b508060201c80610429575b508060101c8061041c575b508060081c8061040f575b508060041c80610402575b508060021c806103f5575b50600191828092811c6103ee575b1c1b61038581856101e9565b01811c61039281856101e9565b01811c61039f81856101e9565b01811c6103ac81856101e9565b01811c6103b981856101e9565b01811c6103c681856101e9565b01811c6103d381856101e9565b01901c80926101e9565b808210156103e9575090565b905090565b0181610379565b600291509101903861036b565b6004915091019038610360565b6008915091019038610355565b601091509101903861034a565b602091509101903861033f565b6040915091019038610334565b91505060809038610329565b50600090565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761049657604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b908160209103126104f1575173ffffffffffffffffffffffffffffffffffffffff811681036104f15790565b600080fd5b604080517f1273b0c60000000000000000000000000000000000000000000000000000000080825273ffffffffffffffffffffffffffffffffffffffff8481166004808501919091528682166024850152602097969495909492939192917f00000000000000000000000000000000000000000000000000000000000000008416908981604481855afa90811561083f578a9392918691600091610822575b50169384159687159761079c575b5050505050169182156107755783517fee27c68900000000000000000000000000000000000000000000000000000000815286818381875afa90811561076a5760009161073d575b50600083156106f457505b958451937feab5d20e00000000000000000000000000000000000000000000000000000000855281858481845afa9485156106e9576000956106ba575b5081908651938480927f7c9b8e890000000000000000000000000000000000000000000000000000000082525afa9485156106b0575060009461067f575b50501561067b5791565b9091565b8181959293953d83116106a9575b6106978183610455565b81010312610136575051913880610671565b503d61068d565b513d6000823e3d90fd5b90948282813d83116106e2575b6106d18183610455565b810103126101365750519381610633565b503d6106c7565b86513d6000823e3d90fd5b811561071157506ec097ce7bc90715b34b9f1000000000046105f6565b806012847f4e487b71000000000000000000000000000000000000000000000000000000006024945252fd5b908782813d8311610763575b6107538183610455565b81010312610136575051386105eb565b503d610749565b85513d6000823e3d90fd5b83517f76ecffc0000000000000000000000000000000000000000000000000000000008152fd5b895190815273ffffffffffffffffffffffffffffffffffffffff918216898201908152939091166020840152935083918290819060400103915afa90811561076a579082916000916107f5575b501686388080806105a3565b6108159150883d8a1161081b575b61080d8183610455565b8101906104c5565b386107e9565b503d610803565b6108399150853d871161081b5761080d8183610455565b38610595565b88513d6000823e3d90fdfea26469706673582212209dcb64c52f608d0534f7592400e99fa230eb8c3da0bb7d58055611d5f60493f264736f6c63430008130033"
}
Loading

0 comments on commit 38be6b3

Please sign in to comment.