Skip to content
Verified contractPartial

Vyper_contract

Address0x7fc77b5c7614e1533320ea6ddc2eb61fa00a9714
Balance

0 ETH

 

Transactions

23,718

 

Compiler

vyper 0.1.0-beta.17

 

Same code

Only this contract

 

Details

Compiler
vyper 0.1.0-beta.17+commit.0671b7b
Language
vyper
EVM version
petersburg
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
10,276,641
Creation transaction
0x6d1ef1e56f…28da81179a

Read20

  • A() → (uint256)
  • get_virtual_price() → (uint256)
  • calc_token_amount(uint256[3],bool) → (uint256)
  • get_dy(int128,int128,uint256) → (uint256)
  • get_dy_underlying(int128,int128,uint256) → (uint256)
  • calc_withdraw_one_coin(uint256,int128) → (uint256)
  • coins(int128) → (address)
  • balances(int128) → (uint256)
  • fee() → (uint256)
  • admin_fee() → (uint256)
  • owner() → (address)
  • initial_A() → (uint256)
  • future_A() → (uint256)
  • initial_A_time() → (uint256)
  • future_A_time() → (uint256)
  • admin_actions_deadline() → (uint256)
  • transfer_ownership_deadline() → (uint256)
  • future_fee() → (uint256)
  • future_admin_fee() → (uint256)
  • future_owner() → (address)

Write16

  • add_liquidity(uint256[3],uint256)
  • exchange(int128,int128,uint256,uint256)
  • remove_liquidity(uint256,uint256[3])
  • remove_liquidity_imbalance(uint256[3],uint256)
  • remove_liquidity_one_coin(uint256,int128,uint256)
  • ramp_A(uint256,uint256)
  • stop_ramp_A()
  • commit_new_fee(uint256,uint256)
  • apply_new_fee()
  • revert_new_parameters()
  • commit_transfer_ownership(address)
  • apply_transfer_ownership()
  • revert_transfer_ownership()
  • withdraw_admin_fees()
  • kill_me()
  • unkill_me()

Events11

  • TokenExchange(address,int128,uint256,int128,uint256)
  • AddLiquidity(address,uint256[3],uint256[3],uint256,uint256)
  • RemoveLiquidity(address,uint256[3],uint256[3],uint256)
  • RemoveLiquidityOne(address,uint256,uint256)
  • RemoveLiquidityImbalance(address,uint256[3],uint256[3],uint256,uint256)
  • CommitNewAdmin(uint256,address)
  • NewAdmin(address)
  • CommitNewFee(uint256,uint256,uint256)
  • NewFee(uint256,uint256)
  • RampA(uint256,uint256,uint256,uint256)
  • StopRampA(uint256,uint256)

ABI as JSON

[
  {
    "name": "TokenExchange",
    "type": "event",
    "inputs": [
      {
        "name": "buyer",
        "type": "address",
        "indexed": true
      },
      {
        "name": "sold_id",
        "type": "int128",
        "indexed": false
      },
      {
        "name": "tokens_sold",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "bought_id",
        "type": "int128",
        "indexed": false
      },
      {
        "name": "tokens_bought",
        "type": "uint256",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "AddLiquidity",
    "type": "event",
    "inputs": [
      {
        "name": "provider",
        "type": "address",
        "indexed": true
      },
      {
        "name": "token_amounts",
        "type": "uint256[3]",
        "indexed": false
      },
      {
        "name": "fees",
        "type": "uint256[3]",
        "indexed": false
      },
      {
        "name": "invariant",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "token_supply",
        "type": "uint256",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "RemoveLiquidity",
    "type": "event",
    "inputs": [
      {
        "name": "provider",
        "type": "address",
        "indexed": true
      },
      {
        "name": "token_amounts",
        "type": "uint256[3]",
        "indexed": false
      },
      {
        "name": "fees",
        "type": "uint256[3]",
        "indexed": false
      },
      {
        "name": "token_supply",
        "type": "uint256",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "RemoveLiquidityOne",
    "type": "event",
    "inputs": [
      {
        "name": "provider",
        "type": "address",
        "indexed": true
      },
      {
        "name": "token_amount",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "coin_amount",
        "type": "uint256",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "RemoveLiquidityImbalance",
    "type": "event",
    "inputs": [
      {
        "name": "provider",
        "type": "address",
        "indexed": true
      },
      {
        "name": "token_amounts",
        "type": "uint256[3]",
        "indexed": false
      },
      {
        "name": "fees",
        "type": "uint256[3]",
        "indexed": false
      },
      {
        "name": "invariant",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "token_supply",
        "type": "uint256",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "CommitNewAdmin",
    "type": "event",
    "inputs": [
      {
        "name": "deadline",
        "type": "uint256",
        "unit": "sec",
        "indexed": true
      },
      {
        "name": "admin",
        "type": "address",
        "indexed": true
      }
    ],
    "anonymous": false
  },
  {
    "name": "NewAdmin",
    "type": "event",
    "inputs": [
      {
        "name": "admin",
        "type": "address",
        "indexed": true
      }
    ],
    "anonymous": false
  },
  {
    "name": "CommitNewFee",
    "type": "event",
    "inputs": [
      {
        "name": "deadline",
        "type": "uint256",
        "unit": "sec",
        "indexed": true
      },
      {
        "name": "fee",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "admin_fee",
        "type": "uint256",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "NewFee",
    "type": "event",
    "inputs": [
      {
        "name": "fee",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "admin_fee",
        "type": "uint256",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "RampA",
    "type": "event",
    "inputs": [
      {
        "name": "old_A",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "new_A",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "initial_time",
        "type": "uint256",
        "unit": "sec",
        "indexed": false
      },
      {
        "name": "future_time",
        "type": "uint256",
        "unit": "sec",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "name": "StopRampA",
    "type": "event",
    "inputs": [
      {
        "name": "A",
        "type": "uint256",
        "indexed": false
      },
      {
        "name": "t",
        "type": "uint256",
        "unit": "sec",
        "indexed": false
      }
    ],
    "anonymous": false
  },
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "_coins",
        "type": "address[3]"
      },
      {
        "name": "_pool_token",
        "type": "address"
      },
      {
        "name": "_A",
        "type": "uint256"
      },
      {
        "name": "_fee",
        "type": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 2827,
    "name": "A",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 1139088,
    "name": "get_virtual_price",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 4515555,
    "name": "calc_token_amount",
    "type": "function",
    "inputs": [
      {
        "name": "amounts",
        "type": "uint256[3]"
      },
      {
        "name": "deposit",
        "type": "bool"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 6951762,
    "name": "add_liquidity",
    "type": "function",
    "inputs": [
      {
        "name": "amounts",
        "type": "uint256[3]"
      },
      {
        "name": "min_mint_amount",
        "type": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 2675332,
    "name": "get_dy",
    "type": "function",
    "inputs": [
      {
        "name": "i",
        "type": "int128"
      },
      {
        "name": "j",
        "type": "int128"
      },
      {
        "name": "dx",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 2675145,
    "name": "get_dy_underlying",
    "type": "function",
    "inputs": [
      {
        "name": "i",
        "type": "int128"
      },
      {
        "name": "j",
        "type": "int128"
      },
      {
        "name": "dx",
        "type": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 5476333,
    "name": "exchange",
    "type": "function",
    "inputs": [
      {
        "name": "i",
        "type": "int128"
      },
      {
        "name": "j",
        "type": "int128"
      },
      {
        "name": "dx",
        "type": "uint256"
      },
      {
        "name": "min_dy",
        "type": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 183775,
    "name": "remove_liquidity",
    "type": "function",
    "inputs": [
      {
        "name": "_amount",
        "type": "uint256"
      },
      {
        "name": "min_amounts",
        "type": "uint256[3]"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 6951281,
    "name": "remove_liquidity_imbalance",
    "type": "function",
    "inputs": [
      {
        "name": "amounts",
        "type": "uint256[3]"
      },
      {
        "name": "max_burn_amount",
        "type": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 10005,
    "name": "calc_withdraw_one_coin",
    "type": "function",
    "inputs": [
      {
        "name": "_token_amount",
        "type": "uint256"
      },
      {
        "name": "i",
        "type": "int128"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 4022474,
    "name": "remove_liquidity_one_coin",
    "type": "function",
    "inputs": [
      {
        "name": "_token_amount",
        "type": "uint256"
      },
      {
        "name": "i",
        "type": "int128"
      },
      {
        "name": "min_amount",
        "type": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 148337,
    "name": "ramp_A",
    "type": "function",
    "inputs": [
      {
        "name": "_future_A",
        "type": "uint256"
      },
      {
        "name": "_future_time",
        "type": "uint256",
        "unit": "sec"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 145697,
    "name": "stop_ramp_A",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 109321,
    "name": "commit_new_fee",
    "type": "function",
    "inputs": [
      {
        "name": "new_fee",
        "type": "uint256"
      },
      {
        "name": "new_admin_fee",
        "type": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 94220,
    "name": "apply_new_fee",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 21355,
    "name": "revert_new_parameters",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 73432,
    "name": "commit_transfer_ownership",
    "type": "function",
    "inputs": [
      {
        "name": "_owner",
        "type": "address"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 58288,
    "name": "apply_transfer_ownership",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 21445,
    "name": "revert_transfer_ownership",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 13365,
    "name": "withdraw_admin_fees",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 36798,
    "name": "kill_me",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 21535,
    "name": "unkill_me",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false
  },
  {
    "gas": 1710,
    "name": "coins",
    "type": "function",
    "inputs": [
      {
        "name": "arg0",
        "type": "int128"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 1740,
    "name": "balances",
    "type": "function",
    "inputs": [
      {
        "name": "arg0",
        "type": "int128"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 1571,
    "name": "fee",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 1601,
    "name": "admin_fee",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 1631,
    "name": "owner",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 1661,
    "name": "initial_A",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 1691,
    "name": "future_A",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 1721,
    "name": "initial_A_time",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "unit": "sec"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 1751,
    "name": "future_A_time",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "unit": "sec"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 1781,
    "name": "admin_actions_deadline",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "unit": "sec"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 1811,
    "name": "transfer_ownership_deadline",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "unit": "sec"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 1841,
    "name": "future_fee",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 1871,
    "name": "future_admin_fee",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256"
      }
    ],
    "payable": false,
    "constant": true
  },
  {
    "gas": 1901,
    "name": "future_owner",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address"
      }
    ],
    "payable": false,
    "constant": true
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.