Source Code
Latest 25 from a total of 2,742 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Exit | 29679212 | 13 days ago | IN | 0 ETH | 0.00000076 | ||||
| Withdraw | 29177942 | 25 days ago | IN | 0 ETH | 0.00000004 | ||||
| Withdraw | 29177911 | 25 days ago | IN | 0 ETH | 0.00000004 | ||||
| Exit | 28269066 | 46 days ago | IN | 0 ETH | 0.00004067 | ||||
| Get Reward | 28268938 | 46 days ago | IN | 0 ETH | 0.00003969 | ||||
| Exit | 27009525 | 75 days ago | IN | 0 ETH | 0.00000007 | ||||
| Get Reward | 26501773 | 87 days ago | IN | 0 ETH | 0 | ||||
| Exit | 26078009 | 97 days ago | IN | 0 ETH | 0 | ||||
| Withdraw | 23300989 | 161 days ago | IN | 0 ETH | 0 | ||||
| Get Reward | 23300850 | 161 days ago | IN | 0 ETH | 0 | ||||
| Withdraw | 22263936 | 185 days ago | IN | 0 ETH | 0 | ||||
| Stake | 22095657 | 189 days ago | IN | 0 ETH | 0.00000007 | ||||
| Stake | 21672027 | 199 days ago | IN | 0 ETH | 0.00000004 | ||||
| Exit | 19643913 | 246 days ago | IN | 0 ETH | 0 | ||||
| Get Reward | 19386519 | 252 days ago | IN | 0 ETH | 0.00000009 | ||||
| Exit | 19353618 | 252 days ago | IN | 0 ETH | 0 | ||||
| Stake | 18874972 | 263 days ago | IN | 0 ETH | 0 | ||||
| Exit | 18740270 | 267 days ago | IN | 0 ETH | 0.00000012 | ||||
| Stake | 18735935 | 267 days ago | IN | 0 ETH | 0.00000013 | ||||
| Exit | 17841789 | 287 days ago | IN | 0 ETH | 0.0000002 | ||||
| Withdraw | 16661640 | 315 days ago | IN | 0 ETH | 0.00000009 | ||||
| Stake | 15963002 | 331 days ago | IN | 0 ETH | 0.00000237 | ||||
| Exit | 15368726 | 345 days ago | IN | 0 ETH | 0.00000202 | ||||
| Stake | 14993271 | 353 days ago | IN | 0 ETH | 0.0000004 | ||||
| Stake | 14631980 | 362 days ago | IN | 0 ETH | 0.00000653 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
SingleStakingRewardsOtherTokens
Compiler Version
v0.5.16+commit.9c3226ce
Optimization Enabled:
Yes with 50 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/**
*Submitted for verification at Etherscan.io on 2020-09-16
*/
pragma solidity ^0.5.16;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow, so we distribute
return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
}
}
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: subtraction overflow");
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, "SafeMath: division by zero");
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0, "SafeMath: modulo by zero");
return a % b;
}
}
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see `ERC20Detailed`.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a `Transfer` event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through `transferFrom`. This is
* zero by default.
*
* This value changes when `approve` or `transferFrom` are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* > Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an `Approval` event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a `Transfer` event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to `approve`. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
/**
* @dev Optional functions from the ERC20 standard.
*/
contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
* these values are immutable: they can only be set once during
* construction.
*/
constructor (string memory name, string memory symbol, uint8 decimals) public {
_name = name;
_symbol = symbol;
_decimals = decimals;
}
/**
* @dev Returns the name of the token.
*/
function name() public view returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei.
*
* > Note that this information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* `IERC20.balanceOf` and `IERC20.transfer`.
*/
function decimals() public view returns (uint8) {
return _decimals;
}
}
/**
* @dev Collection of functions related to the address type,
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* This test is non-exhaustive, and there may be false-negatives: during the
* execution of a contract's constructor, its address will be reported as
* not containing a contract.
*
* > It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*/
function isContract(address account) internal view returns (bool) {
// This method relies in extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 0;
}
}
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
// solhint-disable-next-line max-line-length
require((value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).add(value);
callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 newAllowance = token.allowance(address(this), spender).sub(value);
callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves.
// A Solidity high level call has three parts:
// 1. The target address is checked to verify it contains contract code
// 2. The call itself is made, and success asserted
// 3. The return value is decoded, which in turn checks the size of the returned data.
// solhint-disable-next-line max-line-length
require(address(token).isContract(), "SafeERC20: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = address(token).call(data);
require(success, "SafeERC20: low-level call failed");
if (returndata.length > 0) { // Return data is optional
// solhint-disable-next-line max-line-length
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier
* available, which can be aplied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*/
contract ReentrancyGuard {
/// @dev counter to allow mutex lock with only one SSTORE operation
uint256 private _guardCounter;
constructor () internal {
// The counter starts at one to prevent changing it from zero to a non-zero
// value, which is a more expensive operation.
_guardCounter = 1;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and make it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_guardCounter += 1;
uint256 localCounter = _guardCounter;
_;
require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
}
}
// Inheritancea
interface IStakingRewards {
// Views
function rewardPerToken() external view returns (uint256);
function earned(address account) external view returns (uint256);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
// Mutative
function stake(uint256 amount) external;
function withdraw(uint256 amount) external;
function getReward() external;
function setRewardRate(uint256 _rewardRate) external;
function exit() external;
}
interface IERC20Burnable {
function burn(uint256 amount) external;
}
import "../interfaces/IBlast.sol";
interface IBlastPoints {
function configurePointsOperator(address operator) external;
}
contract SingleStakingRewardsOtherTokens is IStakingRewards, ReentrancyGuard {
using SafeMath for uint256;
using SafeERC20 for IERC20;
/* ========== STATE VARIABLES ========== */
address public BlastPointsAddressEOAOwner = 0x2dC9f833aE54Eb6771B2B7621403Ee44A4B0521b;
address public BlastPointsAddress = 0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800;
address public taxWallet;
IERC20 public rewardsToken;
IERC20 public stakingToken;
uint256 public periodFinish = 0;
uint256 public rewardRate = 0;
uint256 public lastUpdateTime;
uint256 public rewardPerTokenStored;
uint256 public farmStartTime;
address public constant BLAST_CONTRACT = 0x4300000000000000000000000000000000000002;
IERC20Rebasing public constant USDB = IERC20Rebasing(0x4300000000000000000000000000000000000003);
IERC20Rebasing public constant WETH = IERC20Rebasing(0x4300000000000000000000000000000000000004);
mapping(address => uint256) public userRewardPerTokenPaid;
mapping(address => uint256) public rewards;
uint256 private _totalSupply;
mapping(address => uint256) private _balances;
// Fees
uint256 public depositFee = 500; // 1%
uint256 public burnFee = 0; // 0%
bool public burnFeeEnabled = false;
modifier onlyTaxWallet() {
require(msg.sender == taxWallet, "Caller is not Tax Wallet");
_;
}
/* ========== CONSTRUCTOR ========== */
constructor(
address _taxWallet,
address _stakingToken,
address _rewardsToken,
uint256 _rewardRate,
uint256 _farmStartTime
) public {
taxWallet = _taxWallet;
stakingToken = IERC20(_stakingToken);
rewardsToken = IERC20(_rewardsToken);
rewardRate = _rewardRate;
farmStartTime = _farmStartTime;
IBlastPoints(BlastPointsAddress).configurePointsOperator(BlastPointsAddressEOAOwner);
IBlast(BLAST_CONTRACT).configureClaimableYield();
IBlast(BLAST_CONTRACT).configureClaimableGas();
IBlast(BLAST_CONTRACT).configureGovernor(_taxWallet);
USDB.configure(IERC20Rebasing.YieldMode.CLAIMABLE); //configure claimable yield for USDB
WETH.configure(IERC20Rebasing.YieldMode.CLAIMABLE); //configure claimable yield for WETH
}
/* ========== VIEWS ========== */
function totalSupply() external view returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) external view returns (uint256) {
return _balances[account];
}
function rewardPerToken() public view returns (uint256) {
if (_totalSupply == 0) {
return rewardPerTokenStored;
}
if (block.timestamp < farmStartTime) {
return rewardPerTokenStored;
}
return
rewardPerTokenStored.add(
(block.timestamp).sub(lastUpdateTime).mul(rewardRate).mul(1e18).div(_totalSupply)
);
}
function earned(address account) public view returns (uint256) {
return _balances[account].mul(rewardPerToken().sub(userRewardPerTokenPaid[account])).div(1e18).add(rewards[account]);
}
/* ========== MUTATIVE FUNCTIONS ========== */
function stakeWithPermit(uint256 amount, uint deadline, uint8 v, bytes32 r, bytes32 s) external nonReentrant updateReward(msg.sender) {
require(amount > 0, "Cannot stake 0");
uint256 _fee = amount.mul(depositFee).div(10000);
uint256 _burnFee = 0;
if (burnFeeEnabled) {
_burnFee = amount.mul(burnFee).div(10000);
}
uint256 _amountMinusTotalFees = amount.sub(_fee).sub(_burnFee);
uint256 _newAmount = _balances[msg.sender].add(_amountMinusTotalFees);
_totalSupply = _totalSupply.add(_amountMinusTotalFees);
_balances[msg.sender] = _newAmount;
// permit
IUniswapV2ERC20(address(stakingToken)).permit(msg.sender, address(this), amount, deadline, v, r, s);
stakingToken.safeTransferFrom(msg.sender, address(this), amount);
stakingToken.safeTransfer(taxWallet, _fee);
if (burnFeeEnabled) {
IERC20Burnable(address(stakingToken)).burn(_burnFee);
}
emit Staked(msg.sender, amount);
}
function stake(uint256 amount) external nonReentrant updateReward(msg.sender) {
require(amount > 0, "Cannot stake 0");
uint256 _fee = amount.mul(depositFee).div(10000);
uint256 _burnFee = 0;
if (burnFeeEnabled) {
_burnFee = amount.mul(burnFee).div(10000);
}
uint256 _amountMinusTotalFees = amount.sub(_fee).sub(_burnFee);
uint256 _newAmount = _balances[msg.sender].add(_amountMinusTotalFees);
_totalSupply = _totalSupply.add(_amountMinusTotalFees);
_balances[msg.sender] = _newAmount;
stakingToken.safeTransferFrom(msg.sender, address(this), amount);
stakingToken.safeTransfer(taxWallet, _fee);
if (burnFeeEnabled) {
IERC20Burnable(address(stakingToken)).burn(_burnFee);
}
emit Staked(msg.sender, amount);
}
function withdraw(uint256 amount) public nonReentrant updateReward(msg.sender) {
require(amount > 0, "Cannot withdraw 0");
_totalSupply = _totalSupply.sub(amount);
_balances[msg.sender] = _balances[msg.sender].sub(amount);
stakingToken.safeTransfer(msg.sender, amount);
emit Withdrawn(msg.sender, amount);
}
function getReward() public nonReentrant updateReward(msg.sender) {
uint256 reward = rewards[msg.sender];
if (reward > 0) {
rewards[msg.sender] = 0;
uint256 balanceOfRewards = rewardsToken.balanceOf(address(this));
if (reward >= balanceOfRewards) {
rewardsToken.safeTransfer(msg.sender, balanceOfRewards);
} else {
rewardsToken.safeTransfer(msg.sender, reward);
}
emit RewardPaid(msg.sender, reward, 0);
}
}
function exit() external {
withdraw(_balances[msg.sender]);
getReward();
}
/* ========== MODIFIERS ========== */
modifier updateReward(address account) {
rewardPerTokenStored = rewardPerToken();
lastUpdateTime = block.timestamp;
if (account != address(0)) {
rewards[account] = earned(account);
userRewardPerTokenPaid[account] = rewardPerTokenStored;
}
_;
}
/* ========== EVENTS ========== */
event RewardAdded(uint256 reward, uint256 periodFinish);
event Staked(address indexed user, uint256 amount);
event Withdrawn(address indexed user, uint256 amount);
event RewardPaid(address indexed user, uint256 reward, uint256 rewardType);
/* ========== FARMS CONTROLS ========== */
function setRewardRate(uint256 _rewardRate) public onlyTaxWallet {
rewardRate = _rewardRate;
lastUpdateTime = block.timestamp;
}
function setDepositFee(uint256 _fee) public {
require(taxWallet == msg.sender, "Not the owner");
require(_fee <= 500, "Fee cant be more than 5%");
depositFee = _fee;
}
function setBurnFee(uint256 _fee) public {
require(taxWallet == msg.sender, "Not the owner");
require(_fee <= 300, "Fee cant be more than 5%");
burnFee = _fee;
}
function setBurnFeeEnabled(bool _status) public {
require(taxWallet == msg.sender, "Not the owner");
burnFeeEnabled = _status;
}
/*********************** BLAST RELATED ***********************/
function configureYieldModeTokens(IERC20Rebasing.YieldMode _weth, IERC20Rebasing.YieldMode _usdb) external {
require(taxWallet == msg.sender, "Not the owner");
USDB.configure(_usdb); //configure claimable yield for USDB
WETH.configure(_weth); //configure claimable yield for WETH
}
function claimYieldTokens(address recipient, uint256 amount) external {
require(taxWallet == msg.sender, "Not the owner");
USDB.claim(recipient, amount); //configure claimable yield for USDB
WETH.claim(recipient, amount); //configure claimable yield for WETH
}
function claimYield(address recipient, uint256 amount) external {
require(taxWallet == msg.sender, "Not the owner");
IBlast(BLAST_CONTRACT).claimYield(address(this), recipient, amount);
}
function claimAllYield(address recipient) external {
require(taxWallet == msg.sender, "Not the owner");
IBlast(BLAST_CONTRACT).claimAllYield(address(this), recipient);
}
function claimMyContractsGas() external {
require(taxWallet == msg.sender, "Not the owner");
IBlast(BLAST_CONTRACT).claimAllGas(address(this), msg.sender);
}
}
interface IUniswapV2ERC20 {
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
}// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;
interface IBlast{
enum YieldMode {
AUTOMATIC,
VOID,
CLAIMABLE
}
enum GasMode {
VOID,
CLAIMABLE
}
// configure
function configureContract(address contractAddress, YieldMode _yield, GasMode gasMode, address governor) external;
function configure(YieldMode _yield, GasMode gasMode, address governor) external;
// base configuration options
function configureClaimableYield() external;
function configureClaimableYieldOnBehalf(address contractAddress) external;
function configureAutomaticYield() external;
function configureAutomaticYieldOnBehalf(address contractAddress) external;
function configureVoidYield() external;
function configureVoidYieldOnBehalf(address contractAddress) external;
function configureClaimableGas() external;
function configureClaimableGasOnBehalf(address contractAddress) external;
function configureVoidGas() external;
function configureVoidGasOnBehalf(address contractAddress) external;
function configureGovernor(address _governor) external;
function configureGovernorOnBehalf(address _newGovernor, address contractAddress) external;
// claim yield
function claimYield(address contractAddress, address recipientOfYield, uint256 amount) external returns (uint256);
function claimAllYield(address contractAddress, address recipientOfYield) external returns (uint256);
// claim gas
function claimAllGas(address contractAddress, address recipientOfGas) external returns (uint256);
function claimGasAtMinClaimRate(address contractAddress, address recipientOfGas, uint256 minClaimRateBips) external returns (uint256);
function claimMaxGas(address contractAddress, address recipientOfGas) external returns (uint256);
function claimGas(address contractAddress, address recipientOfGas, uint256 gasToClaim, uint256 gasSecondsToConsume) external returns (uint256);
// read functions
function readClaimableYield(address contractAddress) external view returns (uint256);
function readYieldConfiguration(address contractAddress) external view returns (uint8);
function readGasParams(address contractAddress) external view returns (uint256 etherSeconds, uint256 etherBalance, uint256 lastUpdated, GasMode);
}
interface IERC20Rebasing {
enum YieldMode {
AUTOMATIC,
VOID,
CLAIMABLE
}
// changes the yield mode of the caller and update the balance
// to reflect the configuration
function configure(YieldMode) external returns (uint256);
// "claimable" yield mode accounts can call this this claim their yield
// to another address
function claim(address recipient, uint256 amount) external returns (uint256);
// read the claimable amount for an account
function getClaimableAmount(address account) external view returns (uint256);
}{
"optimizer": {
"enabled": true,
"runs": 50
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_taxWallet","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"uint256","name":"_rewardRate","type":"uint256"},{"internalType":"uint256","name":"_farmStartTime","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"periodFinish","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardType","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"constant":true,"inputs":[],"name":"BLAST_CONTRACT","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"BlastPointsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"BlastPointsAddressEOAOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"USDB","outputs":[{"internalType":"contract IERC20Rebasing","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"WETH","outputs":[{"internalType":"contract IERC20Rebasing","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"burnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"burnFeeEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"claimAllYield","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"claimMyContractsGas","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimYield","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimYieldTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"enum IERC20Rebasing.YieldMode","name":"_weth","type":"uint8"},{"internalType":"enum IERC20Rebasing.YieldMode","name":"_usdb","type":"uint8"}],"name":"configureYieldModeTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"depositFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"farmStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setBurnFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setBurnFeeEnabled","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setDepositFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_rewardRate","type":"uint256"}],"name":"setRewardRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"stakeWithPermit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"taxWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6080604052600180546001600160a01b0319908116732dc9f833ae54eb6771b2b7621403ee44a4b0521b1790915560028054909116732536fe9ab3f511540f2f9e2ec2a805005c3dd8001790556000600681905560078190556101f4600f556010556011805460ff191690553480156200007857600080fd5b5060405162001f1638038062001f16833981810160405260a08110156200009e57600080fd5b5080516020820151604080840151606085015160809095015160016000818155600380546001600160a01b03808a166001600160a01b03199283161790925560058054838a1690831617905560048054838816921691909117815560078a9055600a859055600254935487516336b91f2b60e01b81529083169181019190915295519798969794969593949216926336b91f2b926024808301939282900301818387803b1580156200014f57600080fd5b505af115801562000164573d6000803e3d6000fd5b505050507343000000000000000000000000000000000000026001600160a01b031663f098767a6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015620001b857600080fd5b505af1158015620001cd573d6000803e3d6000fd5b505050507343000000000000000000000000000000000000026001600160a01b0316634e606c476040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156200022157600080fd5b505af115801562000236573d6000803e3d6000fd5b505060408051631d70c8d360e31b81526001600160a01b03891660048201529051734300000000000000000000000000000000000002935063eb8646989250602480830192600092919082900301818387803b1580156200029657600080fd5b505af1158015620002ab573d6000803e3d6000fd5b5050604051631a33757d60e01b81527343000000000000000000000000000000000000039250631a33757d9150600290600401808260ff168152602001915050602060405180830381600087803b1580156200030657600080fd5b505af11580156200031b573d6000803e3d6000fd5b505050506040513d60208110156200033257600080fd5b5050604051631a33757d60e01b815273430000000000000000000000000000000000000490631a33757d90600290600401808260ff168152602001915050602060405180830381600087803b1580156200038b57600080fd5b505af1158015620003a0573d6000803e3d6000fd5b505050506040513d6020811015620003b757600080fd5b50505050505050611b4880620003ce6000396000f3fe608060405234801561001057600080fd5b50600436106101db5760003560e01c80637f0a082c11610105578063d1af0c7d1161009d578063d1af0c7d14610456578063d851b1581461045e578063df064dd51461048a578063df136d6514610492578063e9fad8ee1461049a578063eb68282f146104a2578063ebe2b12b146104aa578063ecd9ba82146104b2578063fce589d8146104ea576101db565b80637f0a082c146103945780638b8763471461039c5780639e447fc6146103c2578063a694fc3a146103df578063ad5c4648146103fc578063b938230d14610404578063c2d94aec14610420578063c8f33c9114610446578063cd3daf9d1461044e576101db565b8063354761d711610178578063354761d7146102ed5780633d18b9121461030c578063490ae210146103145780634bf2c7c91461033157806367a527931461034e57806370a082311461035657806372f702f31461037c57806377d5d2dc146103845780637b0a47ee1461038c576101db565b80628cc262146101e05780630700037d1461021857806316cfaa161461023e57806318160ddd146102625780631869ebda1461026a5780632dc0562d146102985780632e1a7d4d146102a0578063313387d8146102bd57806331a0edec146102e5575b600080fd5b610206600480360360208110156101f657600080fd5b50356001600160a01b03166104f2565b60408051918252519081900360200190f35b6102066004803603602081101561022e57600080fd5b50356001600160a01b0316610588565b61024661059a565b604080516001600160a01b039092168252519081900360200190f35b6102066105a9565b6102966004803603604081101561028057600080fd5b506001600160a01b0381351690602001356105b0565b005b61024661068b565b610296600480360360208110156102b657600080fd5b503561069a565b610296600480360360408110156102d357600080fd5b5060ff81358116916020013516610823565b610246610944565b6102966004803603602081101561030357600080fd5b5035151561094f565b6102966109b1565b6102966004803603602081101561032a57600080fd5b5035610b7a565b6102966004803603602081101561034757600080fd5b5035610c20565b610206610cc6565b6102066004803603602081101561036c57600080fd5b50356001600160a01b0316610ccc565b610246610ce7565b610296610cf6565b610206610dbb565b610246610dc1565b610206600480360360208110156103b257600080fd5b50356001600160a01b0316610dd0565b610296600480360360208110156103d857600080fd5b5035610de2565b610296600480360360208110156103f557600080fd5b5035610e45565b6102466110c8565b61040c6110d3565b604080519115158252519081900360200190f35b6102966004803603602081101561043657600080fd5b50356001600160a01b03166110dc565b6102066111af565b6102066111b5565b61024661122e565b6102966004803603604081101561047457600080fd5b506001600160a01b03813516906020013561123d565b610206611364565b61020661136a565b610296611370565b610246611393565b61020661139e565b610296600480360360a08110156104c857600080fd5b5080359060208101359060ff60408201351690606081013590608001356113a4565b6102066116c0565b6001600160a01b0381166000908152600c6020908152604080832054600b909252822054610582919061057690670de0b6b3a76400009061056a90610545906105396111b5565b9063ffffffff6116c616565b6001600160a01b0388166000908152600e60205260409020549063ffffffff61172316565b9063ffffffff61178316565b9063ffffffff6117ea16565b92915050565b600c6020526000908152604090205481565b6002546001600160a01b031681565b600d545b90565b6003546001600160a01b031633146105ff576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b60408051637cb8cb3160e11b81523060048201526001600160a01b03841660248201526044810183905290516002604360981b019163f97196629160648083019260209291908290030181600087803b15801561065b57600080fd5b505af115801561066f573d6000803e3d6000fd5b505050506040513d602081101561068557600080fd5b50505050565b6003546001600160a01b031681565b6000805460010190819055336106ae6111b5565b600955426008556001600160a01b038116156106f9576106cd816104f2565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b60008311610742576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b600d54610755908463ffffffff6116c616565b600d55336000908152600e6020526040902054610778908463ffffffff6116c616565b336000818152600e60205260409020919091556005546107a4916001600160a01b039091169085611842565b60408051848152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250600054811461081f576040805162461bcd60e51b815260206004820152601f6024820152600080516020611aa9833981519152604482015290519081900360640190fd5b5050565b6003546001600160a01b03163314610872576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b604051631a33757d60e01b81526003604360981b0190631a33757d908390600401808260028111156108a057fe5b60ff168152602001915050602060405180830381600087803b1580156108c557600080fd5b505af11580156108d9573d6000803e3d6000fd5b505050506040513d60208110156108ef57600080fd5b5050604051631a33757d60e01b81526004604360981b0190631a33757d9084906004018082600281111561091f57fe5b60ff168152602001915050602060405180830381600087803b15801561065b57600080fd5b6003604360981b0181565b6003546001600160a01b0316331461099e576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b6011805460ff1916911515919091179055565b6000805460010190819055336109c56111b5565b600955426008556001600160a01b03811615610a10576109e4816104f2565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b336000908152600c60205260409020548015610b3157336000908152600c602090815260408083208390556004805482516370a0823160e01b8152309281019290925291516001600160a01b03909216926370a0823192602480840193829003018186803b158015610a8157600080fd5b505afa158015610a95573d6000803e3d6000fd5b505050506040513d6020811015610aab57600080fd5b50519050808210610ad857600454610ad3906001600160a01b0316338363ffffffff61184216565b610af5565b600454610af5906001600160a01b0316338463ffffffff61184216565b6040805183815260006020820152815133927fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f51928290030190a2505b50506000548114610b77576040805162461bcd60e51b815260206004820152601f6024820152600080516020611aa9833981519152604482015290519081900360640190fd5b50565b6003546001600160a01b03163314610bc9576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b6101f4811115610c1b576040805162461bcd60e51b81526020600482015260186024820152774665652063616e74206265206d6f7265207468616e20352560401b604482015290519081900360640190fd5b600f55565b6003546001600160a01b03163314610c6f576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b61012c811115610cc1576040805162461bcd60e51b81526020600482015260186024820152774665652063616e74206265206d6f7265207468616e20352560401b604482015290519081900360640190fd5b601055565b600f5481565b6001600160a01b03166000908152600e602052604090205490565b6005546001600160a01b031681565b6003546001600160a01b03163314610d45576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b60408051634aa7d2f760e11b815230600482015233602482015290516002604360981b019163954fa5ee9160448083019260209291908290030181600087803b158015610d9157600080fd5b505af1158015610da5573d6000803e3d6000fd5b505050506040513d602081101561081f57600080fd5b60075481565b6001546001600160a01b031681565b600b6020526000908152604090205481565b6003546001600160a01b03163314610e3c576040805162461bcd60e51b815260206004820152601860248201527710d85b1b195c881a5cc81b9bdd0815185e0815d85b1b195d60421b604482015290519081900360640190fd5b60075542600855565b600080546001019081905533610e596111b5565b600955426008556001600160a01b03811615610ea457610e78816104f2565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b60008311610eea576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b6000610f0761271061056a600f548761172390919063ffffffff16565b60115490915060009060ff1615610f3657610f3361271061056a6010548861172390919063ffffffff16565b90505b6000610f4c82610539888663ffffffff6116c616565b336000908152600e602052604081205491925090610f70908363ffffffff6117ea16565b600d54909150610f86908363ffffffff6117ea16565b600d55336000818152600e60205260409020829055600554610fb5916001600160a01b0390911690308a611894565b600354600554610fd8916001600160a01b0391821691168663ffffffff61184216565b60115460ff16156110495760055460408051630852cd8d60e31b81526004810186905290516001600160a01b03909216916342966c689160248082019260009290919082900301818387803b15801561103057600080fd5b505af1158015611044573d6000803e3d6000fd5b505050505b60408051888152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050505050600054811461081f576040805162461bcd60e51b815260206004820152601f6024820152600080516020611aa9833981519152604482015290519081900360640190fd5b6004604360981b0181565b60115460ff1681565b6003546001600160a01b0316331461112b576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b6040805163430021db60e11b81523060048201526001600160a01b038316602482015290516002604360981b019163860043b69160448083019260209291908290030181600087803b15801561118057600080fd5b505af1158015611194573d6000803e3d6000fd5b505050506040513d60208110156111aa57600080fd5b505050565b60085481565b6000600d54600014156111cb57506009546105ad565b600a544210156111de57506009546105ad565b61122961121a600d5461056a670de0b6b3a764000061120e60075461120e600854426116c690919063ffffffff16565b9063ffffffff61172316565b6009549063ffffffff6117ea16565b905090565b6004546001600160a01b031681565b6003546001600160a01b0316331461128c576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b60408051635569f64b60e11b81526001600160a01b03841660048201526024810183905290516003604360981b019163aad3ec969160448083019260209291908290030181600087803b1580156112e257600080fd5b505af11580156112f6573d6000803e3d6000fd5b505050506040513d602081101561130c57600080fd5b505060408051635569f64b60e11b81526001600160a01b03841660048201526024810183905290516004604360981b019163aad3ec969160448083019260209291908290030181600087803b15801561065b57600080fd5b600a5481565b60095481565b336000908152600e60205260409020546113899061069a565b6113916109b1565b565b6002604360981b0181565b60065481565b6000805460010190819055336113b86111b5565b600955426008556001600160a01b03811615611403576113d7816104f2565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b60008711611449576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600061146661271061056a600f548b61172390919063ffffffff16565b60115490915060009060ff16156114955761149261271061056a6010548c61172390919063ffffffff16565b90505b60006114ab826105398c8663ffffffff6116c616565b336000908152600e6020526040812054919250906114cf908363ffffffff6117ea16565b600d549091506114e5908363ffffffff6117ea16565b600d55336000818152600e6020526040808220849055600554815163d505accf60e01b81526004810194909452306024850152604484018f9052606484018e905260ff8d16608485015260a484018c905260c484018b905290516001600160a01b039091169263d505accf9260e480830193919282900301818387803b15801561156e57600080fd5b505af1158015611582573d6000803e3d6000fd5b50506005546115a592506001600160a01b0316905033308e63ffffffff61189416565b6003546005546115c8916001600160a01b0391821691168663ffffffff61184216565b60115460ff16156116395760055460408051630852cd8d60e31b81526004810186905290516001600160a01b03909216916342966c689160248082019260009290919082900301818387803b15801561162057600080fd5b505af1158015611634573d6000803e3d6000fd5b505050505b604080518c8152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a2505050505060005481146116b8576040805162461bcd60e51b815260206004820152601f6024820152600080516020611aa9833981519152604482015290519081900360640190fd5b505050505050565b60105481565b60008282111561171d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008261173257506000610582565b8282028284828161173f57fe5b041461177c5760405162461bcd60e51b8152600401808060200182810382526021815260200180611ac96021913960400191505060405180910390fd5b9392505050565b60008082116117d6576040805162461bcd60e51b815260206004820152601a602482015279536166654d6174683a206469766973696f6e206279207a65726f60301b604482015290519081900360640190fd5b60008284816117e157fe5b04949350505050565b60008282018381101561177c576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526111aa9084906118ea565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526106859085905b6118fc826001600160a01b0316611aa2565b61194d576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061198b5780518252601f19909201916020918201910161196c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146119ed576040519150601f19603f3d011682016040523d82523d6000602084013e6119f2565b606091505b509150915081611a49576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561068557808060200190516020811015611a6557600080fd5b50516106855760405162461bcd60e51b815260040180806020018281038252602a815260200180611aea602a913960400191505060405180910390fd5b3b15159056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820cea724b4c7b4e86c13c0e590c52473cbf512760467447f31d7a5af50bfcddc1164736f6c63430005100032000000000000000000000000fd5844867387cecc3a0393b3e0be32479ea9e61a000000000000000000000000fee958fa595b4478cea7560c91400a98b83d6c91000000000000000000000000430000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065e76bb0
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101db5760003560e01c80637f0a082c11610105578063d1af0c7d1161009d578063d1af0c7d14610456578063d851b1581461045e578063df064dd51461048a578063df136d6514610492578063e9fad8ee1461049a578063eb68282f146104a2578063ebe2b12b146104aa578063ecd9ba82146104b2578063fce589d8146104ea576101db565b80637f0a082c146103945780638b8763471461039c5780639e447fc6146103c2578063a694fc3a146103df578063ad5c4648146103fc578063b938230d14610404578063c2d94aec14610420578063c8f33c9114610446578063cd3daf9d1461044e576101db565b8063354761d711610178578063354761d7146102ed5780633d18b9121461030c578063490ae210146103145780634bf2c7c91461033157806367a527931461034e57806370a082311461035657806372f702f31461037c57806377d5d2dc146103845780637b0a47ee1461038c576101db565b80628cc262146101e05780630700037d1461021857806316cfaa161461023e57806318160ddd146102625780631869ebda1461026a5780632dc0562d146102985780632e1a7d4d146102a0578063313387d8146102bd57806331a0edec146102e5575b600080fd5b610206600480360360208110156101f657600080fd5b50356001600160a01b03166104f2565b60408051918252519081900360200190f35b6102066004803603602081101561022e57600080fd5b50356001600160a01b0316610588565b61024661059a565b604080516001600160a01b039092168252519081900360200190f35b6102066105a9565b6102966004803603604081101561028057600080fd5b506001600160a01b0381351690602001356105b0565b005b61024661068b565b610296600480360360208110156102b657600080fd5b503561069a565b610296600480360360408110156102d357600080fd5b5060ff81358116916020013516610823565b610246610944565b6102966004803603602081101561030357600080fd5b5035151561094f565b6102966109b1565b6102966004803603602081101561032a57600080fd5b5035610b7a565b6102966004803603602081101561034757600080fd5b5035610c20565b610206610cc6565b6102066004803603602081101561036c57600080fd5b50356001600160a01b0316610ccc565b610246610ce7565b610296610cf6565b610206610dbb565b610246610dc1565b610206600480360360208110156103b257600080fd5b50356001600160a01b0316610dd0565b610296600480360360208110156103d857600080fd5b5035610de2565b610296600480360360208110156103f557600080fd5b5035610e45565b6102466110c8565b61040c6110d3565b604080519115158252519081900360200190f35b6102966004803603602081101561043657600080fd5b50356001600160a01b03166110dc565b6102066111af565b6102066111b5565b61024661122e565b6102966004803603604081101561047457600080fd5b506001600160a01b03813516906020013561123d565b610206611364565b61020661136a565b610296611370565b610246611393565b61020661139e565b610296600480360360a08110156104c857600080fd5b5080359060208101359060ff60408201351690606081013590608001356113a4565b6102066116c0565b6001600160a01b0381166000908152600c6020908152604080832054600b909252822054610582919061057690670de0b6b3a76400009061056a90610545906105396111b5565b9063ffffffff6116c616565b6001600160a01b0388166000908152600e60205260409020549063ffffffff61172316565b9063ffffffff61178316565b9063ffffffff6117ea16565b92915050565b600c6020526000908152604090205481565b6002546001600160a01b031681565b600d545b90565b6003546001600160a01b031633146105ff576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b60408051637cb8cb3160e11b81523060048201526001600160a01b03841660248201526044810183905290516002604360981b019163f97196629160648083019260209291908290030181600087803b15801561065b57600080fd5b505af115801561066f573d6000803e3d6000fd5b505050506040513d602081101561068557600080fd5b50505050565b6003546001600160a01b031681565b6000805460010190819055336106ae6111b5565b600955426008556001600160a01b038116156106f9576106cd816104f2565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b60008311610742576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b600d54610755908463ffffffff6116c616565b600d55336000908152600e6020526040902054610778908463ffffffff6116c616565b336000818152600e60205260409020919091556005546107a4916001600160a01b039091169085611842565b60408051848152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250600054811461081f576040805162461bcd60e51b815260206004820152601f6024820152600080516020611aa9833981519152604482015290519081900360640190fd5b5050565b6003546001600160a01b03163314610872576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b604051631a33757d60e01b81526003604360981b0190631a33757d908390600401808260028111156108a057fe5b60ff168152602001915050602060405180830381600087803b1580156108c557600080fd5b505af11580156108d9573d6000803e3d6000fd5b505050506040513d60208110156108ef57600080fd5b5050604051631a33757d60e01b81526004604360981b0190631a33757d9084906004018082600281111561091f57fe5b60ff168152602001915050602060405180830381600087803b15801561065b57600080fd5b6003604360981b0181565b6003546001600160a01b0316331461099e576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b6011805460ff1916911515919091179055565b6000805460010190819055336109c56111b5565b600955426008556001600160a01b03811615610a10576109e4816104f2565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b336000908152600c60205260409020548015610b3157336000908152600c602090815260408083208390556004805482516370a0823160e01b8152309281019290925291516001600160a01b03909216926370a0823192602480840193829003018186803b158015610a8157600080fd5b505afa158015610a95573d6000803e3d6000fd5b505050506040513d6020811015610aab57600080fd5b50519050808210610ad857600454610ad3906001600160a01b0316338363ffffffff61184216565b610af5565b600454610af5906001600160a01b0316338463ffffffff61184216565b6040805183815260006020820152815133927fd6f2c8500df5b44f11e9e48b91ff9f1b9d81bc496d55570c2b1b75bf65243f51928290030190a2505b50506000548114610b77576040805162461bcd60e51b815260206004820152601f6024820152600080516020611aa9833981519152604482015290519081900360640190fd5b50565b6003546001600160a01b03163314610bc9576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b6101f4811115610c1b576040805162461bcd60e51b81526020600482015260186024820152774665652063616e74206265206d6f7265207468616e20352560401b604482015290519081900360640190fd5b600f55565b6003546001600160a01b03163314610c6f576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b61012c811115610cc1576040805162461bcd60e51b81526020600482015260186024820152774665652063616e74206265206d6f7265207468616e20352560401b604482015290519081900360640190fd5b601055565b600f5481565b6001600160a01b03166000908152600e602052604090205490565b6005546001600160a01b031681565b6003546001600160a01b03163314610d45576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b60408051634aa7d2f760e11b815230600482015233602482015290516002604360981b019163954fa5ee9160448083019260209291908290030181600087803b158015610d9157600080fd5b505af1158015610da5573d6000803e3d6000fd5b505050506040513d602081101561081f57600080fd5b60075481565b6001546001600160a01b031681565b600b6020526000908152604090205481565b6003546001600160a01b03163314610e3c576040805162461bcd60e51b815260206004820152601860248201527710d85b1b195c881a5cc81b9bdd0815185e0815d85b1b195d60421b604482015290519081900360640190fd5b60075542600855565b600080546001019081905533610e596111b5565b600955426008556001600160a01b03811615610ea457610e78816104f2565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b60008311610eea576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b6000610f0761271061056a600f548761172390919063ffffffff16565b60115490915060009060ff1615610f3657610f3361271061056a6010548861172390919063ffffffff16565b90505b6000610f4c82610539888663ffffffff6116c616565b336000908152600e602052604081205491925090610f70908363ffffffff6117ea16565b600d54909150610f86908363ffffffff6117ea16565b600d55336000818152600e60205260409020829055600554610fb5916001600160a01b0390911690308a611894565b600354600554610fd8916001600160a01b0391821691168663ffffffff61184216565b60115460ff16156110495760055460408051630852cd8d60e31b81526004810186905290516001600160a01b03909216916342966c689160248082019260009290919082900301818387803b15801561103057600080fd5b505af1158015611044573d6000803e3d6000fd5b505050505b60408051888152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050505050600054811461081f576040805162461bcd60e51b815260206004820152601f6024820152600080516020611aa9833981519152604482015290519081900360640190fd5b6004604360981b0181565b60115460ff1681565b6003546001600160a01b0316331461112b576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b6040805163430021db60e11b81523060048201526001600160a01b038316602482015290516002604360981b019163860043b69160448083019260209291908290030181600087803b15801561118057600080fd5b505af1158015611194573d6000803e3d6000fd5b505050506040513d60208110156111aa57600080fd5b505050565b60085481565b6000600d54600014156111cb57506009546105ad565b600a544210156111de57506009546105ad565b61122961121a600d5461056a670de0b6b3a764000061120e60075461120e600854426116c690919063ffffffff16565b9063ffffffff61172316565b6009549063ffffffff6117ea16565b905090565b6004546001600160a01b031681565b6003546001600160a01b0316331461128c576040805162461bcd60e51b815260206004820152600d60248201526c2737ba103a34329037bbb732b960991b604482015290519081900360640190fd5b60408051635569f64b60e11b81526001600160a01b03841660048201526024810183905290516003604360981b019163aad3ec969160448083019260209291908290030181600087803b1580156112e257600080fd5b505af11580156112f6573d6000803e3d6000fd5b505050506040513d602081101561130c57600080fd5b505060408051635569f64b60e11b81526001600160a01b03841660048201526024810183905290516004604360981b019163aad3ec969160448083019260209291908290030181600087803b15801561065b57600080fd5b600a5481565b60095481565b336000908152600e60205260409020546113899061069a565b6113916109b1565b565b6002604360981b0181565b60065481565b6000805460010190819055336113b86111b5565b600955426008556001600160a01b03811615611403576113d7816104f2565b6001600160a01b0382166000908152600c6020908152604080832093909355600954600b909152919020555b60008711611449576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600061146661271061056a600f548b61172390919063ffffffff16565b60115490915060009060ff16156114955761149261271061056a6010548c61172390919063ffffffff16565b90505b60006114ab826105398c8663ffffffff6116c616565b336000908152600e6020526040812054919250906114cf908363ffffffff6117ea16565b600d549091506114e5908363ffffffff6117ea16565b600d55336000818152600e6020526040808220849055600554815163d505accf60e01b81526004810194909452306024850152604484018f9052606484018e905260ff8d16608485015260a484018c905260c484018b905290516001600160a01b039091169263d505accf9260e480830193919282900301818387803b15801561156e57600080fd5b505af1158015611582573d6000803e3d6000fd5b50506005546115a592506001600160a01b0316905033308e63ffffffff61189416565b6003546005546115c8916001600160a01b0391821691168663ffffffff61184216565b60115460ff16156116395760055460408051630852cd8d60e31b81526004810186905290516001600160a01b03909216916342966c689160248082019260009290919082900301818387803b15801561162057600080fd5b505af1158015611634573d6000803e3d6000fd5b505050505b604080518c8152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a2505050505060005481146116b8576040805162461bcd60e51b815260206004820152601f6024820152600080516020611aa9833981519152604482015290519081900360640190fd5b505050505050565b60105481565b60008282111561171d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008261173257506000610582565b8282028284828161173f57fe5b041461177c5760405162461bcd60e51b8152600401808060200182810382526021815260200180611ac96021913960400191505060405180910390fd5b9392505050565b60008082116117d6576040805162461bcd60e51b815260206004820152601a602482015279536166654d6174683a206469766973696f6e206279207a65726f60301b604482015290519081900360640190fd5b60008284816117e157fe5b04949350505050565b60008282018381101561177c576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526111aa9084906118ea565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526106859085905b6118fc826001600160a01b0316611aa2565b61194d576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061198b5780518252601f19909201916020918201910161196c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146119ed576040519150601f19603f3d011682016040523d82523d6000602084013e6119f2565b606091505b509150915081611a49576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561068557808060200190516020811015611a6557600080fd5b50516106855760405162461bcd60e51b815260040180806020018281038252602a815260200180611aea602a913960400191505060405180910390fd5b3b15159056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820cea724b4c7b4e86c13c0e590c52473cbf512760467447f31d7a5af50bfcddc1164736f6c63430005100032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fd5844867387cecc3a0393b3e0be32479ea9e61a000000000000000000000000fee958fa595b4478cea7560c91400a98b83d6c91000000000000000000000000430000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065e76bb0
-----Decoded View---------------
Arg [0] : _taxWallet (address): 0xfD5844867387Cecc3A0393b3e0BE32479Ea9e61a
Arg [1] : _stakingToken (address): 0xfEE958Fa595B4478cea7560C91400A98b83d6C91
Arg [2] : _rewardsToken (address): 0x4300000000000000000000000000000000000004
Arg [3] : _rewardRate (uint256): 0
Arg [4] : _farmStartTime (uint256): 1709665200
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000fd5844867387cecc3a0393b3e0be32479ea9e61a
Arg [1] : 000000000000000000000000fee958fa595b4478cea7560c91400a98b83d6c91
Arg [2] : 0000000000000000000000004300000000000000000000000000000000000004
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000065e76bb0
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.