Files
dodo-contractV2/build-v1/contracts/Admin.json

7151 lines
289 KiB
JSON
Raw Normal View History

2020-11-09 14:26:38 +08:00
{
"contractName": "Admin",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferPrepared",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "oldGasPriceLimit",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newGasPriceLimit",
"type": "uint256"
}
],
"name": "UpdateGasPriceLimit",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "oldK",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newK",
"type": "uint256"
}
],
"name": "UpdateK",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "oldLiquidityProviderFeeRate",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newLiquidityProviderFeeRate",
"type": "uint256"
}
],
"name": "UpdateLiquidityProviderFeeRate",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "oldMaintainerFeeRate",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newMaintainerFeeRate",
"type": "uint256"
}
],
"name": "UpdateMaintainerFeeRate",
"type": "event"
},
{
"inputs": [],
"name": "_BASE_BALANCE_",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_BASE_BALANCE_LIMIT_",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_BASE_CAPITAL_RECEIVE_QUOTE_",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_BASE_CAPITAL_TOKEN_",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_BASE_TOKEN_",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_BUYING_ALLOWED_",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "_CLAIMED_",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_CLOSED_",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_DEPOSIT_BASE_ALLOWED_",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_DEPOSIT_QUOTE_ALLOWED_",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_GAS_PRICE_LIMIT_",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_K_",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_LP_FEE_RATE_",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_MAINTAINER_",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_MT_FEE_RATE_",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_NEW_OWNER_",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_ORACLE_",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_OWNER_",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_QUOTE_BALANCE_",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_QUOTE_BALANCE_LIMIT_",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_QUOTE_CAPITAL_RECEIVE_BASE_",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_QUOTE_CAPITAL_TOKEN_",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_QUOTE_TOKEN_",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_R_STATUS_",
"outputs": [
{
"internalType": "enum Types.RStatus",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_SELLING_ALLOWED_",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_SUPERVISOR_",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_TARGET_BASE_TOKEN_AMOUNT_",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_TARGET_QUOTE_TOKEN_AMOUNT_",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_TRADE_ALLOWED_",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "claimOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "lp",
"type": "address"
}
],
"name": "getBaseCapitalBalanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getOraclePrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "lp",
"type": "address"
}
],
"name": "getQuoteCapitalBalanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTotalBaseCapital",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTotalQuoteCapital",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOracle",
"type": "address"
}
],
"name": "setOracle",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newSupervisor",
"type": "address"
}
],
"name": "setSupervisor",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newMaintainer",
"type": "address"
}
],
"name": "setMaintainer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newLiquidityPorviderFeeRate",
"type": "uint256"
}
],
"name": "setLiquidityProviderFeeRate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newMaintainerFeeRate",
"type": "uint256"
}
],
"name": "setMaintainerFeeRate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newK",
"type": "uint256"
}
],
"name": "setK",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newGasPriceLimit",
"type": "uint256"
}
],
"name": "setGasPriceLimit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "disableTrading",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "enableTrading",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "disableQuoteDeposit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "enableQuoteDeposit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "disableBaseDeposit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "enableBaseDeposit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "disableBuying",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "enableBuying",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "disableSelling",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "enableSelling",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newBaseBalanceLimit",
"type": "uint256"
}
],
"name": "setBaseBalanceLimit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newQuoteBalanceLimit",
"type": "uint256"
}
],
"name": "setQuoteBalanceLimit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.6.9+commit.3e3065ac\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferPrepared\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldGasPriceLimit\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newGasPriceLimit\",\"type\":\"uint256\"}],\"name\":\"UpdateGasPriceLimit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldK\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newK\",\"type\":\"uint256\"}],\"name\":\"UpdateK\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldLiquidityProviderFeeRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newLiquidityProviderFeeRate\",\"type\":\"uint256\"}],\"name\":\"UpdateLiquidityProviderFeeRate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldMaintainerFeeRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newMaintainerFeeRate\",\"type\":\"uint256\"}],\"name\":\"UpdateMaintainerFeeRate\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"_BASE_BALANCE_\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_BASE_BALANCE_LIMIT_\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_BASE_CAPITAL_RECEIVE_QUOTE_\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_BASE_CAPITAL_TOKEN_\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_BASE_TOKEN_\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_BUYING_ALLOWED_\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"_CLAIMED_\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_CLOSED_\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_DEPOSIT_BASE_ALLOWED_\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_DEPOSIT_QUOTE_ALLOWED_\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_GAS_PRICE_LIMIT_\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_K_\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_LP_FEE_RATE_\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":
"bytecode": "0x608060405234801561001057600080fd5b5061142b806100206000396000f3fe608060405234801561001057600080fd5b50600436106103785760003560e01c80637c9b8e89116101d3578063b2094fd311610104578063d689107c116100a2578063ec2fd46d1161007c578063ec2fd46d146105ca578063f2220416146105d2578063f2fde38b146105e5578063f67ed448146105f857610378565b8063d689107c146105b2578063dd58b41c146105ba578063eab5d20e146105c257610378565b8063c5bbffe8116100de578063c5bbffe814610592578063c6b73cf91461059a578063cc062b58146105a2578063d4b97046146105aa57610378565b8063b2094fd31461057a578063bc7d679d14610582578063c0ffa1781461058a57610378565b806397316ad811610171578063a598aca71161014b578063a598aca71461055a578063ab44a7a314610562578063ac1fbc981461056a578063aceecbc81461057257610378565b806397316ad8146105375780639b020fba1461054a578063a3161a561461055257610378565b80638a8c523c116101ad5780638a8c523c1461050c5780638ff5e7421461051457806390cbf8221461051c5780639299eb301461052457610378565b80637c9b8e89146104e95780638456db15146104f1578063892daf05146104f957610378565b80633960f142116102ad57806367de8be91161024b57806373a2ab7c1161022557806373a2ab7c146104b3578063796da7af146104bb5780637adbf973146104c35780637aed942d146104d657610378565b806367de8be91461047857806368be20ad1461048b5780636ec6a58d146104ab57610378565b80634de4527e116102875780634de4527e1461044d5780634e71e0c81461045557806354fd4d501461045d5780635bb7552a1461046557610378565b80633960f142146104355780634322ec831461043d5780634a248d2a1461044557610378565b80631769ddaa1161031a578063245c9685116102f4578063245c968514610415578063247f993b1461041d5780632aa82c651461042557806336ac41a81461042d57610378565b80631769ddaa146103f057806317700f01146103f857806317be952e1461040057610378565b80631184d8be116103565780631184d8be146103b857806313c57624146103c057806313ea5d29146103c857806316048bc4146103db57610378565b8063092316021461037d5780630cd1667d146103925780630e6518e9146103b0575b600080fd5b61039061038b36600461122b565b61060b565b005b61039a610693565b6040516103a791906113de565b60405180910390f35b61039a610716565b61039061071c565b610390610785565b6103906103d6366004611204565b6107d3565b6103e361081f565b6040516103a7919061125b565b61039a61082e565b610390610834565b610408610882565b6040516103a7919061127a565b61039a61088b565b610390610891565b61039a6108dc565b610390610921565b6103e361098a565b6103e3610999565b6103e36109a8565b61039a6109b7565b6103906109bd565b61039a610a4b565b61039061047336600461122b565b610a50565b61039061048636600461122b565b610ac6565b61049e610499366004611204565b610b38565b6040516103a7919061126f565b61049e610b4d565b6103e3610b5d565b61039a610b6c565b6103906104d1366004611204565b610bb1565b61039a6104e4366004611204565b610bfd565b61039a610c84565b6103e3610c8a565b61039061050736600461122b565b610c99565b610390610cf2565b61049e610d5b565b610390610d69565b610390610532366004611204565b610dcc565b61039061054536600461122b565b610e18565b61039a610e71565b61049e610e77565b61049e610e80565b61039a610e90565b6103e3610e96565b610390610ea5565b61039a610ef1565b610390610ef7565b61039a610f45565b61049e610f4b565b61039a610f5b565b610390610f61565b6103e3610fc6565b6103e3610fd5565b61049e610fe4565b61039a610ff4565b61039a610ffa565b6103906105e036600461122b565b611000565b6103906105f3366004611204565b611072565b61039a610606366004611204565b61111d565b6006546001600160a01b031633148061062e57506000546001600160a01b031633145b6106535760405162461bcd60e51b815260040161064a906112d2565b60405180910390fd5b7f808f99cfd15f1be6019f93dc76c81d5bd82e0b3e0b3d23a54f5a2e647a6cc3cc600254826040516106869291906113e7565b60405180910390a1600255565b601354604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b1580156106d857600080fd5b505afa1580156106ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107109190611243565b90505b90565b60165481565b6000546001600160a01b031633146107465760405162461bcd60e51b815260040161064a9061137a565b600154600160b01b900460ff16156107705760405162461bcd60e51b815260040161064a90611330565b6001805460ff60c01b1916600160c01b179055565b6006546001600160a01b03163314806107a857506000546001600160a01b031633145b6107c45760405162461bcd60e51b815260040161064a906112d2565b6001805460ff60c01b19169055565b600054
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106103785760003560e01c80637c9b8e89116101d3578063b2094fd311610104578063d689107c116100a2578063ec2fd46d1161007c578063ec2fd46d146105ca578063f2220416146105d2578063f2fde38b146105e5578063f67ed448146105f857610378565b8063d689107c146105b2578063dd58b41c146105ba578063eab5d20e146105c257610378565b8063c5bbffe8116100de578063c5bbffe814610592578063c6b73cf91461059a578063cc062b58146105a2578063d4b97046146105aa57610378565b8063b2094fd31461057a578063bc7d679d14610582578063c0ffa1781461058a57610378565b806397316ad811610171578063a598aca71161014b578063a598aca71461055a578063ab44a7a314610562578063ac1fbc981461056a578063aceecbc81461057257610378565b806397316ad8146105375780639b020fba1461054a578063a3161a561461055257610378565b80638a8c523c116101ad5780638a8c523c1461050c5780638ff5e7421461051457806390cbf8221461051c5780639299eb301461052457610378565b80637c9b8e89146104e95780638456db15146104f1578063892daf05146104f957610378565b80633960f142116102ad57806367de8be91161024b57806373a2ab7c1161022557806373a2ab7c146104b3578063796da7af146104bb5780637adbf973146104c35780637aed942d146104d657610378565b806367de8be91461047857806368be20ad1461048b5780636ec6a58d146104ab57610378565b80634de4527e116102875780634de4527e1461044d5780634e71e0c81461045557806354fd4d501461045d5780635bb7552a1461046557610378565b80633960f142146104355780634322ec831461043d5780634a248d2a1461044557610378565b80631769ddaa1161031a578063245c9685116102f4578063245c968514610415578063247f993b1461041d5780632aa82c651461042557806336ac41a81461042d57610378565b80631769ddaa146103f057806317700f01146103f857806317be952e1461040057610378565b80631184d8be116103565780631184d8be146103b857806313c57624146103c057806313ea5d29146103c857806316048bc4146103db57610378565b8063092316021461037d5780630cd1667d146103925780630e6518e9146103b0575b600080fd5b61039061038b36600461122b565b61060b565b005b61039a610693565b6040516103a791906113de565b60405180910390f35b61039a610716565b61039061071c565b610390610785565b6103906103d6366004611204565b6107d3565b6103e361081f565b6040516103a7919061125b565b61039a61082e565b610390610834565b610408610882565b6040516103a7919061127a565b61039a61088b565b610390610891565b61039a6108dc565b610390610921565b6103e361098a565b6103e3610999565b6103e36109a8565b61039a6109b7565b6103906109bd565b61039a610a4b565b61039061047336600461122b565b610a50565b61039061048636600461122b565b610ac6565b61049e610499366004611204565b610b38565b6040516103a7919061126f565b61049e610b4d565b6103e3610b5d565b61039a610b6c565b6103906104d1366004611204565b610bb1565b61039a6104e4366004611204565b610bfd565b61039a610c84565b6103e3610c8a565b61039061050736600461122b565b610c99565b610390610cf2565b61049e610d5b565b610390610d69565b610390610532366004611204565b610dcc565b61039061054536600461122b565b610e18565b61039a610e71565b61049e610e77565b61049e610e80565b61039a610e90565b6103e3610e96565b610390610ea5565b61039a610ef1565b610390610ef7565b61039a610f45565b61049e610f4b565b61039a610f5b565b610390610f61565b6103e3610fc6565b6103e3610fd5565b61049e610fe4565b61039a610ff4565b61039a610ffa565b6103906105e036600461122b565b611000565b6103906105f3366004611204565b611072565b61039a610606366004611204565b61111d565b6006546001600160a01b031633148061062e57506000546001600160a01b031633145b6106535760405162461bcd60e51b815260040161064a906112d2565b60405180910390fd5b7f808f99cfd15f1be6019f93dc76c81d5bd82e0b3e0b3d23a54f5a2e647a6cc3cc600254826040516106869291906113e7565b60405180910390a1600255565b601354604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b1580156106d857600080fd5b505afa1580156106ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107109190611243565b90505b90565b60165481565b6000546001600160a01b031633146107465760405162461bcd60e51b815260040161064a9061137a565b600154600160b01b900460ff16156107705760405162461bcd60e51b815260040161064a90611330565b6001805460ff60c01b1916600160c01b179055565b6006546001600160a01b03163314806107a857506000546001600160a01b031633145b6107c45760405162461bcd60e51b815260040161064a906112d2565b6001805460ff60c01b19169055565b6000546001600160a01b031633146107fd5760405162461bcd60e51b815260
"immutableReferences": {},
"sourceMap": "270:3200:22:-:0;;;;;;;;;;;;;;;;;;;",
"deployedSourceMap": "270:3200:22:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1771:207;;;;;;;;;:::i;:::-;;2949:133:27;;;:::i;:::-;;;;;;;;;;;;;;;;2006:43;;;:::i;2587:104:22:-;;;:::i;2473:108::-;;;:::i;985:110::-;;;;;;;;;:::i;264:22:37:-;;;:::i;:::-;;;;;;;;1112:36:27;;;:::i;2043:97:22:-;;;:::i;1604:31:27:-;;;:::i;:::-;;;;;;;;1688:42;;;:::i;2758:97:22:-;;;:::i;3243:135:27:-;;;:::i;2361:106:22:-;;;:::i;1202:27:27:-;;;:::i;1271:::-;;;:::i;1352:::-;;;:::i;912:32::-;;;:::i;963:225:37:-;;;:::i;3433:87:27:-;;;:::i;1101:274:22:-;;;;;;;;;:::i;1626:139::-;;;;;;;;;:::i;2055:41:27:-;;;;;;;;;:::i;:::-;;;;;;;;772:20;;;:::i;1419:23::-;;;:::i;2682:108::-;;;:::i;769:94:22:-;;;;;;;;;:::i;2796:147:27:-;;;;;;;;;:::i;1771:30::-;;;:::i;292:26:37:-;;;:::i;3166:146:22:-;;;;;;;;;:::i;2146:93::-;;;:::i;1036:29:27:-;;;:::i;2861:93:22:-;;;:::i;869:110::-;;;;;;;;;:::i;3318:150::-;;;;;;;;;:::i;1071:35:27:-;;;:::i;1002:28::-;;;:::i;839:34::-;;;:::i;1511:28::-;;;:::i;1849:36::-;;;:::i;2960:99:22:-;;;:::i;1641:41:27:-;;;:::i;2245:110:22:-;;;:::i;1545:28:27:-;;;:::i;798:35::-;;;:::i;1957:43::-;;;:::i;3065:95:22:-;;;:::i;1385:28:27:-;;;:::i;1808:35::-;;;:::i;879:27::-;;;:::i;1736:29::-;;;:::i;1579:18::-;;;:::i;1381:239:22:-;;;;;;;;;:::i;737:220:37:-;;;;;;;;;:::i;3088:149:27:-;;;;;;;;;:::i;1771:207:22:-;2212:12:27;;-1:-1:-1;;;;;2212:12:27;2198:10;:26;;:51;;-1:-1:-1;2242:7:27;;-1:-1:-1;;;;;2242:7:27;2228:10;:21;2198:51;2190:87;;;;-1:-1:-1;;;2190:87:27;;;;;;;;;;;;;;;;;1869:56:22::1;1889:17;;1908:16;1869:56;;;;;;;;;;;;;;;;1935:17;:36:::0;1771:207::o;2949:133:27:-;3040:20;;3027:48;;;-1:-1:-1;;;3027:48:27;;;;3001:7;;-1:-1:-1;;;;;3040:20:27;;3027:46;;:48;;;;;;;;;;;;;;3040:20;3027:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3020:55;;2949:133;;:::o;2006:43::-;;;;:::o;2587:104:22:-;648:7:37;;-1:-1:-1;;;;;648:7:37;634:10;:21;626:43;;;;-1:-1:-1;;;626:43:37;;;;;;;;;2341:8:27::1;::::0;-1:-1:-1;;;2341:8:27;::::1;;;2340:9;2332:33;;;;-1:-1:-1::0;;;2332:33:27::1;;;;;;;;;2680:4:22::2;2655:29:::0;;-1:-1:-1;;;;2655:29:22::2;-1:-1:-1::0;;;2655:29:22::2;::::0;;2587:104::o;2473:108::-;2212:12:27;;-1:-1:-1;;;;;2212:12:27;2198:10;:26;;:51;;-1:-1:-1;2242:7:27;;-1:-1:-1;;;;;2242:7:27;2228:10;:21;2198:51;2190:87;;;;-1:-1:-1;;;2190:87:27;;;;;;;;;2544:22:22::1;:30:::0;;-1:-1:-1;;;;2544:30:22::1;::::0;;2473:108::o;985:110::-;648:7:37;;-1:-1:-1;;;;;648:7:37;634:10;:21;626:43;;;;-1:-1:-1;;;626:43:37;;;;;;;;;1060:12:22::1;:28:::0;;-1:-1:-1;;;;;;1060:28:22::1;-1:-1:-1::0;;;;;1060:28:22;;;::::1;::::0;;;::::1;::::0;;985:110::o;264:22:37:-;;;-1:-1:-1;;;;;264:22:37;;:::o;1112:36:27:-;;;;:::o;2043:97:22:-;2212:12:27;;-1:-1:-1;;;;;2212:12:27;2198:10;:26;;:51;;-1:-1:-1;2242:7:27;;-1:-1:-1;;;;;2242:7:27;2228:10;:21;2198:51;2190:87;;;;-1:-1:-1;;;2190:87:27;;;;;;;;;2110:15:22::1;:23:::0;;-1:-1:-1;;;;2110:23:22::1;::::0;;2043:97::o;1604:31:27:-;;;;;;:::o;1688:42::-;;;;:::o;2758:97:22:-;2212:12:27;;-1:-1:-1;;;;;2212:12:27;2198:10;:26;;:51;;-1:-1:-1;2242:7:27;;-1:-1:-1;;;;;2242:7:27;2228:10;:21;2198:51;2190:87;;;;-1:-1:-1;;;2190:87:27;;;;;;;;;2824:16:22::1;:24:::0;;-1:-1:-1;;2824:24:22::1;::::0;;2758:97::o;3243:135:27:-;3335:21;;3322:49;;;-1:-1:-1;;;3322:49:27;;;;3296:7;;-1:-1:-1;;;;;3335:21:27;;3322:47;;:49;;;;;;;;;;;;;;3335:21;3322:49;;;;;;;;;;2361:106:22;648:7:37;;-1:-1:-1;;;;;648:7:37;634:10;:21;626:43;;;;-1:-1:-1;;;626:43:37;;;;;;;;;2341:8:27::1;::::0;-1:-1:-1;;;2341:8:27;::::1;;;2340:9;2332:33;;;;-1:-1:-1::0;;;2332:33:27::1;;;;;;;;;2456:4:22::2;2430:30:::0;;-1:-1:-1;;;;2430:30:22::2;-1:-1:-1::0;;;2430:30:22::2;::::0;;2361:106::o;1202:27:27:-;;;-1:-1:-1;;;;;1202:27:27;;:::o;1271:::-;;;-1:-1:-1;;;;;1271:27:27;;:::o;1352:::-;;;-1:-1:-1;;;;;1352:27:27;;:::o;912:32::-;;;;:::o;963:225:37:-;1030:11;;-1:-1:-1;;;;;
"source": "/*\n\n Copyright 2020 DODO ZOO.\n SPDX-License-Identifier: Apache-2.0\n\n*/\n\npragma solidity 0.6.9;\npragma experimental ABIEncoderV2;\n\nimport {Storage} from \"./Storage.sol\";\n\n\n/**\n * @title Admin\n * @author DODO Breeder\n *\n * @notice Functions for admin operations\n */\ncontract Admin is Storage {\n // ============ Events ============\n\n event UpdateGasPriceLimit(uint256 oldGasPriceLimit, uint256 newGasPriceLimit);\n\n event UpdateLiquidityProviderFeeRate(\n uint256 oldLiquidityProviderFeeRate,\n uint256 newLiquidityProviderFeeRate\n );\n\n event UpdateMaintainerFeeRate(uint256 oldMaintainerFeeRate, uint256 newMaintainerFeeRate);\n\n event UpdateK(uint256 oldK, uint256 newK);\n\n // ============ Params Setting Functions ============\n\n function setOracle(address newOracle) external onlyOwner {\n _ORACLE_ = newOracle;\n }\n\n function setSupervisor(address newSupervisor) external onlyOwner {\n _SUPERVISOR_ = newSupervisor;\n }\n\n function setMaintainer(address newMaintainer) external onlyOwner {\n _MAINTAINER_ = newMaintainer;\n }\n\n function setLiquidityProviderFeeRate(uint256 newLiquidityPorviderFeeRate) external onlyOwner {\n emit UpdateLiquidityProviderFeeRate(_LP_FEE_RATE_, newLiquidityPorviderFeeRate);\n _LP_FEE_RATE_ = newLiquidityPorviderFeeRate;\n _checkDODOParameters();\n }\n\n function setMaintainerFeeRate(uint256 newMaintainerFeeRate) external onlyOwner {\n emit UpdateMaintainerFeeRate(_MT_FEE_RATE_, newMaintainerFeeRate);\n _MT_FEE_RATE_ = newMaintainerFeeRate;\n _checkDODOParameters();\n }\n\n function setK(uint256 newK) external onlyOwner {\n emit UpdateK(_K_, newK);\n _K_ = newK;\n _checkDODOParameters();\n }\n\n function setGasPriceLimit(uint256 newGasPriceLimit) external onlySupervisorOrOwner {\n emit UpdateGasPriceLimit(_GAS_PRICE_LIMIT_, newGasPriceLimit);\n _GAS_PRICE_LIMIT_ = newGasPriceLimit;\n }\n\n // ============ System Control Functions ============\n\n function disableTrading() external onlySupervisorOrOwner {\n _TRADE_ALLOWED_ = false;\n }\n\n function enableTrading() external onlyOwner notClosed {\n _TRADE_ALLOWED_ = true;\n }\n\n function disableQuoteDeposit() external onlySupervisorOrOwner {\n _DEPOSIT_QUOTE_ALLOWED_ = false;\n }\n\n function enableQuoteDeposit() external onlyOwner notClosed {\n _DEPOSIT_QUOTE_ALLOWED_ = true;\n }\n\n function disableBaseDeposit() external onlySupervisorOrOwner {\n _DEPOSIT_BASE_ALLOWED_ = false;\n }\n\n function enableBaseDeposit() external onlyOwner notClosed {\n _DEPOSIT_BASE_ALLOWED_ = true;\n }\n\n // ============ Advanced Control Functions ============\n\n function disableBuying() external onlySupervisorOrOwner {\n _BUYING_ALLOWED_ = false;\n }\n\n function enableBuying() external onlyOwner notClosed {\n _BUYING_ALLOWED_ = true;\n }\n\n function disableSelling() external onlySupervisorOrOwner {\n _SELLING_ALLOWED_ = false;\n }\n\n function enableSelling() external onlyOwner notClosed {\n _SELLING_ALLOWED_ = true;\n }\n\n function setBaseBalanceLimit(uint256 newBaseBalanceLimit) external onlyOwner notClosed {\n _BASE_BALANCE_LIMIT_ = newBaseBalanceLimit;\n }\n\n function setQuoteBalanceLimit(uint256 newQuoteBalanceLimit) external onlyOwner notClosed {\n _QUOTE_BALANCE_LIMIT_ = newQuoteBalanceLimit;\n }\n}\n",
"sourcePath": "/Users/owen/Desktop/dodo/dodo-smart-contract/contracts/impl/Admin.sol",
"ast": {
"absolutePath": "/Users/owen/Desktop/dodo/dodo-smart-contract/contracts/impl/Admin.sol",
"exportedSymbols": {
"Admin": [
6963
]
},
"id": 6964,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 6681,
"literals": [
"solidity",
"0.6",
".9"
],
"nodeType": "PragmaDirective",
"src": "78:22:22"
},
{
"id": 6682,
"literals": [
"experimental",
"ABIEncoderV2"
],
"nodeType": "PragmaDirective",
"src": "101:33:22"
},
{
"absolutePath": "/Users/owen/Desktop/dodo/dodo-smart-contract/contracts/impl/Storage.sol",
"file": "./Storage.sol",
"id": 6684,
"nodeType": "ImportDirective",
"scope": 6964,
"sourceUnit": 9614,
"src": "136:38:22",
"symbolAliases": [
{
"foreign": {
"argumentTypes": null,
"id": 6683,
"name": "Storage",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": null,
"src": "144:7:22",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
},
"local": null
}
],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 6686,
"name": "Storage",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 9613,
"src": "288:7:22",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Storage_$9613",
"typeString": "contract Storage"
}
},
"id": 6687,
"nodeType": "InheritanceSpecifier",
"src": "288:7:22"
}
],
"contractDependencies": [
9613,
11166,
11296
],
"contractKind": "contract",
"documentation": {
"id": 6685,
"nodeType": "StructuredDocumentation",
"src": "177:92:22",
"text": " @title Admin\n @author DODO Breeder\n @notice Functions for admin operations"
},
"fullyImplemented": true,
"id": 6963,
"linearizedBaseContracts": [
6963,
9613,
11296,
11166
],
"name": "Admin",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 6693,
"name": "UpdateGasPriceLimit",
"nodeType": "EventDefinition",
"parameters": {
"id": 6692,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6689,
"indexed": false,
"mutability": "mutable",
"name": "oldGasPriceLimit",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6693,
"src": "369:24:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6688,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "369:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6691,
"indexed": false,
"mutability": "mutable",
"name": "newGasPriceLimit",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6693,
"src": "395:24:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6690,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "395:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "368:52:22"
},
"src": "343:78:22"
},
{
"anonymous": false,
"documentation": null,
"id": 6699,
"name": "UpdateLiquidityProviderFeeRate",
"nodeType": "EventDefinition",
"parameters": {
"id": 6698,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6695,
"indexed": false,
"mutability": "mutable",
"name": "oldLiquidityProviderFeeRate",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6699,
"src": "473:35:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6694,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "473:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6697,
"indexed": false,
"mutability": "mutable",
"name": "newLiquidityProviderFeeRate",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6699,
"src": "518:35:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6696,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "518:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "463:96:22"
},
"src": "427:133:22"
},
{
"anonymous": false,
"documentation": null,
"id": 6705,
"name": "UpdateMaintainerFeeRate",
"nodeType": "EventDefinition",
"parameters": {
"id": 6704,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6701,
"indexed": false,
"mutability": "mutable",
"name": "oldMaintainerFeeRate",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6705,
"src": "596:28:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6700,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "596:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6703,
"indexed": false,
"mutability": "mutable",
"name": "newMaintainerFeeRate",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6705,
"src": "626:28:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6702,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "626:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "595:60:22"
},
"src": "566:90:22"
},
{
"anonymous": false,
"documentation": null,
"id": 6711,
"name": "UpdateK",
"nodeType": "EventDefinition",
"parameters": {
"id": 6710,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6707,
"indexed": false,
"mutability": "mutable",
"name": "oldK",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6711,
"src": "676:12:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6706,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "676:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6709,
"indexed": false,
"mutability": "mutable",
"name": "newK",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6711,
"src": "690:12:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6708,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "690:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "675:28:22"
},
"src": "662:42:22"
},
{
"body": {
"id": 6722,
"nodeType": "Block",
"src": "826:37:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6720,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6718,
"name": "_ORACLE_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9451,
"src": "836:8:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6719,
"name": "newOracle",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6713,
"src": "847:9:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "836:20:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 6721,
"nodeType": "ExpressionStatement",
"src": "836:20:22"
}
]
},
"documentation": null,
"functionSelector": "7adbf973",
"id": 6723,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6716,
"modifierName": {
"argumentTypes": null,
"id": 6715,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "816:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "816:9:22"
}
],
"name": "setOracle",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6714,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6713,
"mutability": "mutable",
"name": "newOracle",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6723,
"src": "788:17:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6712,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "788:7:22",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "787:19:22"
},
"returnParameters": {
"id": 6717,
"nodeType": "ParameterList",
"parameters": [],
"src": "826:0:22"
},
"scope": 6963,
"src": "769:94:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6734,
"nodeType": "Block",
"src": "934:45:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6732,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6730,
"name": "_SUPERVISOR_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9443,
"src": "944:12:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6731,
"name": "newSupervisor",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6725,
"src": "959:13:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "944:28:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 6733,
"nodeType": "ExpressionStatement",
"src": "944:28:22"
}
]
},
"documentation": null,
"functionSelector": "9299eb30",
"id": 6735,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6728,
"modifierName": {
"argumentTypes": null,
"id": 6727,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "924:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "924:9:22"
}
],
"name": "setSupervisor",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6726,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6725,
"mutability": "mutable",
"name": "newSupervisor",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6735,
"src": "892:21:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6724,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "892:7:22",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "891:23:22"
},
"returnParameters": {
"id": 6729,
"nodeType": "ParameterList",
"parameters": [],
"src": "934:0:22"
},
"scope": 6963,
"src": "869:110:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6746,
"nodeType": "Block",
"src": "1050:45:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6744,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6742,
"name": "_MAINTAINER_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9445,
"src": "1060:12:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6743,
"name": "newMaintainer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6737,
"src": "1075:13:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1060:28:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 6745,
"nodeType": "ExpressionStatement",
"src": "1060:28:22"
}
]
},
"documentation": null,
"functionSelector": "13ea5d29",
"id": 6747,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6740,
"modifierName": {
"argumentTypes": null,
"id": 6739,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "1040:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1040:9:22"
}
],
"name": "setMaintainer",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6738,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6737,
"mutability": "mutable",
"name": "newMaintainer",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6747,
"src": "1008:21:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6736,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1008:7:22",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1007:23:22"
},
"returnParameters": {
"id": 6741,
"nodeType": "ParameterList",
"parameters": [],
"src": "1050:0:22"
},
"scope": 6963,
"src": "985:110:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6766,
"nodeType": "Block",
"src": "1194:181:22",
"statements": [
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6755,
"name": "_LP_FEE_RATE_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9453,
"src": "1240:13:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6756,
"name": "newLiquidityPorviderFeeRate",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6749,
"src": "1255:27:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 6754,
"name": "UpdateLiquidityProviderFeeRate",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6699,
"src": "1209:30:22",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
"typeString": "function (uint256,uint256)"
}
},
"id": 6757,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1209:74:22",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6758,
"nodeType": "EmitStatement",
"src": "1204:79:22"
},
{
"expression": {
"argumentTypes": null,
"id": 6761,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6759,
"name": "_LP_FEE_RATE_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9453,
"src": "1293:13:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6760,
"name": "newLiquidityPorviderFeeRate",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6749,
"src": "1309:27:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1293:43:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6762,
"nodeType": "ExpressionStatement",
"src": "1293:43:22"
},
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 6763,
"name": "_checkDODOParameters",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9538,
"src": "1346:20:22",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 6764,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1346:22:22",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6765,
"nodeType": "ExpressionStatement",
"src": "1346:22:22"
}
]
},
"documentation": null,
"functionSelector": "5bb7552a",
"id": 6767,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6752,
"modifierName": {
"argumentTypes": null,
"id": 6751,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "1184:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1184:9:22"
}
],
"name": "setLiquidityProviderFeeRate",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6750,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6749,
"mutability": "mutable",
"name": "newLiquidityPorviderFeeRate",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6767,
"src": "1138:35:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6748,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1138:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1137:37:22"
},
"returnParameters": {
"id": 6753,
"nodeType": "ParameterList",
"parameters": [],
"src": "1194:0:22"
},
"scope": 6963,
"src": "1101:274:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6786,
"nodeType": "Block",
"src": "1460:160:22",
"statements": [
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6775,
"name": "_MT_FEE_RATE_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9455,
"src": "1499:13:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6776,
"name": "newMaintainerFeeRate",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6769,
"src": "1514:20:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 6774,
"name": "UpdateMaintainerFeeRate",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6705,
"src": "1475:23:22",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
"typeString": "function (uint256,uint256)"
}
},
"id": 6777,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1475:60:22",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6778,
"nodeType": "EmitStatement",
"src": "1470:65:22"
},
{
"expression": {
"argumentTypes": null,
"id": 6781,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6779,
"name": "_MT_FEE_RATE_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9455,
"src": "1545:13:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6780,
"name": "newMaintainerFeeRate",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6769,
"src": "1561:20:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1545:36:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6782,
"nodeType": "ExpressionStatement",
"src": "1545:36:22"
},
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 6783,
"name": "_checkDODOParameters",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9538,
"src": "1591:20:22",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 6784,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1591:22:22",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6785,
"nodeType": "ExpressionStatement",
"src": "1591:22:22"
}
]
},
"documentation": null,
"functionSelector": "f2220416",
"id": 6787,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6772,
"modifierName": {
"argumentTypes": null,
"id": 6771,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "1450:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1450:9:22"
}
],
"name": "setMaintainerFeeRate",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6770,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6769,
"mutability": "mutable",
"name": "newMaintainerFeeRate",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6787,
"src": "1411:28:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6768,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1411:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1410:30:22"
},
"returnParameters": {
"id": 6773,
"nodeType": "ParameterList",
"parameters": [],
"src": "1460:0:22"
},
"scope": 6963,
"src": "1381:239:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6806,
"nodeType": "Block",
"src": "1673:92:22",
"statements": [
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6795,
"name": "_K_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9457,
"src": "1696:3:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6796,
"name": "newK",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6789,
"src": "1701:4:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 6794,
"name": "UpdateK",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6711,
"src": "1688:7:22",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
"typeString": "function (uint256,uint256)"
}
},
"id": 6797,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1688:18:22",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6798,
"nodeType": "EmitStatement",
"src": "1683:23:22"
},
{
"expression": {
"argumentTypes": null,
"id": 6801,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6799,
"name": "_K_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9457,
"src": "1716:3:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6800,
"name": "newK",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6789,
"src": "1722:4:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1716:10:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6802,
"nodeType": "ExpressionStatement",
"src": "1716:10:22"
},
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 6803,
"name": "_checkDODOParameters",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9538,
"src": "1736:20:22",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 6804,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1736:22:22",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6805,
"nodeType": "ExpressionStatement",
"src": "1736:22:22"
}
]
},
"documentation": null,
"functionSelector": "67de8be9",
"id": 6807,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6792,
"modifierName": {
"argumentTypes": null,
"id": 6791,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "1663:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1663:9:22"
}
],
"name": "setK",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6790,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6789,
"mutability": "mutable",
"name": "newK",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6807,
"src": "1640:12:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6788,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1640:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1639:14:22"
},
"returnParameters": {
"id": 6793,
"nodeType": "ParameterList",
"parameters": [],
"src": "1673:0:22"
},
"scope": 6963,
"src": "1626:139:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6823,
"nodeType": "Block",
"src": "1854:124:22",
"statements": [
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6815,
"name": "_GAS_PRICE_LIMIT_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9433,
"src": "1889:17:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6816,
"name": "newGasPriceLimit",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6809,
"src": "1908:16:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 6814,
"name": "UpdateGasPriceLimit",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6693,
"src": "1869:19:22",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
"typeString": "function (uint256,uint256)"
}
},
"id": 6817,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1869:56:22",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6818,
"nodeType": "EmitStatement",
"src": "1864:61:22"
},
{
"expression": {
"argumentTypes": null,
"id": 6821,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6819,
"name": "_GAS_PRICE_LIMIT_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9433,
"src": "1935:17:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6820,
"name": "newGasPriceLimit",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6809,
"src": "1955:16:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1935:36:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6822,
"nodeType": "ExpressionStatement",
"src": "1935:36:22"
}
]
},
"documentation": null,
"functionSelector": "09231602",
"id": 6824,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6812,
"modifierName": {
"argumentTypes": null,
"id": 6811,
"name": "onlySupervisorOrOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9496,
"src": "1832:21:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1832:21:22"
}
],
"name": "setGasPriceLimit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6810,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6809,
"mutability": "mutable",
"name": "newGasPriceLimit",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6824,
"src": "1797:24:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6808,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1797:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1796:26:22"
},
"returnParameters": {
"id": 6813,
"nodeType": "ParameterList",
"parameters": [],
"src": "1854:0:22"
},
"scope": 6963,
"src": "1771:207:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6833,
"nodeType": "Block",
"src": "2100:40:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6831,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6829,
"name": "_TRADE_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9431,
"src": "2110:15:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 6830,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2128:5:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "2110:23:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6832,
"nodeType": "ExpressionStatement",
"src": "2110:23:22"
}
]
},
"documentation": null,
"functionSelector": "17700f01",
"id": 6834,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6827,
"modifierName": {
"argumentTypes": null,
"id": 6826,
"name": "onlySupervisorOrOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9496,
"src": "2078:21:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2078:21:22"
}
],
"name": "disableTrading",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6825,
"nodeType": "ParameterList",
"parameters": [],
"src": "2066:2:22"
},
"returnParameters": {
"id": 6828,
"nodeType": "ParameterList",
"parameters": [],
"src": "2100:0:22"
},
"scope": 6963,
"src": "2043:97:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6845,
"nodeType": "Block",
"src": "2200:39:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6843,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6841,
"name": "_TRADE_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9431,
"src": "2210:15:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 6842,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2228:4:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "2210:22:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6844,
"nodeType": "ExpressionStatement",
"src": "2210:22:22"
}
]
},
"documentation": null,
"functionSelector": "8a8c523c",
"id": 6846,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6837,
"modifierName": {
"argumentTypes": null,
"id": 6836,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "2180:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2180:9:22"
},
{
"arguments": null,
"id": 6839,
"modifierName": {
"argumentTypes": null,
"id": 6838,
"name": "notClosed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9506,
"src": "2190:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2190:9:22"
}
],
"name": "enableTrading",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6835,
"nodeType": "ParameterList",
"parameters": [],
"src": "2168:2:22"
},
"returnParameters": {
"id": 6840,
"nodeType": "ParameterList",
"parameters": [],
"src": "2200:0:22"
},
"scope": 6963,
"src": "2146:93:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6855,
"nodeType": "Block",
"src": "2307:48:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6853,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6851,
"name": "_DEPOSIT_QUOTE_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9427,
"src": "2317:23:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 6852,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2343:5:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "2317:31:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6854,
"nodeType": "ExpressionStatement",
"src": "2317:31:22"
}
]
},
"documentation": null,
"functionSelector": "bc7d679d",
"id": 6856,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6849,
"modifierName": {
"argumentTypes": null,
"id": 6848,
"name": "onlySupervisorOrOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9496,
"src": "2285:21:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2285:21:22"
}
],
"name": "disableQuoteDeposit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6847,
"nodeType": "ParameterList",
"parameters": [],
"src": "2273:2:22"
},
"returnParameters": {
"id": 6850,
"nodeType": "ParameterList",
"parameters": [],
"src": "2307:0:22"
},
"scope": 6963,
"src": "2245:110:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6867,
"nodeType": "Block",
"src": "2420:47:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6865,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6863,
"name": "_DEPOSIT_QUOTE_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9427,
"src": "2430:23:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 6864,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2456:4:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "2430:30:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6866,
"nodeType": "ExpressionStatement",
"src": "2430:30:22"
}
]
},
"documentation": null,
"functionSelector": "36ac41a8",
"id": 6868,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6859,
"modifierName": {
"argumentTypes": null,
"id": 6858,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "2400:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2400:9:22"
},
{
"arguments": null,
"id": 6861,
"modifierName": {
"argumentTypes": null,
"id": 6860,
"name": "notClosed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9506,
"src": "2410:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2410:9:22"
}
],
"name": "enableQuoteDeposit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6857,
"nodeType": "ParameterList",
"parameters": [],
"src": "2388:2:22"
},
"returnParameters": {
"id": 6862,
"nodeType": "ParameterList",
"parameters": [],
"src": "2420:0:22"
},
"scope": 6963,
"src": "2361:106:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6877,
"nodeType": "Block",
"src": "2534:47:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6875,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6873,
"name": "_DEPOSIT_BASE_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9429,
"src": "2544:22:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 6874,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2569:5:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "2544:30:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6876,
"nodeType": "ExpressionStatement",
"src": "2544:30:22"
}
]
},
"documentation": null,
"functionSelector": "13c57624",
"id": 6878,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6871,
"modifierName": {
"argumentTypes": null,
"id": 6870,
"name": "onlySupervisorOrOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9496,
"src": "2512:21:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2512:21:22"
}
],
"name": "disableBaseDeposit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6869,
"nodeType": "ParameterList",
"parameters": [],
"src": "2500:2:22"
},
"returnParameters": {
"id": 6872,
"nodeType": "ParameterList",
"parameters": [],
"src": "2534:0:22"
},
"scope": 6963,
"src": "2473:108:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6889,
"nodeType": "Block",
"src": "2645:46:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6887,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6885,
"name": "_DEPOSIT_BASE_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9429,
"src": "2655:22:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 6886,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2680:4:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "2655:29:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6888,
"nodeType": "ExpressionStatement",
"src": "2655:29:22"
}
]
},
"documentation": null,
"functionSelector": "1184d8be",
"id": 6890,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6881,
"modifierName": {
"argumentTypes": null,
"id": 6880,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "2625:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2625:9:22"
},
{
"arguments": null,
"id": 6883,
"modifierName": {
"argumentTypes": null,
"id": 6882,
"name": "notClosed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9506,
"src": "2635:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2635:9:22"
}
],
"name": "enableBaseDeposit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6879,
"nodeType": "ParameterList",
"parameters": [],
"src": "2613:2:22"
},
"returnParameters": {
"id": 6884,
"nodeType": "ParameterList",
"parameters": [],
"src": "2645:0:22"
},
"scope": 6963,
"src": "2587:104:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6899,
"nodeType": "Block",
"src": "2814:41:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6897,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6895,
"name": "_BUYING_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9435,
"src": "2824:16:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 6896,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2843:5:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "2824:24:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6898,
"nodeType": "ExpressionStatement",
"src": "2824:24:22"
}
]
},
"documentation": null,
"functionSelector": "247f993b",
"id": 6900,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6893,
"modifierName": {
"argumentTypes": null,
"id": 6892,
"name": "onlySupervisorOrOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9496,
"src": "2792:21:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2792:21:22"
}
],
"name": "disableBuying",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6891,
"nodeType": "ParameterList",
"parameters": [],
"src": "2780:2:22"
},
"returnParameters": {
"id": 6894,
"nodeType": "ParameterList",
"parameters": [],
"src": "2814:0:22"
},
"scope": 6963,
"src": "2758:97:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6911,
"nodeType": "Block",
"src": "2914:40:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6909,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6907,
"name": "_BUYING_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9435,
"src": "2924:16:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 6908,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2943:4:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "2924:23:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6910,
"nodeType": "ExpressionStatement",
"src": "2924:23:22"
}
]
},
"documentation": null,
"functionSelector": "90cbf822",
"id": 6912,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6903,
"modifierName": {
"argumentTypes": null,
"id": 6902,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "2894:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2894:9:22"
},
{
"arguments": null,
"id": 6905,
"modifierName": {
"argumentTypes": null,
"id": 6904,
"name": "notClosed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9506,
"src": "2904:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2904:9:22"
}
],
"name": "enableBuying",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6901,
"nodeType": "ParameterList",
"parameters": [],
"src": "2882:2:22"
},
"returnParameters": {
"id": 6906,
"nodeType": "ParameterList",
"parameters": [],
"src": "2914:0:22"
},
"scope": 6963,
"src": "2861:93:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6921,
"nodeType": "Block",
"src": "3017:42:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6919,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6917,
"name": "_SELLING_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9437,
"src": "3027:17:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 6918,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3047:5:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "3027:25:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6920,
"nodeType": "ExpressionStatement",
"src": "3027:25:22"
}
]
},
"documentation": null,
"functionSelector": "aceecbc8",
"id": 6922,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6915,
"modifierName": {
"argumentTypes": null,
"id": 6914,
"name": "onlySupervisorOrOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9496,
"src": "2995:21:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2995:21:22"
}
],
"name": "disableSelling",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6913,
"nodeType": "ParameterList",
"parameters": [],
"src": "2983:2:22"
},
"returnParameters": {
"id": 6916,
"nodeType": "ParameterList",
"parameters": [],
"src": "3017:0:22"
},
"scope": 6963,
"src": "2960:99:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6933,
"nodeType": "Block",
"src": "3119:41:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6931,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6929,
"name": "_SELLING_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9437,
"src": "3129:17:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 6930,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3149:4:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "3129:24:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6932,
"nodeType": "ExpressionStatement",
"src": "3129:24:22"
}
]
},
"documentation": null,
"functionSelector": "cc062b58",
"id": 6934,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6925,
"modifierName": {
"argumentTypes": null,
"id": 6924,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "3099:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "3099:9:22"
},
{
"arguments": null,
"id": 6927,
"modifierName": {
"argumentTypes": null,
"id": 6926,
"name": "notClosed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9506,
"src": "3109:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "3109:9:22"
}
],
"name": "enableSelling",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6923,
"nodeType": "ParameterList",
"parameters": [],
"src": "3087:2:22"
},
"returnParameters": {
"id": 6928,
"nodeType": "ParameterList",
"parameters": [],
"src": "3119:0:22"
},
"scope": 6963,
"src": "3065:95:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6947,
"nodeType": "Block",
"src": "3253:59:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6945,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6943,
"name": "_BASE_BALANCE_LIMIT_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9439,
"src": "3263:20:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6944,
"name": "newBaseBalanceLimit",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6936,
"src": "3286:19:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "3263:42:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6946,
"nodeType": "ExpressionStatement",
"src": "3263:42:22"
}
]
},
"documentation": null,
"functionSelector": "892daf05",
"id": 6948,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6939,
"modifierName": {
"argumentTypes": null,
"id": 6938,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "3233:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "3233:9:22"
},
{
"arguments": null,
"id": 6941,
"modifierName": {
"argumentTypes": null,
"id": 6940,
"name": "notClosed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9506,
"src": "3243:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "3243:9:22"
}
],
"name": "setBaseBalanceLimit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6937,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6936,
"mutability": "mutable",
"name": "newBaseBalanceLimit",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6948,
"src": "3195:27:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6935,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3195:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3194:29:22"
},
"returnParameters": {
"id": 6942,
"nodeType": "ParameterList",
"parameters": [],
"src": "3253:0:22"
},
"scope": 6963,
"src": "3166:146:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6961,
"nodeType": "Block",
"src": "3407:61:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6959,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6957,
"name": "_QUOTE_BALANCE_LIMIT_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9441,
"src": "3417:21:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6958,
"name": "newQuoteBalanceLimit",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6950,
"src": "3441:20:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "3417:44:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6960,
"nodeType": "ExpressionStatement",
"src": "3417:44:22"
}
]
},
"documentation": null,
"functionSelector": "97316ad8",
"id": 6962,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6953,
"modifierName": {
"argumentTypes": null,
"id": 6952,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "3387:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "3387:9:22"
},
{
"arguments": null,
"id": 6955,
"modifierName": {
"argumentTypes": null,
"id": 6954,
"name": "notClosed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9506,
"src": "3397:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "3397:9:22"
}
],
"name": "setQuoteBalanceLimit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6951,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6950,
"mutability": "mutable",
"name": "newQuoteBalanceLimit",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6962,
"src": "3348:28:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6949,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3348:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3347:30:22"
},
"returnParameters": {
"id": 6956,
"nodeType": "ParameterList",
"parameters": [],
"src": "3407:0:22"
},
"scope": 6963,
"src": "3318:150:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 6964,
"src": "270:3200:22"
}
],
"src": "78:3393:22"
},
"legacyAST": {
"absolutePath": "/Users/owen/Desktop/dodo/dodo-smart-contract/contracts/impl/Admin.sol",
"exportedSymbols": {
"Admin": [
6963
]
},
"id": 6964,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 6681,
"literals": [
"solidity",
"0.6",
".9"
],
"nodeType": "PragmaDirective",
"src": "78:22:22"
},
{
"id": 6682,
"literals": [
"experimental",
"ABIEncoderV2"
],
"nodeType": "PragmaDirective",
"src": "101:33:22"
},
{
"absolutePath": "/Users/owen/Desktop/dodo/dodo-smart-contract/contracts/impl/Storage.sol",
"file": "./Storage.sol",
"id": 6684,
"nodeType": "ImportDirective",
"scope": 6964,
"sourceUnit": 9614,
"src": "136:38:22",
"symbolAliases": [
{
"foreign": {
"argumentTypes": null,
"id": 6683,
"name": "Storage",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": null,
"src": "144:7:22",
"typeDescriptions": {
"typeIdentifier": null,
"typeString": null
}
},
"local": null
}
],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 6686,
"name": "Storage",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 9613,
"src": "288:7:22",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Storage_$9613",
"typeString": "contract Storage"
}
},
"id": 6687,
"nodeType": "InheritanceSpecifier",
"src": "288:7:22"
}
],
"contractDependencies": [
9613,
11166,
11296
],
"contractKind": "contract",
"documentation": {
"id": 6685,
"nodeType": "StructuredDocumentation",
"src": "177:92:22",
"text": " @title Admin\n @author DODO Breeder\n @notice Functions for admin operations"
},
"fullyImplemented": true,
"id": 6963,
"linearizedBaseContracts": [
6963,
9613,
11296,
11166
],
"name": "Admin",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 6693,
"name": "UpdateGasPriceLimit",
"nodeType": "EventDefinition",
"parameters": {
"id": 6692,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6689,
"indexed": false,
"mutability": "mutable",
"name": "oldGasPriceLimit",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6693,
"src": "369:24:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6688,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "369:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6691,
"indexed": false,
"mutability": "mutable",
"name": "newGasPriceLimit",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6693,
"src": "395:24:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6690,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "395:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "368:52:22"
},
"src": "343:78:22"
},
{
"anonymous": false,
"documentation": null,
"id": 6699,
"name": "UpdateLiquidityProviderFeeRate",
"nodeType": "EventDefinition",
"parameters": {
"id": 6698,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6695,
"indexed": false,
"mutability": "mutable",
"name": "oldLiquidityProviderFeeRate",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6699,
"src": "473:35:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6694,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "473:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6697,
"indexed": false,
"mutability": "mutable",
"name": "newLiquidityProviderFeeRate",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6699,
"src": "518:35:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6696,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "518:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "463:96:22"
},
"src": "427:133:22"
},
{
"anonymous": false,
"documentation": null,
"id": 6705,
"name": "UpdateMaintainerFeeRate",
"nodeType": "EventDefinition",
"parameters": {
"id": 6704,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6701,
"indexed": false,
"mutability": "mutable",
"name": "oldMaintainerFeeRate",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6705,
"src": "596:28:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6700,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "596:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6703,
"indexed": false,
"mutability": "mutable",
"name": "newMaintainerFeeRate",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6705,
"src": "626:28:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6702,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "626:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "595:60:22"
},
"src": "566:90:22"
},
{
"anonymous": false,
"documentation": null,
"id": 6711,
"name": "UpdateK",
"nodeType": "EventDefinition",
"parameters": {
"id": 6710,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6707,
"indexed": false,
"mutability": "mutable",
"name": "oldK",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6711,
"src": "676:12:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6706,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "676:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6709,
"indexed": false,
"mutability": "mutable",
"name": "newK",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6711,
"src": "690:12:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6708,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "690:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "675:28:22"
},
"src": "662:42:22"
},
{
"body": {
"id": 6722,
"nodeType": "Block",
"src": "826:37:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6720,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6718,
"name": "_ORACLE_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9451,
"src": "836:8:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6719,
"name": "newOracle",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6713,
"src": "847:9:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "836:20:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 6721,
"nodeType": "ExpressionStatement",
"src": "836:20:22"
}
]
},
"documentation": null,
"functionSelector": "7adbf973",
"id": 6723,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6716,
"modifierName": {
"argumentTypes": null,
"id": 6715,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "816:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "816:9:22"
}
],
"name": "setOracle",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6714,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6713,
"mutability": "mutable",
"name": "newOracle",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6723,
"src": "788:17:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6712,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "788:7:22",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "787:19:22"
},
"returnParameters": {
"id": 6717,
"nodeType": "ParameterList",
"parameters": [],
"src": "826:0:22"
},
"scope": 6963,
"src": "769:94:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6734,
"nodeType": "Block",
"src": "934:45:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6732,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6730,
"name": "_SUPERVISOR_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9443,
"src": "944:12:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6731,
"name": "newSupervisor",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6725,
"src": "959:13:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "944:28:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 6733,
"nodeType": "ExpressionStatement",
"src": "944:28:22"
}
]
},
"documentation": null,
"functionSelector": "9299eb30",
"id": 6735,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6728,
"modifierName": {
"argumentTypes": null,
"id": 6727,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "924:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "924:9:22"
}
],
"name": "setSupervisor",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6726,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6725,
"mutability": "mutable",
"name": "newSupervisor",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6735,
"src": "892:21:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6724,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "892:7:22",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "891:23:22"
},
"returnParameters": {
"id": 6729,
"nodeType": "ParameterList",
"parameters": [],
"src": "934:0:22"
},
"scope": 6963,
"src": "869:110:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6746,
"nodeType": "Block",
"src": "1050:45:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6744,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6742,
"name": "_MAINTAINER_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9445,
"src": "1060:12:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6743,
"name": "newMaintainer",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6737,
"src": "1075:13:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"src": "1060:28:22",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"id": 6745,
"nodeType": "ExpressionStatement",
"src": "1060:28:22"
}
]
},
"documentation": null,
"functionSelector": "13ea5d29",
"id": 6747,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6740,
"modifierName": {
"argumentTypes": null,
"id": 6739,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "1040:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1040:9:22"
}
],
"name": "setMaintainer",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6738,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6737,
"mutability": "mutable",
"name": "newMaintainer",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6747,
"src": "1008:21:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6736,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1008:7:22",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1007:23:22"
},
"returnParameters": {
"id": 6741,
"nodeType": "ParameterList",
"parameters": [],
"src": "1050:0:22"
},
"scope": 6963,
"src": "985:110:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6766,
"nodeType": "Block",
"src": "1194:181:22",
"statements": [
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6755,
"name": "_LP_FEE_RATE_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9453,
"src": "1240:13:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6756,
"name": "newLiquidityPorviderFeeRate",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6749,
"src": "1255:27:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 6754,
"name": "UpdateLiquidityProviderFeeRate",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6699,
"src": "1209:30:22",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
"typeString": "function (uint256,uint256)"
}
},
"id": 6757,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1209:74:22",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6758,
"nodeType": "EmitStatement",
"src": "1204:79:22"
},
{
"expression": {
"argumentTypes": null,
"id": 6761,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6759,
"name": "_LP_FEE_RATE_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9453,
"src": "1293:13:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6760,
"name": "newLiquidityPorviderFeeRate",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6749,
"src": "1309:27:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1293:43:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6762,
"nodeType": "ExpressionStatement",
"src": "1293:43:22"
},
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 6763,
"name": "_checkDODOParameters",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9538,
"src": "1346:20:22",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 6764,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1346:22:22",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6765,
"nodeType": "ExpressionStatement",
"src": "1346:22:22"
}
]
},
"documentation": null,
"functionSelector": "5bb7552a",
"id": 6767,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6752,
"modifierName": {
"argumentTypes": null,
"id": 6751,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "1184:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1184:9:22"
}
],
"name": "setLiquidityProviderFeeRate",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6750,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6749,
"mutability": "mutable",
"name": "newLiquidityPorviderFeeRate",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6767,
"src": "1138:35:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6748,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1138:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1137:37:22"
},
"returnParameters": {
"id": 6753,
"nodeType": "ParameterList",
"parameters": [],
"src": "1194:0:22"
},
"scope": 6963,
"src": "1101:274:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6786,
"nodeType": "Block",
"src": "1460:160:22",
"statements": [
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6775,
"name": "_MT_FEE_RATE_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9455,
"src": "1499:13:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6776,
"name": "newMaintainerFeeRate",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6769,
"src": "1514:20:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 6774,
"name": "UpdateMaintainerFeeRate",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6705,
"src": "1475:23:22",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
"typeString": "function (uint256,uint256)"
}
},
"id": 6777,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1475:60:22",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6778,
"nodeType": "EmitStatement",
"src": "1470:65:22"
},
{
"expression": {
"argumentTypes": null,
"id": 6781,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6779,
"name": "_MT_FEE_RATE_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9455,
"src": "1545:13:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6780,
"name": "newMaintainerFeeRate",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6769,
"src": "1561:20:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1545:36:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6782,
"nodeType": "ExpressionStatement",
"src": "1545:36:22"
},
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 6783,
"name": "_checkDODOParameters",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9538,
"src": "1591:20:22",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 6784,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1591:22:22",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6785,
"nodeType": "ExpressionStatement",
"src": "1591:22:22"
}
]
},
"documentation": null,
"functionSelector": "f2220416",
"id": 6787,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6772,
"modifierName": {
"argumentTypes": null,
"id": 6771,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "1450:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1450:9:22"
}
],
"name": "setMaintainerFeeRate",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6770,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6769,
"mutability": "mutable",
"name": "newMaintainerFeeRate",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6787,
"src": "1411:28:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6768,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1411:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1410:30:22"
},
"returnParameters": {
"id": 6773,
"nodeType": "ParameterList",
"parameters": [],
"src": "1460:0:22"
},
"scope": 6963,
"src": "1381:239:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6806,
"nodeType": "Block",
"src": "1673:92:22",
"statements": [
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6795,
"name": "_K_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9457,
"src": "1696:3:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6796,
"name": "newK",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6789,
"src": "1701:4:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 6794,
"name": "UpdateK",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6711,
"src": "1688:7:22",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
"typeString": "function (uint256,uint256)"
}
},
"id": 6797,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1688:18:22",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6798,
"nodeType": "EmitStatement",
"src": "1683:23:22"
},
{
"expression": {
"argumentTypes": null,
"id": 6801,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6799,
"name": "_K_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9457,
"src": "1716:3:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6800,
"name": "newK",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6789,
"src": "1722:4:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1716:10:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6802,
"nodeType": "ExpressionStatement",
"src": "1716:10:22"
},
{
"expression": {
"argumentTypes": null,
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 6803,
"name": "_checkDODOParameters",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9538,
"src": "1736:20:22",
"typeDescriptions": {
"typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$",
"typeString": "function () view returns (uint256)"
}
},
"id": 6804,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1736:22:22",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6805,
"nodeType": "ExpressionStatement",
"src": "1736:22:22"
}
]
},
"documentation": null,
"functionSelector": "67de8be9",
"id": 6807,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6792,
"modifierName": {
"argumentTypes": null,
"id": 6791,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "1663:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1663:9:22"
}
],
"name": "setK",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6790,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6789,
"mutability": "mutable",
"name": "newK",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6807,
"src": "1640:12:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6788,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1640:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1639:14:22"
},
"returnParameters": {
"id": 6793,
"nodeType": "ParameterList",
"parameters": [],
"src": "1673:0:22"
},
"scope": 6963,
"src": "1626:139:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6823,
"nodeType": "Block",
"src": "1854:124:22",
"statements": [
{
"eventCall": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"id": 6815,
"name": "_GAS_PRICE_LIMIT_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9433,
"src": "1889:17:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6816,
"name": "newGasPriceLimit",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6809,
"src": "1908:16:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
}
],
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
{
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
],
"id": 6814,
"name": "UpdateGasPriceLimit",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6693,
"src": "1869:19:22",
"typeDescriptions": {
"typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$",
"typeString": "function (uint256,uint256)"
}
},
"id": 6817,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "functionCall",
"lValueRequested": false,
"names": [],
"nodeType": "FunctionCall",
"src": "1869:56:22",
"tryCall": false,
"typeDescriptions": {
"typeIdentifier": "t_tuple$__$",
"typeString": "tuple()"
}
},
"id": 6818,
"nodeType": "EmitStatement",
"src": "1864:61:22"
},
{
"expression": {
"argumentTypes": null,
"id": 6821,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6819,
"name": "_GAS_PRICE_LIMIT_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9433,
"src": "1935:17:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6820,
"name": "newGasPriceLimit",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6809,
"src": "1955:16:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "1935:36:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6822,
"nodeType": "ExpressionStatement",
"src": "1935:36:22"
}
]
},
"documentation": null,
"functionSelector": "09231602",
"id": 6824,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6812,
"modifierName": {
"argumentTypes": null,
"id": 6811,
"name": "onlySupervisorOrOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9496,
"src": "1832:21:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "1832:21:22"
}
],
"name": "setGasPriceLimit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6810,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6809,
"mutability": "mutable",
"name": "newGasPriceLimit",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6824,
"src": "1797:24:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6808,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1797:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "1796:26:22"
},
"returnParameters": {
"id": 6813,
"nodeType": "ParameterList",
"parameters": [],
"src": "1854:0:22"
},
"scope": 6963,
"src": "1771:207:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6833,
"nodeType": "Block",
"src": "2100:40:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6831,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6829,
"name": "_TRADE_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9431,
"src": "2110:15:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 6830,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2128:5:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "2110:23:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6832,
"nodeType": "ExpressionStatement",
"src": "2110:23:22"
}
]
},
"documentation": null,
"functionSelector": "17700f01",
"id": 6834,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6827,
"modifierName": {
"argumentTypes": null,
"id": 6826,
"name": "onlySupervisorOrOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9496,
"src": "2078:21:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2078:21:22"
}
],
"name": "disableTrading",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6825,
"nodeType": "ParameterList",
"parameters": [],
"src": "2066:2:22"
},
"returnParameters": {
"id": 6828,
"nodeType": "ParameterList",
"parameters": [],
"src": "2100:0:22"
},
"scope": 6963,
"src": "2043:97:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6845,
"nodeType": "Block",
"src": "2200:39:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6843,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6841,
"name": "_TRADE_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9431,
"src": "2210:15:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 6842,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2228:4:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "2210:22:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6844,
"nodeType": "ExpressionStatement",
"src": "2210:22:22"
}
]
},
"documentation": null,
"functionSelector": "8a8c523c",
"id": 6846,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6837,
"modifierName": {
"argumentTypes": null,
"id": 6836,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "2180:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2180:9:22"
},
{
"arguments": null,
"id": 6839,
"modifierName": {
"argumentTypes": null,
"id": 6838,
"name": "notClosed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9506,
"src": "2190:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2190:9:22"
}
],
"name": "enableTrading",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6835,
"nodeType": "ParameterList",
"parameters": [],
"src": "2168:2:22"
},
"returnParameters": {
"id": 6840,
"nodeType": "ParameterList",
"parameters": [],
"src": "2200:0:22"
},
"scope": 6963,
"src": "2146:93:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6855,
"nodeType": "Block",
"src": "2307:48:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6853,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6851,
"name": "_DEPOSIT_QUOTE_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9427,
"src": "2317:23:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 6852,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2343:5:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "2317:31:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6854,
"nodeType": "ExpressionStatement",
"src": "2317:31:22"
}
]
},
"documentation": null,
"functionSelector": "bc7d679d",
"id": 6856,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6849,
"modifierName": {
"argumentTypes": null,
"id": 6848,
"name": "onlySupervisorOrOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9496,
"src": "2285:21:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2285:21:22"
}
],
"name": "disableQuoteDeposit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6847,
"nodeType": "ParameterList",
"parameters": [],
"src": "2273:2:22"
},
"returnParameters": {
"id": 6850,
"nodeType": "ParameterList",
"parameters": [],
"src": "2307:0:22"
},
"scope": 6963,
"src": "2245:110:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6867,
"nodeType": "Block",
"src": "2420:47:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6865,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6863,
"name": "_DEPOSIT_QUOTE_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9427,
"src": "2430:23:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 6864,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2456:4:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "2430:30:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6866,
"nodeType": "ExpressionStatement",
"src": "2430:30:22"
}
]
},
"documentation": null,
"functionSelector": "36ac41a8",
"id": 6868,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6859,
"modifierName": {
"argumentTypes": null,
"id": 6858,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "2400:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2400:9:22"
},
{
"arguments": null,
"id": 6861,
"modifierName": {
"argumentTypes": null,
"id": 6860,
"name": "notClosed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9506,
"src": "2410:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2410:9:22"
}
],
"name": "enableQuoteDeposit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6857,
"nodeType": "ParameterList",
"parameters": [],
"src": "2388:2:22"
},
"returnParameters": {
"id": 6862,
"nodeType": "ParameterList",
"parameters": [],
"src": "2420:0:22"
},
"scope": 6963,
"src": "2361:106:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6877,
"nodeType": "Block",
"src": "2534:47:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6875,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6873,
"name": "_DEPOSIT_BASE_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9429,
"src": "2544:22:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 6874,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2569:5:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "2544:30:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6876,
"nodeType": "ExpressionStatement",
"src": "2544:30:22"
}
]
},
"documentation": null,
"functionSelector": "13c57624",
"id": 6878,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6871,
"modifierName": {
"argumentTypes": null,
"id": 6870,
"name": "onlySupervisorOrOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9496,
"src": "2512:21:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2512:21:22"
}
],
"name": "disableBaseDeposit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6869,
"nodeType": "ParameterList",
"parameters": [],
"src": "2500:2:22"
},
"returnParameters": {
"id": 6872,
"nodeType": "ParameterList",
"parameters": [],
"src": "2534:0:22"
},
"scope": 6963,
"src": "2473:108:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6889,
"nodeType": "Block",
"src": "2645:46:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6887,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6885,
"name": "_DEPOSIT_BASE_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9429,
"src": "2655:22:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 6886,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2680:4:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "2655:29:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6888,
"nodeType": "ExpressionStatement",
"src": "2655:29:22"
}
]
},
"documentation": null,
"functionSelector": "1184d8be",
"id": 6890,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6881,
"modifierName": {
"argumentTypes": null,
"id": 6880,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "2625:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2625:9:22"
},
{
"arguments": null,
"id": 6883,
"modifierName": {
"argumentTypes": null,
"id": 6882,
"name": "notClosed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9506,
"src": "2635:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2635:9:22"
}
],
"name": "enableBaseDeposit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6879,
"nodeType": "ParameterList",
"parameters": [],
"src": "2613:2:22"
},
"returnParameters": {
"id": 6884,
"nodeType": "ParameterList",
"parameters": [],
"src": "2645:0:22"
},
"scope": 6963,
"src": "2587:104:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6899,
"nodeType": "Block",
"src": "2814:41:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6897,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6895,
"name": "_BUYING_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9435,
"src": "2824:16:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 6896,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2843:5:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "2824:24:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6898,
"nodeType": "ExpressionStatement",
"src": "2824:24:22"
}
]
},
"documentation": null,
"functionSelector": "247f993b",
"id": 6900,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6893,
"modifierName": {
"argumentTypes": null,
"id": 6892,
"name": "onlySupervisorOrOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9496,
"src": "2792:21:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2792:21:22"
}
],
"name": "disableBuying",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6891,
"nodeType": "ParameterList",
"parameters": [],
"src": "2780:2:22"
},
"returnParameters": {
"id": 6894,
"nodeType": "ParameterList",
"parameters": [],
"src": "2814:0:22"
},
"scope": 6963,
"src": "2758:97:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6911,
"nodeType": "Block",
"src": "2914:40:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6909,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6907,
"name": "_BUYING_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9435,
"src": "2924:16:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 6908,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "2943:4:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "2924:23:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6910,
"nodeType": "ExpressionStatement",
"src": "2924:23:22"
}
]
},
"documentation": null,
"functionSelector": "90cbf822",
"id": 6912,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6903,
"modifierName": {
"argumentTypes": null,
"id": 6902,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "2894:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2894:9:22"
},
{
"arguments": null,
"id": 6905,
"modifierName": {
"argumentTypes": null,
"id": 6904,
"name": "notClosed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9506,
"src": "2904:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2904:9:22"
}
],
"name": "enableBuying",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6901,
"nodeType": "ParameterList",
"parameters": [],
"src": "2882:2:22"
},
"returnParameters": {
"id": 6906,
"nodeType": "ParameterList",
"parameters": [],
"src": "2914:0:22"
},
"scope": 6963,
"src": "2861:93:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6921,
"nodeType": "Block",
"src": "3017:42:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6919,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6917,
"name": "_SELLING_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9437,
"src": "3027:17:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "66616c7365",
"id": 6918,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3047:5:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "false"
},
"src": "3027:25:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6920,
"nodeType": "ExpressionStatement",
"src": "3027:25:22"
}
]
},
"documentation": null,
"functionSelector": "aceecbc8",
"id": 6922,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6915,
"modifierName": {
"argumentTypes": null,
"id": 6914,
"name": "onlySupervisorOrOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9496,
"src": "2995:21:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "2995:21:22"
}
],
"name": "disableSelling",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6913,
"nodeType": "ParameterList",
"parameters": [],
"src": "2983:2:22"
},
"returnParameters": {
"id": 6916,
"nodeType": "ParameterList",
"parameters": [],
"src": "3017:0:22"
},
"scope": 6963,
"src": "2960:99:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6933,
"nodeType": "Block",
"src": "3119:41:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6931,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6929,
"name": "_SELLING_ALLOWED_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9437,
"src": "3129:17:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"hexValue": "74727565",
"id": 6930,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "bool",
"lValueRequested": false,
"nodeType": "Literal",
"src": "3149:4:22",
"subdenomination": null,
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"value": "true"
},
"src": "3129:24:22",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"id": 6932,
"nodeType": "ExpressionStatement",
"src": "3129:24:22"
}
]
},
"documentation": null,
"functionSelector": "cc062b58",
"id": 6934,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6925,
"modifierName": {
"argumentTypes": null,
"id": 6924,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "3099:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "3099:9:22"
},
{
"arguments": null,
"id": 6927,
"modifierName": {
"argumentTypes": null,
"id": 6926,
"name": "notClosed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9506,
"src": "3109:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "3109:9:22"
}
],
"name": "enableSelling",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6923,
"nodeType": "ParameterList",
"parameters": [],
"src": "3087:2:22"
},
"returnParameters": {
"id": 6928,
"nodeType": "ParameterList",
"parameters": [],
"src": "3119:0:22"
},
"scope": 6963,
"src": "3065:95:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6947,
"nodeType": "Block",
"src": "3253:59:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6945,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6943,
"name": "_BASE_BALANCE_LIMIT_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9439,
"src": "3263:20:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6944,
"name": "newBaseBalanceLimit",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6936,
"src": "3286:19:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "3263:42:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6946,
"nodeType": "ExpressionStatement",
"src": "3263:42:22"
}
]
},
"documentation": null,
"functionSelector": "892daf05",
"id": 6948,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6939,
"modifierName": {
"argumentTypes": null,
"id": 6938,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "3233:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "3233:9:22"
},
{
"arguments": null,
"id": 6941,
"modifierName": {
"argumentTypes": null,
"id": 6940,
"name": "notClosed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9506,
"src": "3243:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "3243:9:22"
}
],
"name": "setBaseBalanceLimit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6937,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6936,
"mutability": "mutable",
"name": "newBaseBalanceLimit",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6948,
"src": "3195:27:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6935,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3195:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3194:29:22"
},
"returnParameters": {
"id": 6942,
"nodeType": "ParameterList",
"parameters": [],
"src": "3253:0:22"
},
"scope": 6963,
"src": "3166:146:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": {
"id": 6961,
"nodeType": "Block",
"src": "3407:61:22",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6959,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"id": 6957,
"name": "_QUOTE_BALANCE_LIMIT_",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9441,
"src": "3417:21:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"id": 6958,
"name": "newQuoteBalanceLimit",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6950,
"src": "3441:20:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"src": "3417:44:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"id": 6960,
"nodeType": "ExpressionStatement",
"src": "3417:44:22"
}
]
},
"documentation": null,
"functionSelector": "97316ad8",
"id": 6962,
"implemented": true,
"kind": "function",
"modifiers": [
{
"arguments": null,
"id": 6953,
"modifierName": {
"argumentTypes": null,
"id": 6952,
"name": "onlyOwner",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 11110,
"src": "3387:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "3387:9:22"
},
{
"arguments": null,
"id": 6955,
"modifierName": {
"argumentTypes": null,
"id": 6954,
"name": "notClosed",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 9506,
"src": "3397:9:22",
"typeDescriptions": {
"typeIdentifier": "t_modifier$__$",
"typeString": "modifier ()"
}
},
"nodeType": "ModifierInvocation",
"src": "3397:9:22"
}
],
"name": "setQuoteBalanceLimit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 6951,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6950,
"mutability": "mutable",
"name": "newQuoteBalanceLimit",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 6962,
"src": "3348:28:22",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6949,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "3348:7:22",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "3347:30:22"
},
"returnParameters": {
"id": 6956,
"nodeType": "ParameterList",
"parameters": [],
"src": "3407:0:22"
},
"scope": 6963,
"src": "3318:150:22",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 6964,
"src": "270:3200:22"
}
],
"src": "78:3393:22"
},
"compiler": {
"name": "solc",
"version": "0.6.9+commit.3e3065ac.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.2.3",
"updatedAt": "2020-11-06T08:03:35.678Z",
"devdoc": {
"author": "DODO Breeder",
"methods": {},
"title": "Admin"
},
"userdoc": {
"methods": {},
"notice": "Functions for admin operations"
}
}