Skip to content
Verified contractExact

YgemStaking

Address0x0afdf238d10f2d617cbd4eceb9cddf2b64c2ca2c
Balance

0 ETH

 

Transactions

184

 

Compiler

solc 0.5.17

 

Same code

Only this contract

 

Details

Compiler
solc 0.5.17+commit.d19bba13
Language
solidity
Optimization
No
EVM version
istanbul
License
Not stated
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
11,294,264
Creation transaction
0xde71f80e85…89ca8e59d8

Read14

  • feeCollector() → (address)
  • feePercent() → (uint256)
  • forecastStakeHolderRewards(address,uint256) → (uint256)
  • getStakeHolderInfo(address) → (uint256,uint256,uint256)
  • isOwner() → (bool)
  • isStakeholder(address) → (bool,uint256)
  • lockTime() → (uint256)
  • minStakeAmount() → (uint256)
  • name() → (string)
  • owner() → (address)
  • ownerTokensAmount() → (uint256)
  • penaltyFeePercent() → (uint256)
  • rewardPercent() → (uint256)
  • totalStakes() → (uint256)

Write12

  • changeFeeCollector(address)
  • changeFeePercent(uint256)
  • changeMinStakeAmount(uint256)
  • changePenaltyFeePercent(uint256)
  • changeRewardPercent(uint256)
  • changelockTime(uint256)
  • renounceOwnership()
  • sendTokens(uint256)
  • stake(uint256)
  • transferOwnership(address)
  • unstake()
  • withdrawTokens(address,uint256)

Events3

  • OwnershipTransferred(address,address)
  • Staked(address,uint256)
  • Unstaked(address,uint256)

ABI as JSON

[
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "_stakingToken",
        "type": "address",
        "internalType": "contract IERC20"
      },
      {
        "name": "_rewardPercent",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "_feeCollector",
        "type": "address",
        "internalType": "address"
      }
    ],
    "payable": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "OwnershipTransferred",
    "type": "event",
    "inputs": [
      {
        "name": "previousOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "newOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Staked",
    "type": "event",
    "inputs": [
      {
        "name": "staker",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "amount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Unstaked",
    "type": "event",
    "inputs": [
      {
        "name": "staker",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "amount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "changeFeeCollector",
    "type": "function",
    "inputs": [
      {
        "name": "_newFeeCollector",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "changeFeePercent",
    "type": "function",
    "inputs": [
      {
        "name": "_newFeePercent",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "changeMinStakeAmount",
    "type": "function",
    "inputs": [
      {
        "name": "_minStakeAmount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "changePenaltyFeePercent",
    "type": "function",
    "inputs": [
      {
        "name": "_newPenaltyFeePercent",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "changeRewardPercent",
    "type": "function",
    "inputs": [
      {
        "name": "_rewardPercent",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "changelockTime",
    "type": "function",
    "inputs": [
      {
        "name": "_newLockTime",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "feeCollector",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "feePercent",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "forecastStakeHolderRewards",
    "type": "function",
    "inputs": [
      {
        "name": "_address",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_date",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "getStakeHolderInfo",
    "type": "function",
    "inputs": [
      {
        "name": "_address",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "isOwner",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "isStakeholder",
    "type": "function",
    "inputs": [
      {
        "name": "_address",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "lockTime",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "minStakeAmount",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "name",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "string",
        "internalType": "string"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "owner",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "ownerTokensAmount",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "penaltyFeePercent",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "renounceOwnership",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "rewardPercent",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "sendTokens",
    "type": "function",
    "inputs": [
      {
        "name": "_amount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "stake",
    "type": "function",
    "inputs": [
      {
        "name": "_amount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "totalStakes",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "payable": false,
    "constant": true,
    "stateMutability": "view"
  },
  {
    "name": "transferOwnership",
    "type": "function",
    "inputs": [
      {
        "name": "newOwner",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "unstake",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  },
  {
    "name": "withdrawTokens",
    "type": "function",
    "inputs": [
      {
        "name": "receiver",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_amount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "payable": false,
    "constant": false,
    "stateMutability": "nonpayable"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.