Skip to content

Commit

Permalink
ops(deploy): Deploy arbitrage contract to Polygon (v1.0.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterMangrove committed Jun 29, 2023
1 parent 5f5da0c commit 7c86864
Show file tree
Hide file tree
Showing 10 changed files with 194 additions and 19 deletions.
Empty file added .yarn/versions/ee16ddc6.yml
Empty file.
8 changes: 8 additions & 0 deletions packages/mangrove-arbitrage/addresses/context/matic.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,13 @@
{
"address": "0x7ef18d0a9C3Fb1A716FF6c3ED0Edf52a2427F716",
"name": "CWETH"
},
{
"address": "0x10B124Da45Bc440171664cee59Aafa23979C9616",
"name": "Gasbot"
},
{
"address": "0x59a424169526ECae25856038598F862043DCeDf7",
"name": "MgvGovernance"
}
]
20 changes: 4 additions & 16 deletions packages/mangrove-arbitrage/addresses/context/maticmum.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
[
{
"address": "0x47897EE61498D02B18794601Ed3A71896A1Ff894",
"name": "Deployer"
},
{
"address": "0x5a6272e5d8690ad47Df72BBf7Fb08cE1851b8f54",
"name": "Tester"
},
{
"address": "0xeb7A892BB04A8f836bDEeBbf60897A7Af1Bf5d7F",
"name": "Aave"
Expand All @@ -19,10 +11,6 @@
"address": "0xD087ff96281dcf722AEa82aCA57E8545EA9e6C96",
"name": "WETH"
},
{
"address": "0xf237dE5664D3c2D2545684E76fef02A3A58A364c",
"name": "WMATIC"
},
{
"address": "0xe9DcE89B076BA6107Bb64EF30678efec11939234",
"name": "USDC"
Expand All @@ -31,12 +19,12 @@
"address": "0xF14f9596430931E177469715c591513308244e8F",
"name": "DAI"
},
{
"address": "0x11942A6952324f7Fc63Dc57Ed6Ec767b5fc263D6",
"name": "tGNT"
},
{
"address": "0x4d184a4C8d79BbBdCC4E95A1AdEA2454c535280A",
"name": "Gasbot"
},
{
"address": "0x47897EE61498D02B18794601Ed3A71896A1Ff894",
"name": "MgvGovernance"
}
]
1 change: 0 additions & 1 deletion packages/mangrove-arbitrage/addresses/deployed/empty.js

This file was deleted.

50 changes: 50 additions & 0 deletions packages/mangrove-arbitrage/addresses/deployed/matic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[
{
"address": "0x9a58de548212F65c5406e46563372Ee6DcC0aC43",
"name": "Mangrove"
},
{
"address": "0x692c15efcA8AABCda9511641F6ed9702d3f4cfb4",
"name": "MgvOracle"
},
{
"address": "0x07e5a2DCf82D7b5b8ab684d9b40842E174e49908",
"name": "MgvReader"
},
{
"address": "0xa52ba5E5199bE4fD363B163bDe567606589eD2E2",
"name": "MgvCleaner"
},
{
"address": "0xB70041dC246412E0DCE34bd788062E969276E737",
"name": "PxUSDC"
},
{
"address": "0xba6fBacEeeE55D2d657Eb26023C64002e23Af5E8",
"name": "PxMATIC"
},
{
"address": "0xcf4ec117bc38d7D0fE8678B511Ff6a212c76d60B",
"name": "MangroveOrder"
},
{
"address": "0x6b08Cc8290302CB4659D7cEDa7016BEa20852D59",
"name": "MangroveOrder-Router"
},
{
"address": "0xA48B36E01919472fcdA56CAD574433BeCB7A87C5",
"name": "KandelSeeder"
},
{
"address": "0xded8E2fac702646dafE51d496d1217A837b0a424",
"name": "AaveKandelSeeder"
},
{
"address": "0xa92737e6917d4d76Fed72027Ccbf1E06094d65Bd",
"name": "AavePooledRouter"
},
{
"address": "0x774D3089F08ba6cc67FD8EAC06040936D096308D",
"name": "MgvArbitrage"
}
]
50 changes: 50 additions & 0 deletions packages/mangrove-arbitrage/addresses/deployed/maticmum.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[
{
"address": "0xd1805f6Fe12aFF69D4264aE3e49ef320895e2D8b",
"name": "Mangrove"
},
{
"address": "0x82dA8C07b1E17eBDE8853405E11D89b410ec58E6",
"name": "MgvReader"
},
{
"address": "0x2A36f6293bB1F35c84655DB5e6E34604EFCf739d",
"name": "MgvCleaner"
},
{
"address": "0x8F8ff080cA0554b02BFC36A5aD465954416271eF",
"name": "MgvOracle"
},
{
"address": "0xb4A9Ac8Ae5b405193271A0e62682c9be47d578B9",
"name": "KandelSeeder"
},
{
"address": "0x0295a7f3093Fb656d982B6E2c52B07699aDA9594",
"name": "AaveKandelSeeder"
},
{
"address": "0x756fAc8bb6fb96A3b005ad7b3337052aE69aAf65",
"name": "MangroveOrder"
},
{
"address": "0xADdF5388C695e3F23A2509AA73677ED4a219f834",
"name": "MangroveOrder-Router"
},
{
"address": "0xB3ba79DB150E8650efa5c534EEaf6404a25Fdf00",
"name": "AavePooledRouter"
},
{
"address": "0x193163EeFfc795F9d573b171aB12cCDdE10392e8",
"name": "WMATIC"
},
{
"address": "0xf402f6197d979F0A4cba61596921a3d762520570",
"name": "WBTC"
},
{
"address": "0xe8099699aa4A79d89dBD20A63C50b7d35ED3CD9e",
"name": "USDT"
}
]

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions packages/mangrove-arbitrage/foundry.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
[profile.default]
src = 'src'
out = 'out'
# libs = ["/Users/kejlberg/Mangrove/mangrove-bots-deploy/node_modules", "lib"]
libs = ["../../node_modules", "lib"]
remappings = ['@uniswap/=../../node_modules/@uniswap/']
fs_permissions = [{ access = "read-write", path = "./addresses/"}, { access = "read", path = "./out/" }]
solc_version="0.8.17"
auto_detect_remappings = false
# See more config options https://github.com/foundry-rs/foundry/tree/master/config

[rpc_endpoints]
polygon="${POLYGON_NODE_URL}"
mumbai="${MUMBAI_NODE_URL}"

[etherscan]
goerli={key="${GOERLI_API_KEY}"}
mumbai={key="${POLYGON_API_KEY}"}
polygon={key="${POLYGON_API_KEY}"}
testnet_zkevm={key="${ZKEVM_API_KEY}",chain=1442,url="https://api-testnet-zkevm.polygonscan.com/api"}
zkevm={key="${ZKEVM_API_KEY}",chain=1101,url="https://api-zkevm.polygonscan.com/api"}

[fmt]
tab_width=2
int_types="short"
Expand Down
2 changes: 1 addition & 1 deletion packages/mangrove-arbitrage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mangrovedao/mangrove-arbitrage",
"version": "1.0.0",
"version": "1.0.1",
"main": "index.js",
"author": "Mangrove DAO",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/mangrove-arbitrage/src/MgvArbitrage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity ^0.8.13;

import {ISwapRouter} from "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol";
import {IMangrove} from "mgv_src/IMangrove.sol";
import {IERC20} from "mgv_src/MgvLib.sol";
import {IERC20} from "mgv_src/IERC20.sol";
import {AccessControlled} from "mgv_src/strategies/utils/AccessControlled.sol";
import {TransferLib} from "mgv_src/strategies/utils/TransferLib.sol";

Expand Down

0 comments on commit 7c86864

Please sign in to comment.