Contract Overview
Balance:
0 FTM
FTM Value:
$0.00
My Name Tag:
Not Available, login to update
Txn Hash | Method |
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0x7051118ed6eb5e4fcb90cfe8d7d9b8c60ca21a6d5c61df5dc0b50608f4904758 | Transfer Operato... | 31465790 | 404 days 9 hrs ago | FDoge Finance: Deployer | IN | 0x1bb9d11b4fe24a6b195a61fb7f6d6420c1732b7c | 0 FTM | 0.006009137449 | |
0x1f77bd8a1746b516fcd1c56dbd4c8364f30f2464fa743262a1a301ce00bfea68 | 0x60806040 | 31462008 | 404 days 10 hrs ago | FDoge Finance: Deployer | IN | Create: DogeShareSwapper | 0 FTM | 0.231194851788 |
[ Download CSV Export ]
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | |||
---|---|---|---|---|---|---|---|
0x1f77bd8a1746b516fcd1c56dbd4c8364f30f2464fa743262a1a301ce00bfea68 | 31462008 | 404 days 10 hrs ago | FDoge Finance: Deployer | Contract Creation | 0 FTM |
[ Download CSV Export ]
Contract Name:
DogeShareSwapper
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.12; import "../interfaces/IERC20.sol"; import "../lib/SafeMath.sol"; import "../lib/SafeERC20.sol"; import "../owner/Operator.sol"; /*$$$$$_ $$$$$___ __$$$___ __$$$$__ $$$$$$$_ ____ $$$$$$$_ $$$$_ $$___$$_ __$$$___ $$___$$_ __$$$$_ $$$$$$$_ $$______ $$__$$__ _$$_$$__ _$$__$$_ $$______ ____ $$______ _$$__ $$$__$$_ _$$_$$__ $$$__$$_ _$$____ $$______ $$$$$___ $$___$$_ $$___$$_ $$______ $$$$$___ ____ $$$$$___ _$$__ $$$$_$$_ $$___$$_ $$$$_$$_ $$_____ $$$$$___ $$______ $$___$$_ $$___$$_ $$__$$$_ $$______ ____ $$______ _$$__ $$_$$$$_ $$$$$$$_ $$_$$$$_ $$_____ $$______ $$______ $$__$$__ _$$_$$__ _$$__$$_ $$______ _$$_ $$______ _$$__ $$__$$$_ $$___$$_ $$__$$$_ _$$____ $$______ $$______ $$$$$___ __$$$___ __$$$$__ $$$$$$$_ _$$_ $$______ $$$$_ $$___$$_ $$___$$_ $$___$$_ __$$$$_ $$$$$$$_*/ contract DogeShareSwapper is Operator { using SafeERC20 for IERC20; using SafeMath for uint256; IERC20 public tomb; IERC20 public tbond; IERC20 public tshare; address public tombSpookyLpPair; address public tshareSpookyLpPair; address public wftmAddress; address public daoAddress; event TBondSwapPerformed(address indexed sender, uint256 tbondAmount, uint256 tshareAmount); constructor() public { tomb = IERC20(0xEb0a2D1b1a33D95204af5d00f65FD9e349419878); tbond = IERC20(0xD5A64D724cfE2B1D83313aC6768a589609c19379); tshare = IERC20(0xBda29437C8e5dC8BF6a2305D442A3742da7FB033); wftmAddress = address(0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83); tombSpookyLpPair = address(0xd0EE9183F8717819c071bD3BDB77df37B7D4d16B); tshareSpookyLpPair = address(0xbc9eF8F482ACf57CDa927f6Af39f5c513593aDFb); daoAddress = address(0xc6B73D9B6a9E0373d0483fD4E9a52374c8132f04); } function setAddr( address _tomb, address _tbond, address _tshare, address _wftmAddress, address _tombSpookyLpPair, address _tshareSpookyLpPair, address _daoAddress ) external onlyOperator { tomb = IERC20(_tomb); tbond = IERC20(_tbond); tshare = IERC20(_tshare); wftmAddress = _wftmAddress; tombSpookyLpPair = _tombSpookyLpPair; tshareSpookyLpPair = _tshareSpookyLpPair; daoAddress = _daoAddress; } modifier isSwappable() { //TODO: What is a good number here? require(tomb.totalSupply() >= 60 ether, "ChipSwapMechanismV2.isSwappable(): Insufficient supply."); _; } function estimateAmountOfTShare(uint256 _tbondAmount) external view returns (uint256) { uint256 tshareAmountPerTomb = getTShareAmountPerTomb(); return _tbondAmount.mul(tshareAmountPerTomb).div(1e18); } function swapTBondToTShare(uint256 _tbondAmount) external { require(getTBondBalance(msg.sender) >= _tbondAmount, "Not enough TBond in wallet"); uint256 tshareAmountPerTomb = getTShareAmountPerTomb(); uint256 tshareAmount = _tbondAmount.mul(tshareAmountPerTomb).div(1e18); require(getTShareBalance() >= tshareAmount, "Not enough TShare."); tbond.safeTransferFrom(msg.sender, daoAddress, _tbondAmount); tshare.safeTransfer(msg.sender, tshareAmount); emit TBondSwapPerformed(msg.sender, _tbondAmount, tshareAmount); } function withdrawTShare(uint256 _amount) external onlyOperator { require(getTShareBalance() >= _amount, "ChipSwapMechanism.withdrawFish(): Insufficient FISH balance."); tshare.safeTransfer(msg.sender, _amount); } function getTShareBalance() public view returns (uint256) { return tshare.balanceOf(address(this)); } function getTBondBalance(address _user) public view returns (uint256) { return tbond.balanceOf(_user); } function getTombPrice() public view returns (uint256) { return IERC20(wftmAddress).balanceOf(tombSpookyLpPair).mul(1e18).div(tomb.balanceOf(tombSpookyLpPair)); } function getTSharePrice() public view returns (uint256) { return IERC20(wftmAddress).balanceOf(tshareSpookyLpPair).mul(1e18).div(tshare.balanceOf(tshareSpookyLpPair)); } function getTShareAmountPerTomb() public view returns (uint256) { uint256 tombPrice = IERC20(wftmAddress).balanceOf(tombSpookyLpPair).mul(1e18).div(tomb.balanceOf(tombSpookyLpPair)); uint256 tsharePrice = IERC20(wftmAddress).balanceOf(tshareSpookyLpPair).mul(1e18).div(tshare.balanceOf(tshareSpookyLpPair)); return tombPrice.mul(1e18).div(tsharePrice); } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ 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. * * IMPORTANT: 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); }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.0; /** * @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) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); 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-contracts/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) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); 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) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.0; import "../interfaces/IERC20.sol"; import "../lib/SafeMath.sol"; import "../utils/Address.sol"; /** * @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, "SafeERC20: decreased allowance below zero"); _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"); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "../lib/Context.sol"; import "../lib/Ownable.sol"; contract Operator is Context, Ownable { address private _operator; event OperatorTransferred(address indexed previousOperator, address indexed newOperator); constructor() internal { _operator = _msgSender(); emit OperatorTransferred(address(0), _operator); } function operator() public view returns (address) { return _operator; } modifier onlyOperator() { require(_operator == msg.sender, "operator: caller is not the operator"); _; } function isOperator() public view returns (bool) { return _msgSender() == _operator; } function transferOperator(address newOperator_) public onlyOwner { _transferOperator(newOperator_); } function _transferOperator(address newOperator_) internal { require(newOperator_ != address(0), "operator: zero address given for new operator"); emit OperatorTransferred(address(0), newOperator_); _operator = newOperator_; } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.0; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"tbondAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tshareAmount","type":"uint256"}],"name":"TBondSwapPerformed","type":"event"},{"inputs":[],"name":"daoAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tbondAmount","type":"uint256"}],"name":"estimateAmountOfTShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getTBondBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTShareAmountPerTomb","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTShareBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTSharePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTombPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tomb","type":"address"},{"internalType":"address","name":"_tbond","type":"address"},{"internalType":"address","name":"_tshare","type":"address"},{"internalType":"address","name":"_wftmAddress","type":"address"},{"internalType":"address","name":"_tombSpookyLpPair","type":"address"},{"internalType":"address","name":"_tshareSpookyLpPair","type":"address"},{"internalType":"address","name":"_daoAddress","type":"address"}],"name":"setAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tbondAmount","type":"uint256"}],"name":"swapTBondToTShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tbond","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tomb","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tombSpookyLpPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator_","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tshare","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tshareSpookyLpPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wftmAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawTShare","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50600061001b61019c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006d61019c565b600180546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600280546001600160a01b031990811673eb0a2d1b1a33d95204af5d00f65fd9e3494198781790915560038054821673d5a64d724cfe2b1d83313ac6768a589609c1937917905560048054821673bda29437c8e5dc8bf6a2305d442a3742da7fb0331790556007805482167321be370d5312f44cb42ce377bc9b8a0cef1a4c8317905560058054821673d0ee9183f8717819c071bd3bdb77df37b7d4d16b17905560068054821673bc9ef8f482acf57cda927f6af39f5c513593adfb1790556008805490911673c6b73d9b6a9e0373d0483fd4e9a52374c8132f041790556101a0565b3390565b611355806101af6000396000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c8063965d16ab116100d8578063c040f23a1161008c578063d945d1ff11610066578063d945d1ff146102de578063ee6822a714610336578063f2fde38b1461033e57610182565b8063c040f23a146102b1578063c2ef4c27146102b9578063ccc35e72146102d657610182565b8063a599a868116100bd578063a599a8681461027b578063b981cdf3146102a1578063bd0ef4ef146102a957610182565b8063965d16ab146102565780639e5587071461027357610182565b8063507d8f411161013a578063715018a611610114578063715018a61461023e5780637edd3da5146102465780638da5cb5b1461024e57610182565b8063507d8f4114610211578063570ca7351461021957806358b9889c1461022157610182565b80632131c68c1161016b5780632131c68c146101a957806329605e77146101cd5780634456eda2146101f557610182565b806309bb4f9214610187578063111abf39146101a1575b600080fd5b61018f610364565b60408051918252519081900360200190f35b61018f61047c565b6101b161055c565b604080516001600160a01b039092168252519081900360200190f35b6101f3600480360360208110156101e357600080fd5b50356001600160a01b031661056b565b005b6101fd6105e1565b604080519115158252519081900360200190f35b6101b1610607565b6101b1610616565b6101f36004803603602081101561023757600080fd5b5035610625565b6101f36106cb565b6101b161078c565b6101b161079b565b6101f36004803603602081101561026c57600080fd5b50356107aa565b6101b16108fe565b61018f6004803603602081101561029157600080fd5b50356001600160a01b031661090d565b6101b1610990565b61018f61099f565b6101b1610a73565b61018f600480360360208110156102cf57600080fd5b5035610a82565b61018f610aac565b6101f3600480360360e08110156102f457600080fd5b506001600160a01b038135811691602081013582169160408201358116916060810135821691608082013581169160a081013582169160c09091013516610b2c565b6101b1610c00565b6101f36004803603602081101561035457600080fd5b50356001600160a01b0316610c0f565b600254600554604080516370a0823160e01b81526001600160a01b03928316600482015290516000936104779316916370a08231916024808301926020929190829003018186803b1580156103b857600080fd5b505afa1580156103cc573d6000803e3d6000fd5b505050506040513d60208110156103e257600080fd5b5051600754600554604080516370a0823160e01b81526001600160a01b039283166004820152905161047193670de0b6b3a76400009316916370a08231916024808301926020929190829003018186803b15801561043f57600080fd5b505afa158015610453573d6000803e3d6000fd5b505050506040513d602081101561046957600080fd5b505190610d26565b90610d88565b905090565b60048054600654604080516370a0823160e01b81526001600160a01b0392831694810194909452516000936104779392909216916370a08231916024808301926020929190829003018186803b1580156104d557600080fd5b505afa1580156104e9573d6000803e3d6000fd5b505050506040513d60208110156104ff57600080fd5b5051600754600654604080516370a0823160e01b81526001600160a01b039283166004820152905161047193670de0b6b3a76400009316916370a08231916024808301926020929190829003018186803b15801561043f57600080fd5b6008546001600160a01b031681565b610573610dca565b6000546001600160a01b039081169116146105d5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6105de81610dce565b50565b6001546000906001600160a01b03166105f8610dca565b6001600160a01b031614905090565b6006546001600160a01b031681565b6001546001600160a01b031690565b6001546001600160a01b0316331461066e5760405162461bcd60e51b81526004018080602001828103825260248152602001806112966024913960400191505060405180910390fd5b80610677610aac565b10156106b45760405162461bcd60e51b815260040180806020018281038252603c8152602001806112e4603c913960400191505060405180910390fd5b6004546105de906001600160a01b03163383610e78565b6106d3610dca565b6000546001600160a01b03908116911614610735576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6007546001600160a01b031681565b6000546001600160a01b031690565b806107b43361090d565b1015610807576040805162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f7567682054426f6e6420696e2077616c6c6574000000000000604482015290519081900360640190fd5b600061081161099f565b9050600061082b670de0b6b3a76400006104718585610d26565b905080610836610aac565b1015610889576040805162461bcd60e51b815260206004820152601260248201527f4e6f7420656e6f756768205453686172652e0000000000000000000000000000604482015290519081900360640190fd5b6008546003546108a8916001600160a01b039182169133911686610efd565b6004546108bf906001600160a01b03163383610e78565b6040805184815260208101839052815133927f037e3bc3a1422168d94ee9404a96070467cb542e3d8b1e896c7052774a739004928290030190a2505050565b6005546001600160a01b031681565b600354604080516370a0823160e01b81526001600160a01b038481166004830152915160009392909216916370a0823191602480820192602092909190829003018186803b15801561095e57600080fd5b505afa158015610972573d6000803e3d6000fd5b505050506040513d602081101561098857600080fd5b505192915050565b6003546001600160a01b031681565b600254600554604080516370a0823160e01b81526001600160a01b039283166004820152905160009384936109f7939116916370a0823191602480820192602092909190829003018186803b1580156103b857600080fd5b60048054600654604080516370a0823160e01b81526001600160a01b039283169481019490945251939450600093610a549391909216916370a0823191602480820192602092909190829003018186803b1580156104d557600080fd5b9050610a6c8161047184670de0b6b3a7640000610d26565b9250505090565b6002546001600160a01b031681565b600080610a8d61099f565b9050610aa5670de0b6b3a76400006104718584610d26565b9392505050565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015610afb57600080fd5b505afa158015610b0f573d6000803e3d6000fd5b505050506040513d6020811015610b2557600080fd5b5051905090565b6001546001600160a01b03163314610b755760405162461bcd60e51b81526004018080602001828103825260248152602001806112966024913960400191505060405180910390fd5b6002805473ffffffffffffffffffffffffffffffffffffffff199081166001600160a01b03998a1617909155600380548216978916979097179096556004805487169588169590951790945560078054861693871693909317909255600580548516918616919091179055600680548416918516919091179055600880549092169216919091179055565b6004546001600160a01b031681565b610c17610dca565b6000546001600160a01b03908116911614610c79576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610cbe5760405162461bcd60e51b81526004018080602001828103825260268152602001806112226026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600082610d3557506000610d82565b82820282848281610d4257fe5b0414610d7f5760405162461bcd60e51b81526004018080602001828103825260218152602001806112756021913960400191505060405180910390fd5b90505b92915050565b6000610d7f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610f8b565b3390565b6001600160a01b038116610e135760405162461bcd60e51b815260040180806020018281038252602d815260200180611248602d913960400191505060405180910390fd5b6040516001600160a01b038216906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a36001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610ef890849061102d565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610f8590859061102d565b50505050565b600081836110175760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610fdc578181015183820152602001610fc4565b50505050905090810190601f1680156110095780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161102357fe5b0495945050505050565b61103f826001600160a01b03166111e5565b611090576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106110ce5780518252601f1990920191602091820191016110af565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611130576040519150601f19603f3d011682016040523d82523d6000602084013e611135565b606091505b50915091508161118c576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610f85578080602001905160208110156111a857600080fd5b5051610f855760405162461bcd60e51b815260040180806020018281038252602a8152602001806112ba602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061121957508115155b94935050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573736f70657261746f723a207a65726f206164647265737320676976656e20666f72206e6577206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f776f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f725361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443686970537761704d656368616e69736d2e77697468647261774669736828293a20496e73756666696369656e7420464953482062616c616e63652ea2646970667358221220518507d0bf520a7313992d16aa7f7319f511b3514be6553f7c7ac06156bc7ea964736f6c634300060c0033
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Validator ID :
0 FTM
Amount Staked
0
Amount Delegated
0
Staking Total
0
Staking Start Epoch
0
Staking Start Time
0
Proof of Importance
0
Origination Score
0
Validation Score
0
Active
0
Online
0
Downtime
0 s
Address | Amount | claimed Rewards | Created On Epoch | Created On |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.