diff --git a/deployed/mainnet_farming_PID_addresses.json b/deployed/mainnet_farming_PID_addresses.json new file mode 100644 index 0000000..a788177 --- /dev/null +++ b/deployed/mainnet_farming_PID_addresses.json @@ -0,0 +1,6 @@ +{ + "dummyTokenPid": 0, + "ETHCGTPairPid": 1, + "ETHCURPairPid": 2, + "CGTDAIPairPid": 3 +} \ No newline at end of file diff --git a/deployed/mainnet_farming_abi.json b/deployed/mainnet_farming_abi.json new file mode 100644 index 0000000..1f2ec98 --- /dev/null +++ b/deployed/mainnet_farming_abi.json @@ -0,0 +1,996 @@ +{ + "masterChef": [ + { + "inputs": [ + { + "internalType": "contract IERC20", + "name": "_sushi", + "type": "address" + }, + { + "internalType": "contract IReservoir", + "name": "_sushiReservoir", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_sushiPerBlock", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_startBlock", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_bonusEndBlock", + "type": "uint256" + }, + { + "internalType": "contract IDexWhitelist", + "name": "_whitelist", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor", + "signature": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "pid", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "Deposit", + "type": "event", + "signature": "0x90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "pid", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "EmergencyWithdraw", + "type": "event", + "signature": "0xbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event", + "signature": "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "reservoir", + "type": "address" + } + ], + "name": "SetSushiReservoir", + "type": "event", + "signature": "0x9c05070408ec517fa890a56717c2d2cde2a4917fb725bb4d30a2c6c39949dda7" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "whitelist", + "type": "address" + } + ], + "name": "SetWhitelist", + "type": "event", + "signature": "0xd32d0f461b8ce7c58d1dba051f34482d3166f332fe35873a915b9acd2b5d27f3" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "pid", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "Withdraw", + "type": "event", + "signature": "0xf279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568" + }, + { + "inputs": [], + "name": "BONUS_MULTIPLIER", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x8aa28550" + }, + { + "inputs": [], + "name": "bonusEndBlock", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x1aed6553" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x8da5cb5b" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "poolInfo", + "outputs": [ + { + "internalType": "contract IERC20", + "name": "lpToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "allocPoint", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "lastRewardBlock", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "accSushiPerShare", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x1526fe27" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x715018a6" + }, + { + "inputs": [], + "name": "startBlock", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x48cd4cb1" + }, + { + "inputs": [], + "name": "sushi", + "outputs": [ + { + "internalType": "contract IERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x0a087903" + }, + { + "inputs": [], + "name": "sushiPerBlock", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xb0bcf42a" + }, + { + "inputs": [], + "name": "sushiReservoir", + "outputs": [ + { + "internalType": "contract IReservoir", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x2ba658f8" + }, + { + "inputs": [], + "name": "totalAllocPoint", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x17caf6f1" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xf2fde38b" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "userInfo", + "outputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "rewardDebt", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x93f1a40b" + }, + { + "inputs": [], + "name": "whitelist", + "outputs": [ + { + "internalType": "contract IDexWhitelist", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x93e59dc1" + }, + { + "inputs": [], + "name": "poolLength", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x081e3eda" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_allocPoint", + "type": "uint256" + }, + { + "internalType": "contract IERC20", + "name": "_lpToken", + "type": "address" + }, + { + "internalType": "bool", + "name": "_withUpdate", + "type": "bool" + } + ], + "name": "add", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x1eaaa045" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_pid", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_allocPoint", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "_withUpdate", + "type": "bool" + } + ], + "name": "set", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x64482f79" + }, + { + "inputs": [ + { + "internalType": "contract IDexWhitelist", + "name": "_whitelist", + "type": "address" + } + ], + "name": "setWhitelist", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x854cff2f" + }, + { + "inputs": [ + { + "internalType": "contract IReservoir", + "name": "_sushiReservoir", + "type": "address" + } + ], + "name": "setSushiReservoir", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x75971dbe" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_from", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_to", + "type": "uint256" + } + ], + "name": "getMultiplier", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x8dbb1e3a" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_pid", + "type": "uint256" + }, + { + "internalType": "address", + "name": "_user", + "type": "address" + } + ], + "name": "pendingSushi", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x195426ec" + }, + { + "inputs": [], + "name": "massUpdatePools", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x630b5ba1" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_pid", + "type": "uint256" + } + ], + "name": "updatePool", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x51eb05a6" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_pid", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + } + ], + "name": "deposit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xe2bbb158" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_pid", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + } + ], + "name": "withdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x441a3e70" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_pid", + "type": "uint256" + } + ], + "name": "emergencyWithdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x5312ea8e" + } + ], + "reservoir": [ + { + "inputs": [ + { + "internalType": "contract IERC20", + "name": "_token", + "type": "address" + }, + { + "internalType": "address", + "name": "_target", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor", + "signature": "constructor" + }, + { + "inputs": [], + "name": "target", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xd4b83992" + }, + { + "inputs": [], + "name": "token", + "outputs": [ + { + "internalType": "contract IERC20", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xfc0c546a" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "requestedTokens", + "type": "uint256" + } + ], + "name": "drip", + "outputs": [ + { + "internalType": "uint256", + "name": "sentTokens", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x58326b7a" + } + ], + "dummyToken": [ + { + "inputs": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "address", + "name": "initialAccount", + "type": "address" + }, + { + "internalType": "uint256", + "name": "initialBalance", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "constructor", + "payable": true, + "signature": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event", + "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event", + "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "spender", + "type": "address" + } + ], + "name": "allowance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xdd62ed3e" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x095ea7b3" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x70a08231" + }, + { + "inputs": [], + "name": "decimals", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x313ce567" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "subtractedValue", + "type": "uint256" + } + ], + "name": "decreaseAllowance", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xa457c2d7" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "addedValue", + "type": "uint256" + } + ], + "name": "increaseAllowance", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x39509351" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x06fdde03" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x95d89b41" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x18160ddd" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transfer", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xa9059cbb" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x23b872dd" + } + ] +} \ No newline at end of file diff --git a/deployed/mainnet_farming_addresses.json b/deployed/mainnet_farming_addresses.json new file mode 100644 index 0000000..942a55b --- /dev/null +++ b/deployed/mainnet_farming_addresses.json @@ -0,0 +1,7 @@ +{ + "masterChef": "0xe8Cc9f640C55f3c5905FD2BBb63C53fb8A3A527d", + "reservoir": "0x50d4b0118237d27E5faF42300e7c7385C91Df5bB", + "dummyToken": "0x7F98372A9852fd04B17a5617F18a9C7cC0F2c4DE", + "rewardTokenAddress": "0xF56b164efd3CFc02BA739b719B6526A6FA1cA32a", + "dexWhitelistAddress": "0xB2C747Aed3e54da0ad14D41B710CC40F88E51aA9" +} \ No newline at end of file diff --git a/deployed/mainnet_uniswap_LP_abi.json b/deployed/mainnet_uniswap_LP_abi.json new file mode 100644 index 0000000..e9a110e --- /dev/null +++ b/deployed/mainnet_uniswap_LP_abi.json @@ -0,0 +1,198 @@ +{ + "LP": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event", + "signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event", + "signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x18160ddd" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x70a08231" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transfer", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xa9059cbb" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "internalType": "address", + "name": "spender", + "type": "address" + } + ], + "name": "allowance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xdd62ed3e" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "approve", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x095ea7b3" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "transferFrom", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x23b872dd" + } + ] +} \ No newline at end of file diff --git a/deployed/mainnet_uniswap_LP_addresses.json b/deployed/mainnet_uniswap_LP_addresses.json new file mode 100644 index 0000000..a805959 --- /dev/null +++ b/deployed/mainnet_uniswap_LP_addresses.json @@ -0,0 +1,6 @@ +{ + "dummyTokenAddress": "0x7F98372A9852fd04B17a5617F18a9C7cC0F2c4DE", + "ETHCGTPairAddress": "0x9a7c27F2BfD86001c0E9B5b9096564F64F37439E", + "ETHCURPairAddress": "0x85323e31bCa3a8da8c5307671DDe878C4bBCDD36", + "CGTDAIPairAddress": "0xB9FcE07dB9737810CbC573E43ba700aA4655b6Bc" +} \ No newline at end of file diff --git a/deployed/mainnet_uniswap_abi.json b/deployed/mainnet_uniswap_abi.json new file mode 100644 index 0000000..e3ed178 --- /dev/null +++ b/deployed/mainnet_uniswap_abi.json @@ -0,0 +1,1336 @@ +{ + "uniswapFactory": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor", + "signature": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "token0", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "token1", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "pair", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "PairCreated", + "type": "event", + "signature": "0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "allPairs", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x1e3dd18b" + }, + { + "inputs": [], + "name": "fee", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xddca3f43" + }, + { + "inputs": [], + "name": "feeTo", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x017e7e58" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "getPair", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xe6a43905" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "isRouter", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xf3d7d282" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x8da5cb5b" + }, + { + "inputs": [], + "name": "whitelist", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x93e59dc1" + }, + { + "inputs": [], + "name": "feeInfo", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x995b5aae" + }, + { + "inputs": [], + "name": "allPairsLength", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x574f2ba3" + }, + { + "inputs": [], + "name": "pairCodeHash", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "pure", + "type": "function", + "constant": true, + "signature": "0x9aab9248" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenA", + "type": "address" + }, + { + "internalType": "address", + "name": "tokenB", + "type": "address" + } + ], + "name": "createPair", + "outputs": [ + { + "internalType": "address", + "name": "pair", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xc9c65396" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_feeTo", + "type": "address" + } + ], + "name": "setFeeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xf46901ed" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_whitelist", + "type": "address" + } + ], + "name": "setWhitelist", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x854cff2f" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_fee", + "type": "uint256" + } + ], + "name": "setFee", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x69fe0e2d" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_router", + "type": "address" + }, + { + "internalType": "bool", + "name": "_permission", + "type": "bool" + } + ], + "name": "setRouterPermission", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xc828dbc3" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_owner", + "type": "address" + } + ], + "name": "setOwner", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x13af4035" + } + ], + "uniswapRouter": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_factory", + "type": "address" + }, + { + "internalType": "address", + "name": "_WETH", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor", + "signature": "constructor" + }, + { + "inputs": [], + "name": "WETH", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xad5c4648" + }, + { + "inputs": [], + "name": "factory", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xc45a0155" + }, + { + "stateMutability": "payable", + "type": "receive", + "payable": true + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenA", + "type": "address" + }, + { + "internalType": "address", + "name": "tokenB", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountADesired", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountBDesired", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountAMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountBMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "addLiquidity", + "outputs": [ + { + "internalType": "uint256", + "name": "amountA", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountB", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xe8e33700" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountTokenDesired", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountTokenMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETHMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "addLiquidityETH", + "outputs": [ + { + "internalType": "uint256", + "name": "amountToken", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETH", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + } + ], + "stateMutability": "payable", + "type": "function", + "payable": true, + "signature": "0xf305d719" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenA", + "type": "address" + }, + { + "internalType": "address", + "name": "tokenB", + "type": "address" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountAMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountBMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "removeLiquidity", + "outputs": [ + { + "internalType": "uint256", + "name": "amountA", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountB", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xbaa2abde" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountTokenMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETHMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "removeLiquidityETH", + "outputs": [ + { + "internalType": "uint256", + "name": "amountToken", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETH", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x02751cec" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "tokenA", + "type": "address" + }, + { + "internalType": "address", + "name": "tokenB", + "type": "address" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountAMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountBMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "approveMax", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + } + ], + "name": "removeLiquidityWithPermit", + "outputs": [ + { + "internalType": "uint256", + "name": "amountA", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountB", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x2195995c" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountTokenMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETHMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "approveMax", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + } + ], + "name": "removeLiquidityETHWithPermit", + "outputs": [ + { + "internalType": "uint256", + "name": "amountToken", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETH", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xded9382a" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountTokenMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETHMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "removeLiquidityETHSupportingFeeOnTransferTokens", + "outputs": [ + { + "internalType": "uint256", + "name": "amountETH", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xaf2979eb" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "liquidity", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountTokenMin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountETHMin", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "approveMax", + "type": "bool" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + } + ], + "name": "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", + "outputs": [ + { + "internalType": "uint256", + "name": "amountETH", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x5b0d5984" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapExactTokensForTokens", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x38ed1739" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountInMax", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapTokensForExactTokens", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x8803dbee" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapExactETHForTokens", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "payable", + "type": "function", + "payable": true, + "signature": "0x7ff36ab5" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountInMax", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapTokensForExactETH", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x4a25d94a" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapExactTokensForETH", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x18cbafe5" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapETHForExactTokens", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "payable", + "type": "function", + "payable": true, + "signature": "0xfb3bdb41" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapExactTokensForTokensSupportingFeeOnTransferTokens", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x5c11d795" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapExactETHForTokensSupportingFeeOnTransferTokens", + "outputs": [], + "stateMutability": "payable", + "type": "function", + "payable": true, + "signature": "0xb6f9de95" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountOutMin", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "name": "swapExactTokensForETHSupportingFeeOnTransferTokens", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x791ac947" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountA", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "reserveA", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "reserveB", + "type": "uint256" + } + ], + "name": "quote", + "outputs": [ + { + "internalType": "uint256", + "name": "amountB", + "type": "uint256" + } + ], + "stateMutability": "pure", + "type": "function", + "constant": true, + "signature": "0xad615dec" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "reserveIn", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "reserveOut", + "type": "uint256" + } + ], + "name": "getAmountOut", + "outputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + } + ], + "stateMutability": "pure", + "type": "function", + "constant": true, + "signature": "0x054d50d4" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "reserveIn", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "reserveOut", + "type": "uint256" + } + ], + "name": "getAmountIn", + "outputs": [ + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + } + ], + "stateMutability": "pure", + "type": "function", + "constant": true, + "signature": "0x85f8c259" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountIn", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + } + ], + "name": "getAmountsOut", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xd06ca61f" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + }, + { + "internalType": "address[]", + "name": "path", + "type": "address[]" + } + ], + "name": "getAmountsIn", + "outputs": [ + { + "internalType": "uint256[]", + "name": "amounts", + "type": "uint256[]" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x1f00ca74" + } + ] +} \ No newline at end of file diff --git a/deployed/mainnet_uniswap_addresses.json b/deployed/mainnet_uniswap_addresses.json new file mode 100644 index 0000000..02fdf83 --- /dev/null +++ b/deployed/mainnet_uniswap_addresses.json @@ -0,0 +1,5 @@ +{ + "uniswapFactory": "0x03407772F5EBFB9B10Df007A2DD6FFf4EdE47B53", + "uniswapRouter": "0xDc6844cED486Ec04803f02F2Ee40BBDBEf615f21", + "dexWhitelistAddress": "0xB2C747Aed3e54da0ad14D41B710CC40F88E51aA9" +} diff --git a/deployed/mainnet_whitelist_abi.json b/deployed/mainnet_whitelist_abi.json new file mode 100644 index 0000000..801cbe4 --- /dev/null +++ b/deployed/mainnet_whitelist_abi.json @@ -0,0 +1,933 @@ +{ + "dexWhitelist": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "admin", + "type": "address" + } + ], + "name": "AddAdmin", + "type": "event", + "signature": "0xad6de4452a631e641cb59902236607946ce9272b9b981f2f80e8d129cb9084ba" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "manager", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "admin", + "type": "address" + } + ], + "name": "AddManager", + "type": "event", + "signature": "0x80dc3d87a7a642c46b6272b119f53d4db8aef58e5984b633f1055308b77dce6d" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "key", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "addr", + "type": "address" + } + ], + "name": "AddNewInvestor", + "type": "event", + "signature": "0x3bad83b4a575d5b5f39be1d223ff9ca7ffb767b83839ea0a9d21badd4f72a9a5" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "key", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "oldAddr", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAddr", + "type": "address" + } + ], + "name": "ChangeInvestorAddress", + "type": "event", + "signature": "0xc64e74e04642cb672e8be4e5d83506777e122e59c03359814856be0aabaf2fa8" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event", + "signature": "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0" + }, + { + "anonymous": false, + "inputs": [], + "name": "Paused", + "type": "event", + "signature": "0x9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e752" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "admin", + "type": "address" + } + ], + "name": "RemoveAdmin", + "type": "event", + "signature": "0x753f40ca3312b2408759a67875b367955e7baa221daf08aa3d643d96202ac12b" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "manager", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "admin", + "type": "address" + } + ], + "name": "RemoveManager", + "type": "event", + "signature": "0x82854a3ef36f2eb671d3d796a049df4c263e4aae926ac9a7cf483fc411f8e90d" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "controller", + "type": "address" + } + ], + "name": "SetController", + "type": "event", + "signature": "0x4ff638452bbf33c012645d18ae6f05515ff5f2d1dfb0cece8cbf018c60903f70" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bool", + "name": "active", + "type": "bool" + } + ], + "name": "SetFarmWlActive", + "type": "event", + "signature": "0x265a53aad4152736387918a93269c0bdab33c5f30dcc7dc9b79480dbaff7f809" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "key", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bool", + "name": "active", + "type": "bool" + } + ], + "name": "SetInvestorActive", + "type": "event", + "signature": "0xca38efe8edd8a548631daf4ecf799c9c502caa239996f72e4d7cfa4828345255" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bool", + "name": "active", + "type": "bool" + } + ], + "name": "SetLiquidityWlActive", + "type": "event", + "signature": "0xb7fc984fe2e65d1fc0eb64961c8e807ba4876190ec6df4ea90647ea4e05a344b" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bool", + "name": "active", + "type": "bool" + } + ], + "name": "SetSwapWlActive", + "type": "event", + "signature": "0x3df80f198e97ac98769a7f0efe237faf4670551e4494b9c0ec5449e2df1aca02" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "active", + "type": "bool" + } + ], + "name": "SetTokenAddressActive", + "type": "event", + "signature": "0xbcc62cbc53e3f514a07eab7f3c6c7b4e0aa644022e5f99e0951713f39ee0448d" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bool", + "name": "active", + "type": "bool" + } + ], + "name": "SetTokenWlActive", + "type": "event", + "signature": "0xd4ac5153736755eaffd4a6776c712878143b7b9fe81a350bbc4350ce61800fb9" + }, + { + "anonymous": false, + "inputs": [], + "name": "Unpaused", + "type": "event", + "signature": "0xa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d16933" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_admin", + "type": "address" + } + ], + "name": "addAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x70480275" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_manager", + "type": "address" + } + ], + "name": "addManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x2d06177a" + }, + { + "inputs": [], + "name": "controller", + "outputs": [ + { + "internalType": "contract ICarTokenController", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xf77c4791" + }, + { + "inputs": [], + "name": "getAdminCount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x8b7bf3eb" + }, + { + "inputs": [], + "name": "getManagerCount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xcf928384" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "investors", + "outputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + }, + { + "internalType": "bool", + "name": "active", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xa62be722" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_admin", + "type": "address" + } + ], + "name": "isAdmin", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x24d7806c" + }, + { + "inputs": [], + "name": "isFarmWlActive", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x89aaff8c" + }, + { + "inputs": [], + "name": "isLiquidityWlActive", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x5aac4fae" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_manager", + "type": "address" + } + ], + "name": "isManager", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xf3ae2415" + }, + { + "inputs": [], + "name": "isSwapWlActive", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x69205e8c" + }, + { + "inputs": [], + "name": "isTokenWlActive", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x2ef58f24" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "keyOfInvestor", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x94b9f342" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x8da5cb5b" + }, + { + "inputs": [], + "name": "pause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x8456cb59" + }, + { + "inputs": [], + "name": "paused", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x5c975abb" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_admin", + "type": "address" + } + ], + "name": "removeAdmin", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x1785f53c" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_manager", + "type": "address" + } + ], + "name": "removeManager", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xac18de43" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x715018a6" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "tokens", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0xe4860339" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xf2fde38b" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x3f4ba83a" + }, + { + "inputs": [], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x8129fc1c" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_addr", + "type": "address" + } + ], + "name": "isInvestorAddressActive", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x59796cd9" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_addr", + "type": "address" + } + ], + "name": "isLiquidityAddressActive", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x6cde3d44" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_addr", + "type": "address" + } + ], + "name": "isSwapAddressActive", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x2b60065c" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_addr", + "type": "address" + } + ], + "name": "isFarmAddressActive", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x4b16556c" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_addr", + "type": "address" + } + ], + "name": "isTokenAddressActive", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function", + "constant": true, + "signature": "0x1fd62cc4" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "_investorKey", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "_newAddr", + "type": "address" + } + ], + "name": "changeMyAddress", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xe103c160" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "_keys", + "type": "bytes32[]" + }, + { + "internalType": "address[]", + "name": "_addrs", + "type": "address[]" + } + ], + "name": "addNewInvestors", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x4e8894c8" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "_key", + "type": "bytes32" + }, + { + "internalType": "bool", + "name": "_active", + "type": "bool" + } + ], + "name": "setInvestorActive", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xaf3b4b31" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "_investorKey", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "_newAddr", + "type": "address" + } + ], + "name": "changeInvestorAddress", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xb2e8a0e6" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_token", + "type": "address" + }, + { + "internalType": "bool", + "name": "_active", + "type": "bool" + } + ], + "name": "setTokenAddressActive", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xc2291510" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "_tokens", + "type": "address[]" + }, + { + "internalType": "bool[]", + "name": "_active", + "type": "bool[]" + } + ], + "name": "setTokenAddressesActive", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x2cd0ad44" + }, + { + "inputs": [ + { + "internalType": "contract ICarTokenController", + "name": "_controller", + "type": "address" + } + ], + "name": "setController", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x92eefe9b" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "_active", + "type": "bool" + } + ], + "name": "setLiquidityWlActive", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x7dfdd910" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "_active", + "type": "bool" + } + ], + "name": "setSwapWlActive", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x1123f359" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "_active", + "type": "bool" + } + ], + "name": "setFarmWlActive", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xed209298" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "_active", + "type": "bool" + } + ], + "name": "setTokenWlActive", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0xc3ec17a5" + }, + { + "inputs": [ + { + "internalType": "bool", + "name": "_liquidityWlActive", + "type": "bool" + }, + { + "internalType": "bool", + "name": "_swapWlActive", + "type": "bool" + }, + { + "internalType": "bool", + "name": "_farmWlActive", + "type": "bool" + }, + { + "internalType": "bool", + "name": "_tokenWlActive", + "type": "bool" + } + ], + "name": "setWlActive", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function", + "signature": "0x6adc90f1" + } + ] +} \ No newline at end of file diff --git a/deployed/mainnet_whitelist_addresses.json b/deployed/mainnet_whitelist_addresses.json new file mode 100644 index 0000000..be7f5e0 --- /dev/null +++ b/deployed/mainnet_whitelist_addresses.json @@ -0,0 +1,4 @@ +{ + "dexWhitelist": "0xB2C747Aed3e54da0ad14D41B710CC40F88E51aA9", + "proxyAdmin": "0x9F2012330Cc213e0E109Ef1f4F80C429924C5876" +} \ No newline at end of file diff --git a/migrations/3_deploy_whitelist.js b/migrations/3_deploy_whitelist.js index 0d6f3d5..2770ab1 100644 --- a/migrations/3_deploy_whitelist.js +++ b/migrations/3_deploy_whitelist.js @@ -6,9 +6,14 @@ const { deployProxy, admin } = require("@openzeppelin/truffle-upgrades"); const DexWhitelist = artifacts.require("DexWhitelist"); const owner = "0xB844C65F3E161061bA5D5dD8497B3C04B71c4c83"; +// const owner = "0x94ddecAFF0109b615e51C482e07312abce704042"; // Mainnet + const manager = "0x622153C82dA8E31fB6193c0F8c2768a360f3Db18"; +// const ADMIN = "0x5C064Bf2c4c3669068167E0DEF02D5318810BCE0"; // Mainnet +// const ADMIN2 = "0x32be73f5FB6D4088F49C9Fb31f70D17be1154f53"; // Mainnet const proxyAdmin = "0xE006A0BB078291e539B3c7b9c8A8aF7f29215600"; +// const proxyAdmin = "0x9F2012330Cc213e0E109Ef1f4F80C429924C5876"; // Mainnet module.exports = async function(deployer, network) { if (network === "test") return; // skip migrations if use test network @@ -32,6 +37,10 @@ module.exports = async function(deployer, network) { await dexWhitelist.addManager(owner); await dexWhitelist.addManager(manager); + // Mainnet + // await dexWhitelist.addAdmin(ADMIN); + // await dexWhitelist.addAdmin(ADMIN2); + // transfer owner permission await dexWhitelist.removeAdmin(curDeployer); await dexWhitelist.transferOwnership(owner); diff --git a/migrations/4_deploy_farming.js b/migrations/4_deploy_farming.js index 92404c1..a04d22c 100644 --- a/migrations/4_deploy_farming.js +++ b/migrations/4_deploy_farming.js @@ -16,11 +16,16 @@ const MasterChef = artifacts.require("MasterChef"); const IERC20 = artifacts.require("IERC20.sol"); const owner = "0xB844C65F3E161061bA5D5dD8497B3C04B71c4c83"; +// const owner = "0x94ddecAFF0109b615e51C482e07312abce704042"; // Mainnet const rewardTokenAddress = "0x2f4d4cFAb714e4573189B300293944673Fe0efF7"; +// const rewardTokenAddress = "0xF56b164efd3CFc02BA739b719B6526A6FA1cA32a"; // Mainnet - CGT + const dexWhitelistAddress = "0xC8A46b066BC148E08c80cfc6638Ea1bC1774538c"; +// const dexWhitelistAddress = "0xB2C747Aed3e54da0ad14D41B710CC40F88E51aA9"; // Mainnet const rewardPerBlock = new BN("9.2592593e+15"); // apr. 200k/mo for KOVAN (1 block – 4 seconds) +// const rewardPerBlock = new BN("289351851851851851"); // Mainnet - 50k/mo for Mainnet (1 block - 15 seconds) const startBlock = 0; const bonusEndBlock = 0; diff --git a/migrations/5_deploy_uniswap.js b/migrations/5_deploy_uniswap.js index 46c273d..9bb1748 100644 --- a/migrations/5_deploy_uniswap.js +++ b/migrations/5_deploy_uniswap.js @@ -8,14 +8,19 @@ const { const UniswapFactory = artifacts.require("UniswapV2Factory.sol"); const UniswapRouter = artifacts.require("UniswapV2Router02.sol"); -const wethAddress = "0xd0A1E359811322d97991E03f863a0C30C2cF029C"; // KOVAN WETH address +const wethAddress = "0xd0A1E359811322d97991E03f863a0C30C2cF029C"; // KOVAN WETH address +// const wethAddress = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"; // Mainnet WETH address const owner = "0xB844C65F3E161061bA5D5dD8497B3C04B71c4c83"; +// const owner = "0x94ddecAFF0109b615e51C482e07312abce704042"; // Mainnet const feeToAddress = "0xB844C65F3E161061bA5D5dD8497B3C04B71c4c83"; +// const feeToAddress = "0x94ddecAFF0109b615e51C482e07312abce704042"; // Mainnet + const fee = ether("0.1"); // 10% const dexWhitelistAddress = "0xC8A46b066BC148E08c80cfc6638Ea1bC1774538c"; +// const dexWhitelistAddress = "0xB2C747Aed3e54da0ad14D41B710CC40F88E51aA9"; // Mainnet module.exports = async function(deployer, network) { if (network === "test") return; // skip migrations if use test network diff --git a/migrations/6_add_to_wl.js b/migrations/6_add_to_wl.js index 2faf195..f58196d 100644 --- a/migrations/6_add_to_wl.js +++ b/migrations/6_add_to_wl.js @@ -3,12 +3,22 @@ const { utf8ToHex } = web3.utils; const DexWhitelist = artifacts.require("DexWhitelist"); const dexWhitelistAddress = "0xC8A46b066BC148E08c80cfc6638Ea1bC1774538c"; +// const dexWhitelistAddress = "0xB2C747Aed3e54da0ad14D41B710CC40F88E51aA9"; //Mainnet +// Kovan const tCGTAddress = "0x2f4d4cFAb714e4573189B300293944673Fe0efF7"; const tCSCAddress = "0x558FC7FA5471Ff77c56b9cB37207d099EAcE8379"; const tCURAddress = "0x42Bbfc77Ee4Ed0efC608634859a672D0cf49e1b4"; const tDAIAddress = "0x330294de10bAd15f373BA7429Ab9685eDe43c13f"; -const wethAddress = "0xd0A1E359811322d97991E03f863a0C30C2cF029C"; // KOVAN WETH address +const wethAddress = "0xd0A1E359811322d97991E03f863a0C30C2cF029C"; // KOVAN WETH address + +// Mainnet +// const tCGTAddress = "0xF56b164efd3CFc02BA739b719B6526A6FA1cA32a"; +// const tCURAddress = "0x13339fD07934CD674269726EdF3B5ccEE9DD93de"; +// const tDAIAddress = "0x6B175474E89094C44Da98b954EedeAC495271d0F"; +// const wethAddress = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"; + +// const OWNER = "0x94ddecAFF0109b615e51C482e07312abce704042"; // Mainnet module.exports = async function(deployer, network) { if (network === "test") return; // skip migrations if use test network @@ -40,4 +50,8 @@ module.exports = async function(deployer, network) { [tCGTAddress, tCSCAddress, tCURAddress, tDAIAddress, wethAddress], [true, true, true, true, true], ); + + // transfer owner permission (Mainnet) + // await dexWhitelist.removeAdmin("0x58DD7F73390Aa8ac35675267C0c3695324275Bb1"); + // await dexWhitelist.transferOwnership(OWNER); }; diff --git a/migrations/8_add_LPs_to_farming.js b/migrations/8_add_LPs_to_farming.js index ac28a48..35c7ee7 100644 --- a/migrations/8_add_LPs_to_farming.js +++ b/migrations/8_add_LPs_to_farming.js @@ -8,7 +8,9 @@ const { const IERC20 = artifacts.require("IERC20.sol"); const MasterChef = artifacts.require("MasterChef.sol"); -// contract addresses +// const owner = "0x5C064Bf2c4c3669068167E0DEF02D5318810BCE0"; // Mainnet admin (temp) + +// Kovan const tCGTtDAIPairAddress = "0x56e25a8b226789daa0297c602807b28e2d14a100"; const tCSCtDAIPairAddress = "0x1f992899a69b273821c53ea886f605c911b93995"; const tCURtDAIPairAddress = "0x83e1f7a2d21a54f846696d2b770ae293bdc2348e"; @@ -22,13 +24,32 @@ const tCSCtDAIPairPid = 2; const tCURtDAIPairPid = 3; const kETHtDAIPairPid = 4; -// allocPoints const tCGTtDAIAllocPoint = ether("1"); const tCSCtDAIAllocPoint = ether("1"); const tCURtDAIAllocPoint = ether("1"); const kETHtDAIAllocPoint = ether("1"); const dummyAllocPoint = ether("8"); // 2/3 to DummyToken +// Mainnet +/* +const ETHCGTPairAddress = "0x9a7c27F2BfD86001c0E9B5b9096564F64F37439E"; +const ETHCURPairAddress = "0x85323e31bCa3a8da8c5307671DDe878C4bBCDD36"; +const CGTDAIPairAddress = "0xB9FcE07dB9737810CbC573E43ba700aA4655b6Bc"; + +const masterChefAddress = "0xe8Cc9f640C55f3c5905FD2BBb63C53fb8A3A527d"; +const dummyTokenAddress = "0x7F98372A9852fd04B17a5617F18a9C7cC0F2c4DE"; + +const dummyTokenPid = 0; +const ETHCGTPairPid = 1; +const ETHCURPairPid = 2; +const CGTDAIPairPid = 3; + +const ETHCGTAllocPoint = ether("1"); +const ETHCURAllocPoint = ether("1"); +const CGTDAIAllocPoint = ether("1"); +const dummyAllocPoint = ether("6"); // 2/3 to DummyToken +*/ + module.exports = async function(deployer, network) { if (network === "test") return; // skip migrations if use test network @@ -36,6 +57,44 @@ module.exports = async function(deployer, network) { const accounts = await web3.eth.getAccounts(); const user = accounts[0]; + // Mainnet + /* + let ETHCGTPair = await IERC20.at(ETHCGTPairAddress); + let ETHCURPair = await IERC20.at(ETHCURPairAddress); + let CGTDAIPair = await IERC20.at(CGTDAIPairAddress); + let dummyToken = await IERC20.at(dummyTokenAddress); + + let masterChef = await MasterChef.at(masterChefAddress); + + await masterChef.add( + ETHCGTAllocPoint, + ETHCGTPair.address, + false, + ); + console.log("added ETHCGTPair LP"); + + await masterChef.add( + ETHCURAllocPoint, + ETHCURPair.address, + false, + ); + console.log("added ETHCURPair LP"); + + await masterChef.add( + CGTDAIAllocPoint, + CGTDAIPair.address, + false, + ); + console.log("added CGTDAIPair LP"); + + await masterChef.set( + dummyTokenPid, + dummyAllocPoint, + true, + ); + console.log("set dummyToken LP"); + */ + // get tokens from addresses let tCGTtDAIPair = await IERC20.at(tCGTtDAIPairAddress); let tCSCtDAIPair = await IERC20.at(tCSCtDAIPairAddress); @@ -144,6 +203,23 @@ module.exports = async function(deployer, network) { ); console.log("deposited dummyToken LP"); + // Mainnet + /* + const contractsAddresses = { + dummyTokenAddress: dummyTokenAddress, + ETHCGTPairAddress: ETHCGTPairAddress, + ETHCURPairAddress: ETHCURPairAddress, + CGTDAIPairAddress: CGTDAIPairAddress, + }; + + const pid = { + dummyTokenPid: dummyTokenPid, + ETHCGTPairPid: ETHCGTPairPid, + ETHCURPairPid: ETHCURPairPid, + CGTDAIPairPid: CGTDAIPairPid, + }; + */ + // write addresses, PIDs and ABI to files const contractsAddresses = { dummyTokenAddress: dummyTokenAddress, @@ -158,7 +234,7 @@ module.exports = async function(deployer, network) { tCGTtDAIPairPid: tCGTtDAIPairPid, tCSCtDAIPairPid: tCSCtDAIPairPid, tCURtDAIPairPid: tCURtDAIPairPid, - kETHtDAIPairPid, kETHtDAIPairPid + kETHtDAIPairPid: kETHtDAIPairPid }; const contractsAbi = {