TRON GOBLIN
explorerv0.5-beta
MAINNET

SunStaker · Contract on Tron

Smart contract
UNVERIFIED · mainnet
{}
SunStaker
CONTRACT Unverified Non-proxy
Address TJvd6BKZUayxVUtecRF9CFqA85VaPgqux4
Verification Unverified
Standard CONTRACT
Creator
Creation tx
Deployed
Proxy No
Contract balance 0TRX on-chain
Total calls 0 lifetime triggers
Functions 37 23 read · 14 write
Bytecode 15.21Kbytes runtime
Deployed unverified
Contract interface
ABI · 37 fns
Unverified · bytecode + ABI only 37 functions · 8 events · 15,207 bytes
contract.abi.json
[
  {
    "inputs": [
      {
        "name": "_safeVault",
        "type": "address"
      },
      {
        "name": "_minters",
        "type": "address[]"
      }
    ],
    "stateMutability": "Nonpayable",
    "type": "Constructor"
  },
  {
    "inputs": [
      {
        "indexed": true,
        "name": "user",
        "type": "address"
      },
      {
        "name": "amount",
        "type": "uint256"
      },
      {
        "name": "locked",
        "type": "bool"
      }
    ],
    "name": "DepositStaked",
    "type": "Event"
  },
  {
    "inputs": [
      {
        "indexed": true,
        "name": "user",
        "type": "address"
      },
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "MintStaked",
    "type": "Event"
  },
  {
    "inputs": [
      {
        "indexed": true,
        "name": "previousOwner",
        "type": "address"
      },
      {
        "indexed": true,
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "OwnershipTransferred",
    "type": "Event"
  },
  {
    "inputs": [
      {
        "name": "token",
        "type": "address"
      },
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "Recovered",
    "type": "Event"
  },
  {
    "inputs": [
      {
        "name": "reward",
        "type": "uint256"
      }
    ],
    "name": "RewardAdded",
    "type": "Event"
  },
  {
    "inputs": [
      {
        "indexed": true,
        "name": "user",
        "type": "address"
      },
      {
        "indexed": true,
        "name": "rewardsToken",
        "type": "address"
      },
      {
        "name": "reward",
        "type": "uint256"
      }
    ],
    "name": "RewardPaid",
    "type": "Event"
  },
  {
    "inputs": [
      {
        "name": "token",
        "type": "address"
      },
      {
        "name": "newDuration",
        "type": "uint256"
      }
    ],
    "name": "RewardsDurationUpdated",
    "type": "Event"
  },
  {
    "inputs": [
      {
        "indexed": true,
        "name": "user",
        "type": "address"
      },
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "Withdrawn",
    "type": "Event"
  },
  {
    "inputs": [
      {
        "name": "_rewardsToken",
        "type": "address"
      },
      {
        "name": "_distributor",
        "type": "address"
      }
    ],
    "name": "addReward",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "_minter",
        "type": "address"
      },
      {
        "name": "_approved",
        "type": "bool"
      }
    ],
    "name": "approveMinter",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "_rewardsToken",
        "type": "address"
      },
      {
        "name": "_distributor",
        "type": "address"
      },
      {
        "name": "_approved",
        "type": "bool"
      }
    ],
    "name": "approveRewardDistributor",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "name": "rewards",
        "type": "tuple[]"
      }
    ],
    "inputs": [
      {
        "name": "account",
        "type": "address"
      }
    ],
    "name": "claimableRewards",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "name": "total",
        "type": "uint256"
      },
      {
        "name": "earningsData",
        "type": "tuple[]"
      }
    ],
    "inputs": [
      {
        "name": "user",
        "type": "address"
      }
    ],
    "name": "earnedBalances",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "name": "exit",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "name": "getReward",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "inputs": [
      {
        "name": "_rewardsToken",
        "type": "address"
      }
    ],
    "name": "getRewardForDuration",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "inputs": [
      {
        "name": "_rewardsToken",
        "type": "address"
      }
    ],
    "name": "lastTimeRewardApplicable",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "name": "lockDuration",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "name": "total",
        "type": "uint256"
      },
      {
        "name": "unlockable",
        "type": "uint256"
      },
      {
        "name": "locked",
        "type": "uint256"
      },
      {
        "name": "lockData",
        "type": "tuple[]"
      }
    ],
    "inputs": [
      {
        "name": "user",
        "type": "address"
      }
    ],
    "name": "lockedBalances",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "name": "lockedSupply",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "user",
        "type": "address"
      },
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "mint",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "bool"
      }
    ],
    "inputs": [
      {
        "type": "address"
      }
    ],
    "name": "minters",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "_rewardsToken",
        "type": "address"
      },
      {
        "name": "reward",
        "type": "uint256"
      }
    ],
    "name": "notifyRewardAmount",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "address"
      }
    ],
    "name": "owner",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "tokenAddress",
        "type": "address"
      },
      {
        "name": "tokenAmount",
        "type": "uint256"
      }
    ],
    "name": "recoverTRC20",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "to_",
        "type": "address"
      },
      {
        "name": "amount_",
        "type": "uint256"
      }
    ],
    "name": "recoverTRX",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "name": "renounceOwnership",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "name": "periodFinish",
        "type": "uint256"
      },
      {
        "name": "rewardRate",
        "type": "uint256"
      },
      {
        "name": "lastUpdateTime",
        "type": "uint256"
      },
      {
        "name": "rewardPerTokenStored",
        "type": "uint256"
      }
    ],
    "inputs": [
      {
        "type": "address"
      }
    ],
    "name": "rewardData",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "bool"
      }
    ],
    "inputs": [
      {
        "type": "address"
      },
      {
        "type": "address"
      }
    ],
    "name": "rewardDistributors",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "inputs": [
      {
        "name": "_rewardsToken",
        "type": "address"
      }
    ],
    "name": "rewardPerToken",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "address"
      }
    ],
    "inputs": [
      {
        "type": "uint256"
      }
    ],
    "name": "rewardTokens",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "inputs": [
      {
        "type": "address"
      },
      {
        "type": "address"
      }
    ],
    "name": "rewards",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "name": "rewardsDuration",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "address"
      }
    ],
    "name": "safeVault",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "amount",
        "type": "uint256"
      },
      {
        "name": "lock",
        "type": "bool"
      }
    ],
    "name": "stake",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "address"
      }
    ],
    "name": "stakingToken",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "name": "startTime",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "inputs": [
      {
        "name": "user",
        "type": "address"
      }
    ],
    "name": "totalBalance",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "name": "totalSupply",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "newOwner",
        "type": "address"
      }
    ],
    "name": "transferOwnership",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "inputs": [
      {
        "name": "user",
        "type": "address"
      }
    ],
    "name": "unlockedBalance",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "type": "uint256"
      }
    ],
    "inputs": [
      {
        "type": "address"
      },
      {
        "type": "address"
      }
    ],
    "name": "userRewardPerTokenPaid",
    "stateMutability": "View",
    "type": "Function"
  },
  {
    "inputs": [
      {
        "name": "amount",
        "type": "uint256"
      }
    ],
    "name": "withdraw",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "name": "withdrawExpiredLocks",
    "stateMutability": "Nonpayable",
    "type": "Function"
  },
  {
    "outputs": [
      {
        "name": "amount",
        "type": "uint256"
      },
      {
        "name": "penaltyAmount",
        "type": "uint256"
      }
    ],
    "inputs": [
      {
        "name": "user",
        "type": "address"
      }
    ],
    "name": "withdrawableBalance",
    "stateMutability": "View",
    "type": "Function"
  }
]
About this contract
overview

SunStaker is a smart contract on Tron. It has been called 0 times.

This contract is not source-verified, so only its on-chain bytecode and ABI are available. Read calls still run live against the node. Write calls require a signed wallet transaction — wallet support is coming soon.