Skip to content
Verified contractPartial

BancorChanger

Address0x259b0e2e5101fb5dedf3928d4d6ccee05ab77a2b
Balance

0 ETH

 

Transactions

9

 

Compiler

solc 0.4.16

 

Same code

Only this contract

 

Details

Compiler
solc 0.4.16+commit.d7661dd9
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
4,343,542
Creation transaction
0x043ab2bc44…d6b1542eae

Read25

  • changeFee() → (uint32)
  • getReserveBalance(address) → (uint256)
  • getReturn(address,address,uint256) → (uint256)
  • changerType() → (string)
  • newManager() → (address)
  • manager() → (address)
  • getChangeFeeAmount(uint256) → (uint256)
  • formula() → (address)
  • changeableToken(uint16) → (address)
  • version() → (string)
  • changeableTokenCount() → (uint16)
  • getSaleReturn(address,uint256) → (uint256)
  • changingEnabled() → (bool)
  • owner() → (address)
  • getQuickBuyPathLength() → (uint256)
  • reserveTokenCount() → (uint16)
  • getPurchaseReturn(address,uint256) → (uint256)
  • hasQuickBuyEtherToken() → (bool)
  • getQuickBuyEtherToken() → (address)
  • reserveTokens(uint256) → (address)
  • newOwner() → (address)
  • reserves(address) → (uint256,uint32,bool,bool,bool)
  • maxChangeFee() → (uint32)
  • quickBuyPath(uint256) → (address)
  • token() → (address)

Write22

  • disableChanging(bool)
  • transferTokenOwnership(address)
  • addReserve(address,uint32,bool)
  • acceptTokenOwnership()
  • withdrawFromToken(address,address,uint256)
  • clearQuickBuyPath()
  • withdrawTokens(address,address,uint256)
  • change(address,address,uint256,uint256) → (uint256)
  • sell(address,uint256,uint256) → (uint256)
  • quickBuy(uint256) → (uint256)
  • acceptOwnership()
  • disableTokenTransfers(bool)
  • setChangeFee(uint32)
  • buy(address,uint256,uint256) → (uint256)
  • quickChange(address[],uint256,uint256) → (uint256)
  • updateReserve(address,uint32,bool,uint256)
  • acceptManagement()
  • setQuickBuyPath(address[])
  • transferManagement(address)
  • disableReservePurchases(address,bool)
  • setFormula(address)
  • transferOwnership(address)

Events3

  • Change(address,address,address,uint256,uint256,uint256,uint256)
  • ManagerUpdate(address,address)
  • OwnerUpdate(address,address)

ABI as JSON

[
  {
    "name": "changeFee",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint32"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "disableChanging",
    "type": "function",
    "inputs": [
      {
        "name": "_disable",
        "type": "bool"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "getReserveBalance",
    "type": "function",
    "inputs": [
      {
        "name": "_reserveToken",
        "type": "address"
      }
    ],
    "outputs": [
      {
        "name": "balance",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "getReturn",
    "type": "function",
    "inputs": [
      {
        "name": "_fromToken",
        "type": "address"
      },
      {
        "name": "_toToken",
        "type": "address"
      },
      {
        "name": "_amount",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "transferTokenOwnership",
    "type": "function",
    "inputs": [
      {
        "name": "_newOwner",
        "type": "address"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "changerType",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "string"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "addReserve",
    "type": "function",
    "inputs": [
      {
        "name": "_token",
        "type": "address"
      },
      {
        "name": "_ratio",
        "type": "uint32"
      },
      {
        "name": "_enableVirtualBalance",
        "type": "bool"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "acceptTokenOwnership",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "withdrawFromToken",
    "type": "function",
    "inputs": [
      {
        "name": "_token",
        "type": "address"
      },
      {
        "name": "_to",
        "type": "address"
      },
      {
        "name": "_amount",
        "type": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "newManager",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "manager",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "getChangeFeeAmount",
    "type": "function",
    "inputs": [
      {
        "name": "_amount",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "feeAmount",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "formula",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "clearQuickBuyPath",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "changeableToken",
    "type": "function",
    "inputs": [
      {
        "name": "_tokenIndex",
        "type": "uint16"
      }
    ],
    "outputs": [
      {
        "name": "tokenAddress",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "version",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "string"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "changeableTokenCount",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "count",
        "type": "uint16"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "withdrawTokens",
    "type": "function",
    "inputs": [
      {
        "name": "_token",
        "type": "address"
      },
      {
        "name": "_to",
        "type": "address"
      },
      {
        "name": "_amount",
        "type": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "change",
    "type": "function",
    "inputs": [
      {
        "name": "_fromToken",
        "type": "address"
      },
      {
        "name": "_toToken",
        "type": "address"
      },
      {
        "name": "_amount",
        "type": "uint256"
      },
      {
        "name": "_minReturn",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "sell",
    "type": "function",
    "inputs": [
      {
        "name": "_reserveToken",
        "type": "address"
      },
      {
        "name": "_sellAmount",
        "type": "uint256"
      },
      {
        "name": "_minReturn",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "getSaleReturn",
    "type": "function",
    "inputs": [
      {
        "name": "_reserveToken",
        "type": "address"
      },
      {
        "name": "_sellAmount",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "changingEnabled",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bool"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "quickBuy",
    "type": "function",
    "inputs": [
      {
        "name": "_minReturn",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "payable": true,
    "constant": false,
    "stateMutability": "payable"
  },
  {
    "name": "acceptOwnership",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "disableTokenTransfers",
    "type": "function",
    "inputs": [
      {
        "name": "_disable",
        "type": "bool"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "setChangeFee",
    "type": "function",
    "inputs": [
      {
        "name": "_changeFee",
        "type": "uint32"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "owner",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "getQuickBuyPathLength",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "length",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "reserveTokenCount",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "count",
        "type": "uint16"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "getPurchaseReturn",
    "type": "function",
    "inputs": [
      {
        "name": "_reserveToken",
        "type": "address"
      },
      {
        "name": "_depositAmount",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "buy",
    "type": "function",
    "inputs": [
      {
        "name": "_reserveToken",
        "type": "address"
      },
      {
        "name": "_depositAmount",
        "type": "uint256"
      },
      {
        "name": "_minReturn",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "quickChange",
    "type": "function",
    "inputs": [
      {
        "name": "_path",
        "type": "address[]"
      },
      {
        "name": "_amount",
        "type": "uint256"
      },
      {
        "name": "_minReturn",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "updateReserve",
    "type": "function",
    "inputs": [
      {
        "name": "_reserveToken",
        "type": "address"
      },
      {
        "name": "_ratio",
        "type": "uint32"
      },
      {
        "name": "_enableVirtualBalance",
        "type": "bool"
      },
      {
        "name": "_virtualBalance",
        "type": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "hasQuickBuyEtherToken",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bool"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "getQuickBuyEtherToken",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "etherToken",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "acceptManagement",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "reserveTokens",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "setQuickBuyPath",
    "type": "function",
    "inputs": [
      {
        "name": "_path",
        "type": "address[]"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "newOwner",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "reserves",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "outputs": [
      {
        "name": "virtualBalance",
        "type": "uint256"
      },
      {
        "name": "ratio",
        "type": "uint32"
      },
      {
        "name": "isVirtualBalanceEnabled",
        "type": "bool"
      },
      {
        "name": "isPurchaseEnabled",
        "type": "bool"
      },
      {
        "name": "isSet",
        "type": "bool"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "maxChangeFee",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint32"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "transferManagement",
    "type": "function",
    "inputs": [
      {
        "name": "_newManager",
        "type": "address"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "quickBuyPath",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "disableReservePurchases",
    "type": "function",
    "inputs": [
      {
        "name": "_reserveToken",
        "type": "address"
      },
      {
        "name": "_disable",
        "type": "bool"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "setFormula",
    "type": "function",
    "inputs": [
      {
        "name": "_formula",
        "type": "address"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "transferOwnership",
    "type": "function",
    "inputs": [
      {
        "name": "_newOwner",
        "type": "address"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "token",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "_token",
        "type": "address"
      },
      {
        "name": "_formula",
        "type": "address"
      },
      {
        "name": "_maxChangeFee",
        "type": "uint32"
      },
      {
        "name": "_reserveToken",
        "type": "address"
      },
      {
        "name": "_reserveRatio",
        "type": "uint32"
      }
    ],
    "payable": false,
    "stateMutability": "nonpayable"
  },
  {
    "type": "fallback",
    "payable": true,
    "stateMutability": "payable"
  },
  {
    "name": "Change",
    "type": "event",
    "inputs": [
      {
        "name": "_fromToken",
        "type": "address",
        "indexed": true
      },
      {
        "name": "_toToken",
        "type": "address",
        "indexed": true
      },
      {
        "name": "_trader",
        "type": "address",
        "indexed": true
      },
      {
        "name": "_amount",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "_return",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "_currentPriceN",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "_currentPriceD",
        "type": "uint256",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "ManagerUpdate",
    "type": "event",
    "inputs": [
      {
        "name": "_prevManager",
        "type": "address",
        "indexed": false
      },
      {
        "name": "_newManager",
        "type": "address",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "OwnerUpdate",
    "type": "event",
    "inputs": [
      {
        "name": "_prevOwner",
        "type": "address",
        "indexed": false
      },
      {
        "name": "_newOwner",
        "type": "address",
        "indexed": false
      }
    ],
    "anonymous": false
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.