Skip to content
Verified contractPartial

LongChef

Address0x324c8b4c19c467b976014e323b2cf954556bb876
Balance

0 ETH

 

Transactions

291

 

Compiler

solc 0.6.12

 

Same code

1 more contract

 

Details

Compiler
solc 0.6.12+commit.27d51765
Language
solidity
Optimization
Yes, 200 runs
EVM version
istanbul
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
10,866,847
Creation transaction
0x734195f159…2831fe007c

Read14

  • BONUS_MULTIPLIER(uint256) → (uint256)
  • bonusEndBlock() → (uint256)
  • devaddr() → (address)
  • getMultiplier(uint256,uint256) → (uint256)
  • long() → (address)
  • longPerBlock() → (uint256)
  • migrator() → (address)
  • owner() → (address)
  • pendingLong(uint256,address) → (uint256)
  • poolInfo(uint256) → (address,uint256,uint256,uint256)
  • poolLength() → (uint256)
  • startBlock() → (uint256)
  • totalAllocPoint() → (uint256)
  • userInfo(uint256,address) → (uint256,uint256)

Write12

  • add(uint256,address,bool)
  • deposit(uint256,uint256)
  • dev(address)
  • emergencyWithdraw(uint256)
  • massUpdatePools()
  • migrate(uint256)
  • renounceOwnership()
  • set(uint256,uint256,bool)
  • setMigrator(address)
  • transferOwnership(address)
  • updatePool(uint256)
  • withdraw(uint256,uint256)

Events4

  • Deposit(address,uint256,uint256)
  • EmergencyWithdraw(address,uint256,uint256)
  • OwnershipTransferred(address,address)
  • Withdraw(address,uint256,uint256)

ABI as JSON

[
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "_long",
        "type": "address",
        "internalType": "contract LongToken"
      },
      {
        "name": "_devaddr",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_longPerBlock",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_startBlock",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_bonusEndBlock",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "Deposit",
    "type": "event",
    "inputs": [
      {
        "name": "user",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "pid",
        "type": "uint256",
        "indexed": true,
        "internalType": "uint256"
      },
      {
        "name": "amount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "EmergencyWithdraw",
    "type": "event",
    "inputs": [
      {
        "name": "user",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "pid",
        "type": "uint256",
        "indexed": true,
        "internalType": "uint256"
      },
      {
        "name": "amount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "OwnershipTransferred",
    "type": "event",
    "inputs": [
      {
        "name": "previousOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "newOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Withdraw",
    "type": "event",
    "inputs": [
      {
        "name": "user",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "pid",
        "type": "uint256",
        "indexed": true,
        "internalType": "uint256"
      },
      {
        "name": "amount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "BONUS_MULTIPLIER",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "add",
    "type": "function",
    "inputs": [
      {
        "name": "_allocPoint",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_lpToken",
        "type": "address",
        "internalType": "contract IERC20"
      },
      {
        "name": "_withUpdate",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "bonusEndBlock",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "deposit",
    "type": "function",
    "inputs": [
      {
        "name": "_pid",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_amount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "dev",
    "type": "function",
    "inputs": [
      {
        "name": "_devaddr",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "devaddr",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "emergencyWithdraw",
    "type": "function",
    "inputs": [
      {
        "name": "_pid",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "getMultiplier",
    "type": "function",
    "inputs": [
      {
        "name": "_from",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_to",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "long",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract LongToken"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "longPerBlock",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "massUpdatePools",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "migrate",
    "type": "function",
    "inputs": [
      {
        "name": "_pid",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "migrator",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract IMigratorChef"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "owner",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "pendingLong",
    "type": "function",
    "inputs": [
      {
        "name": "_pid",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_user",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "poolInfo",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "lpToken",
        "type": "address",
        "internalType": "contract IERC20"
      },
      {
        "name": "allocPoint",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "lastRewardBlock",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "accLongPerShare",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "poolLength",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "renounceOwnership",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "set",
    "type": "function",
    "inputs": [
      {
        "name": "_pid",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_allocPoint",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_withUpdate",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "setMigrator",
    "type": "function",
    "inputs": [
      {
        "name": "_migrator",
        "type": "address",
        "internalType": "contract IMigratorChef"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "startBlock",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "totalAllocPoint",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "transferOwnership",
    "type": "function",
    "inputs": [
      {
        "name": "newOwner",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "updatePool",
    "type": "function",
    "inputs": [
      {
        "name": "_pid",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "userInfo",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "amount",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "rewardDebt",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "withdraw",
    "type": "function",
    "inputs": [
      {
        "name": "_pid",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_amount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.