TRON GOBLIN
explorerv0.5-beta
MAINNET
block #83,186,343

YFAStake · Verified Contract on Tron

Smart contract
VERIFIED · mainnet
{}
YFAStake
CONTRACT Source verified Non-proxy 1
Address TXtcz8MCRSrV5opy84CisddqFZRhMLFHa3
Verification Verified
Standard CONTRACT
Creation tx 3a2d83a8…e7895a
Deployed Jul 22, 2021
Proxy No
Contract balance 0TRX on-chain
Total calls 6.88K lifetime triggers
Functions 34 23 read · 11 write
Bytecode 12.96Kbytes runtime
Deployed Jul 22, 2021 verified
Contract interface
ABI · 34 fns
Source verified · ABI matches bytecode 34 functions · 5 events · 12,959 bytes
contract.abi.json
[
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "inputs": [
      {
        "name": "account",
        "type": "address"
      }
    ],
    "name": "earned",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "inputs": [
      {
        "type": "address"
      }
    ],
    "name": "rewards",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "_rewardDistribution",
        "type": "address"
      }
    ],
    "name": "setRewardDistribution",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "address"
      }
    ],
    "constant": true,
    "inputs": [
      {
        "type": "address"
      }
    ],
    "name": "referralRelationships",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "_token",
        "type": "address"
      }
    ],
    "name": "setToken",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "name": "totalSupply",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "name": "DURATION",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "withdraw",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "reward",
        "type": "uint256"
      }
    ],
    "name": "notifyRewardAmount",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "name": "getReward",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "address"
      }
    ],
    "constant": true,
    "inputs": [
      {
        "name": "account",
        "type": "address"
      }
    ],
    "name": "getReferrer",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "inputs": [
      {
        "type": "address"
      }
    ],
    "name": "referralRewards",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "amount",
        "type": "uint256"
      },
      {
        "name": "referrer",
        "type": "address"
      }
    ],
    "name": "deposit",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "inputs": [
      {
        "name": "account",
        "type": "address"
      }
    ],
    "name": "balanceOf",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "name": "renounceOwnership",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "name": "rewardRate",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "name": "rewardDebuff",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "name": "lastTimeRewardApplicable",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "inputs": [
      {
        "type": "address"
      }
    ],
    "name": "userRewardPerTokenPaid",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "name": "starttime",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "address"
      }
    ],
    "constant": true,
    "name": "owner",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "bool"
      }
    ],
    "constant": true,
    "name": "isOwner",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "address"
      }
    ],
    "constant": true,
    "name": "y",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "stake",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "inputs": [
      {
        "name": "account",
        "type": "address"
      }
    ],
    "name": "getReferralRewards",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "_y",
        "type": "address"
      }
    ],
    "name": "setStakeY",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "name": "lastUpdateTime",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "name": "rewardPerToken",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "name": "rewardPerTokenStored",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "name": "exit",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "inputs": [
      {
        "type": "address"
      }
    ],
    "name": "lastGetReward",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "constant": true,
    "name": "periodFinish",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "transferOwnership",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "address"
      }
    ],
    "constant": true,
    "name": "token",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "_token",
        "type": "address"
      },
      {
        "name": "_y",
        "type": "address"
      }
    ],
    "stateMutability": "Nonpayable",
    "type": "Constructor"
  },
  {
    "inputs": [
      {
        "name": "reward",
        "type": "uint256"
      }
    ],
    "name": "RewardAdded",
    "type": "Event"
  },
  {
    "inputs": [
      {
        "indexed": true,
        "name": "user",
        "type": "address"
      },
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "Staked",
    "type": "Event"
  },
  {
    "inputs": [
      {
        "indexed": true,
        "name": "user",
        "type": "address"
      },
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "Withdrawn",
    "type": "Event"
  },
  {
    "inputs": [
      {
        "indexed": true,
        "name": "user",
        "type": "address"
      },
      {
        "name": "reward",
        "type": "uint256"
      }
    ],
    "name": "RewardPaid",
    "type": "Event"
  },
  {
    "inputs": [
      {
        "indexed": true,
        "name": "previousOwner",
        "type": "address"
      },
      {
        "indexed": true,
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "OwnershipTransferred",
    "type": "Event"
  }
]
About this contract
overview

YFAStake is a verified smart contract on Tron, deployed from TSGF95PVbGthY5wyinuYdpXs92rjRqWCZn on Jul 22, 2021. It has been called 6.88K times.

The ABI matches the on-chain bytecode, so the Read tab above runs live view calls against the node (no gas, no signature). The verified Solidity source is viewable on TronScan ↗. Write calls require a signed wallet transaction — wallet support is coming soon.