Latest 25 from a total of 346 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Destroy Lock | 19525712 | 702 days ago | IN | 0 ETH | 0.00315298 | ||||
| Delegate | 18601902 | 832 days ago | IN | 0 ETH | 0.00201584 | ||||
| Destroy Lock | 18446244 | 853 days ago | IN | 0 ETH | 0.00118094 | ||||
| Deposit | 18436090 | 855 days ago | IN | 0 ETH | 0.00412351 | ||||
| Destroy Lock | 18145708 | 895 days ago | IN | 0 ETH | 0.00068572 | ||||
| Destroy Lock | 18113282 | 900 days ago | IN | 0 ETH | 0.00208578 | ||||
| Destroy Lock | 18113279 | 900 days ago | IN | 0 ETH | 0.00267082 | ||||
| Deposit | 18065406 | 907 days ago | IN | 0 ETH | 0.01014322 | ||||
| Destroy Lock | 17995072 | 917 days ago | IN | 0 ETH | 0.00152755 | ||||
| Destroy Lock | 17995067 | 917 days ago | IN | 0 ETH | 0.00157406 | ||||
| Destroy Lock | 17995065 | 917 days ago | IN | 0 ETH | 0.00206014 | ||||
| Destroy Lock | 17853290 | 936 days ago | IN | 0 ETH | 0.00150507 | ||||
| Destroy Lock | 17516424 | 984 days ago | IN | 0 ETH | 0.00177236 | ||||
| Deposit | 17409219 | 999 days ago | IN | 0 ETH | 0.00266517 | ||||
| Destroy Lock | 17409206 | 999 days ago | IN | 0 ETH | 0.00245524 | ||||
| Withdraw | 16897102 | 1071 days ago | IN | 0 ETH | 0.00134544 | ||||
| Destroy Lock | 16897085 | 1071 days ago | IN | 0 ETH | 0.00155911 | ||||
| Destroy Lock | 16792971 | 1086 days ago | IN | 0 ETH | 0.00541454 | ||||
| Destroy Lock | 16779509 | 1088 days ago | IN | 0 ETH | 0.00325848 | ||||
| Destroy Lock | 16758051 | 1091 days ago | IN | 0 ETH | 0.00370408 | ||||
| Destroy Lock | 16673908 | 1102 days ago | IN | 0 ETH | 0.00264525 | ||||
| Destroy Lock | 16673901 | 1102 days ago | IN | 0 ETH | 0.00305584 | ||||
| Destroy Lock | 16640646 | 1107 days ago | IN | 0 ETH | 0.00261941 | ||||
| Destroy Lock | 16640642 | 1107 days ago | IN | 0 ETH | 0.00311237 | ||||
| Destroy Lock | 16640640 | 1107 days ago | IN | 0 ETH | 0.00268026 |
Latest 25 internal transactions (View All)
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
SharesTimeLock
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
pragma abicoder v2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./base/DelegationModule.sol";
import "./libraries/LowGasSafeMath.sol";
import "./interfaces/ISharesTimeLock.sol";
contract SharesTimeLock is ISharesTimeLock, DelegationModule, Ownable() {
using LowGasSafeMath for uint256;
using TransferHelper for address;
/** ========== Constants ========== */
/**
* @dev Token used for dividend payments and given to users for deposits.
* Must be an ERC20DividendsOwned with this contract set as the owner.
*/
address public immutable override dividendsToken;
/**
* @dev Minimum number of seconds shares can be locked for.
*/
uint32 public immutable override minLockDuration;
/**
* @dev Maximum number of seconds shares can be locked for.
*/
uint32 public immutable override maxLockDuration;
/**
* @dev Minimum early withdrawal fee added to every dynamic withdrawal fee.
*/
uint256 public immutable override minEarlyWithdrawalFee;
/**
* @dev Base early withdrawal fee expressed as a fraction of 1e18.
* This is the fee paid if tokens are withdrawn immediately after being locked.
* It is multiplied by the dividend multiplier, and added to the minimum early withdrawal fee.
*/
uint256 public immutable override baseEarlyWithdrawalFee;
/**
* @dev Maximum dividends multiplier for a lock duration of `maxLockDuration`
*/
uint256 public immutable override maxDividendsBonusMultiplier;
/** ========== Storage ========== */
/**
* @dev Array of token locks.
*/
Lock[] public override locks;
/**
* @dev Account which receives fees taken for early withdrawals.
*/
address public override feeRecipient;
/**
* @dev Minimum amount of tokens that can be deposited.
* If zero, there is no minimum.
*/
uint96 public override minimumDeposit;
/**
* @dev Accumulated early withdrawal fees.
*/
uint96 public override pendingFees;
/**
* @dev Allows all locked tokens to be withdrawn with no fees.
*/
bool public override emergencyUnlockTriggered;
/** ========== Queries ========== */
/**
* @dev Returns the number of locks that have been created.
*/
function getLocksLength() external view override returns (uint256) {
return locks.length;
}
/**
* @dev Returns the dividends multiplier for `duration` expressed as a fraction of 1e18.
*/
function getDividendsMultiplier(uint256 duration) public view override returns (uint256 multiplier) {
require(duration >= minLockDuration && duration <= maxLockDuration, "OOB");
uint256 durationRange = maxLockDuration - minLockDuration;
uint256 overMinimum = duration - minLockDuration;
return uint256(1e18).add(
maxDividendsBonusMultiplier.mul(overMinimum) / durationRange
);
}
/**
* @dev Returns the withdrawal fee and withdrawable shares for a withdrawal of a
* lock created at `lockedAt` with a duration of `lockDuration`, if it was withdrawan
* now.
*
* The early withdrawal fee is 0 if the full duration has passed or the emergency unlock
* has been triggered; otherwise, it is calculated as the fraction of the total duration
* that has not elapsed multiplied by the maximum base withdrawal fee and the dividends
* multiplier, plus the minimum withdrawal fee.
*/
function getWithdrawalParameters(
uint256 amount,
uint256 lockedAt,
uint256 lockDuration
)
public
view
override
returns (uint256 dividendShares, uint256 earlyWithdrawalFee)
{
uint256 multiplier = getDividendsMultiplier(lockDuration);
dividendShares = amount.mul(multiplier) / uint256(1e18);
uint256 unlockAt = lockedAt + lockDuration;
if (block.timestamp >= unlockAt || emergencyUnlockTriggered) {
earlyWithdrawalFee = 0;
} else {
uint256 timeRemaining = unlockAt - block.timestamp;
uint256 minimumFee = amount.mul(minEarlyWithdrawalFee) / uint256(1e18);
uint256 dynamicFee = amount.mul(
baseEarlyWithdrawalFee.mul(timeRemaining).mul(multiplier)
) / uint256(1e36 * lockDuration);
earlyWithdrawalFee = minimumFee.add(dynamicFee);
}
}
/** ========== Constructor ========== */
constructor(
address depositToken_,
address dividendsToken_,
uint32 minLockDuration_,
uint32 maxLockDuration_,
uint256 minEarlyWithdrawalFee_,
uint256 baseEarlyWithdrawalFee_,
uint256 maxDividendsBonusMultiplier_
) DelegationModule(depositToken_) {
dividendsToken = dividendsToken_;
require(minLockDuration_ < maxLockDuration_, "min>=max");
require(
minEarlyWithdrawalFee_.add(baseEarlyWithdrawalFee_.mul(maxDividendsBonusMultiplier_)) <= 1e36,
"maxFee"
);
minLockDuration = minLockDuration_;
maxLockDuration = maxLockDuration_;
maxDividendsBonusMultiplier = maxDividendsBonusMultiplier_;
minEarlyWithdrawalFee = minEarlyWithdrawalFee_;
baseEarlyWithdrawalFee = baseEarlyWithdrawalFee_;
}
/** ========== Controls ========== */
/**
* @dev Trigger an emergency unlock which allows all locked tokens to be withdrawn
* with zero fees.
*/
function triggerEmergencyUnlock() external override onlyOwner {
require(!emergencyUnlockTriggered, "already triggered");
emergencyUnlockTriggered = true;
emit EmergencyUnlockTriggered();
}
/**
* @dev Set the minimum deposit to `minimumDeposit_`. If it is 0, there will be no minimum.
*/
function setMinimumDeposit(uint96 minimumDeposit_) external override onlyOwner {
minimumDeposit = minimumDeposit_;
emit MinimumDepositSet(minimumDeposit_);
}
/**
* @dev Set the account which receives fees taken for early withdrawals.
*/
function setFeeRecipient(address feeRecipient_) external override onlyOwner {
feeRecipient = feeRecipient_;
emit FeeRecipientSet(feeRecipient_);
}
/** ========== Fees ========== */
/**
* @dev Transfers accumulated early withdrawal fees to the fee recipient.
*/
function distributeFees() external override {
address recipient = feeRecipient;
require(recipient != address(0), "no recipient");
uint256 amount = pendingFees;
require(amount > 0, "no fees");
pendingFees = 0;
depositToken.safeTransfer(recipient, amount);
emit FeesTransferred(amount);
}
/** ========== Locks ========== */
/**
* @dev Lock `amount` of `depositToken` for `duration` seconds.
*
* Mints an amount of dividend tokens equal to the amount of tokens locked
* times 1 + (duration-minDuration) / (maxDuration - minDuration).
*
* Uses transferFrom - caller must have approved the contract to spend `amount`
* of `depositToken`.
*
* If the emergency unlock has been triggered, deposits will fail.
*
* `amount` must be greater than `minimumDeposit`.
*/
function deposit(uint256 amount, uint32 duration) external override returns (uint256 lockId) {
require(amount >= minimumDeposit, "min deposit");
require(!emergencyUnlockTriggered, "deposits blocked");
_depositToModule(msg.sender, amount);
uint256 multiplier = getDividendsMultiplier(duration);
uint256 dividendShares = amount.mul(multiplier) / 1e18;
IERC20DividendsOwned(dividendsToken).mint(msg.sender, dividendShares);
lockId = locks.length;
locks.push(Lock({
amount: amount,
lockedAt: uint32(block.timestamp),
lockDuration: duration,
owner: msg.sender
}));
emit LockCreated(
lockId,
msg.sender,
amount,
dividendShares,
duration
);
}
/**
* @dev Withdraw the tokens locked in `lockId`.
* The caller will incur an early withdrawal fee if the lock duration has not elapsed.
* All of the dividend tokens received when the lock was created will be burned from the
* caller's account.
* This can only be executed by the lock owner.
*/
function destroyLock(uint256 lockId) external override {
withdraw(lockId, locks[lockId].amount);
}
function withdraw(uint256 lockId, uint256 amount) public override {
Lock storage lock = locks[lockId];
require(msg.sender == lock.owner, "!owner");
lock.amount = lock.amount.sub(amount, "insufficient locked tokens");
(uint256 owed, uint256 dividendShares) = _withdraw(lock, amount);
if (lock.amount == 0) {
delete locks[lockId];
emit LockDestroyed(lockId, msg.sender, owed, dividendShares);
} else {
emit PartialWithdrawal(lockId, msg.sender, owed, dividendShares);
}
}
function _withdraw(Lock memory lock, uint256 amount) internal returns (uint256 owed, uint256 dividendShares) {
uint256 earlyWithdrawalFee;
(dividendShares, earlyWithdrawalFee) = getWithdrawalParameters(
amount,
uint256(lock.lockedAt),
uint256(lock.lockDuration)
);
owed = amount.sub(earlyWithdrawalFee);
IERC20DividendsOwned(dividendsToken).burn(msg.sender, dividendShares);
if (earlyWithdrawalFee > 0) {
_withdrawFromModule(msg.sender, address(this), amount);
depositToken.safeTransfer(msg.sender, owed);
pendingFees = safe96(uint256(pendingFees).add(earlyWithdrawalFee));
emit FeesReceived(earlyWithdrawalFee);
} else {
_withdrawFromModule(msg.sender, msg.sender, amount);
}
}
function safe96(uint256 n) internal pure returns (uint96) {
require(n < 2**96, "amount exceeds 96 bits");
return uint96(n);
}
/**
* @dev Delegate all voting shares the caller has in its sub-delegation module
* to `delegatee`.
* This will revert if the sub-delegation module does not exist.
*/
function delegate(address delegatee) external override {
_delegateFromModule(msg.sender, delegatee);
}
}
interface IERC20DividendsOwned {
function mint(address to, uint256 amount) external;
function burn(address from, uint256 amount) external;
function distribute(uint256 amount) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "../utils/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.
*/
abstract 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 () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual 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;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.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.
*/
abstract contract Context {
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: MIT
pragma solidity ^0.7.0;
/**
* @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.
* `CREATE2` can be used to compute in advance the address where a smart
* contract will be deployed, which allows for interesting new mechanisms known
* as 'counterfactual interactions'.
*
* See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more
* information.
*/
library Create2 {
/**
* @dev Deploys a contract using `CREATE2`. The address where the contract
* will be deployed can be known in advance via {computeAddress}.
*
* The bytecode for a contract can be obtained from Solidity with
* `type(contractName).creationCode`.
*
* Requirements:
*
* - `bytecode` must not be empty.
* - `salt` must have not been used for `bytecode` already.
* - the factory must have a balance of at least `amount`.
* - if `amount` is non-zero, `bytecode` must have a `payable` constructor.
*/
function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address) {
address addr;
require(address(this).balance >= amount, "Create2: insufficient balance");
require(bytecode.length != 0, "Create2: bytecode length is zero");
// solhint-disable-next-line no-inline-assembly
assembly {
addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)
}
require(addr != address(0), "Create2: Failed on deploy");
return addr;
}
/**
* @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the
* `bytecodeHash` or `salt` will result in a new destination address.
*/
function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {
return computeAddress(salt, bytecodeHash, address(this));
}
/**
* @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at
* `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.
*/
function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address) {
bytes32 _data = keccak256(
abi.encodePacked(bytes1(0xff), deployer, salt, bytecodeHash)
);
return address(uint160(uint256(_data)));
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
/* --- External Libraries --- */
import { Create2 } from "@openzeppelin/contracts/utils/Create2.sol";
import "../libraries/TransferHelper.sol";
import "../libraries/CloneLibrary.sol";
import "./SubDelegationModuleImplementation.sol";
import "../interfaces/IDelegationModule.sol";
contract DelegationModule is IDelegationModule {
using TransferHelper for address;
address public immutable override moduleImplementation;
address public immutable override depositToken;
/**
* @dev Contains the address of the sub-delegation module for a user
* if one has been deployed.
*/
mapping(address => ISubDelegationModule) public override subDelegationModuleForUser;
constructor(address depositToken_) {
depositToken = depositToken_;
moduleImplementation = address(new SubDelegationModuleImplementation(depositToken_));
}
function getOrCreateModule(address account) internal returns (ISubDelegationModule module) {
module = subDelegationModuleForUser[account];
if (address(module) == address(0)) {
module = ISubDelegationModule(CloneLibrary.createClone(moduleImplementation));
subDelegationModuleForUser[account] = module;
module.delegate(account);
emit SubDelegationModuleCreated(account, address(module));
}
}
/**
* @dev Send `amount` of the delegatable token to the sub-delegation
* module for `account`.
*/
function _depositToModule(address account, uint256 amount) internal {
ISubDelegationModule module = getOrCreateModule(account);
depositToken.safeTransferFrom(account, address(module), amount);
}
/**
* @dev Withdraw the full balance of the delegatable token from the
* sub-delegation module for `account` to `to`.
*/
function _withdrawFromModule(address account, address to, uint256 amount) internal {
ISubDelegationModule module = subDelegationModuleForUser[account];
module.transfer(to, amount);
}
/**
* @dev Delegates the balance of the sub-delegation module for `account`
* to `delegatee`.
*/
function _delegateFromModule(address account, address delegatee) internal {
ISubDelegationModule module = subDelegationModuleForUser[account];
module.delegate(delegatee);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "../interfaces/IERC20Delegatable.sol";
/**
* @dev This is a work-around for the delegation mechanic in COMP.
* It allows the balance of a staked governance token to be held in separate wallets
* for each user who makes a deposit so that they will retain the ability to control
* their governance delegation individually.
*
* This is an implementation contract that should be used for a separate proxy per user.
*/
contract SubDelegationModuleImplementation {
IERC20Delegatable public immutable token;
address public immutable module;
constructor(address _token) {
token = IERC20Delegatable(_token);
module = msg.sender;
}
function delegate(address to) external {
require(msg.sender == module, "!module");
token.delegate(to);
}
function transfer(address to, uint256 amount) external {
require(msg.sender == module, "!module");
token.transfer(to, amount);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "./ISubDelegationModule.sol";
interface IDelegationModule {
event SubDelegationModuleCreated(address indexed account, address module);
function moduleImplementation() external view returns (address);
function depositToken() external view returns (address);
function subDelegationModuleForUser(address) external view returns (ISubDelegationModule);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
pragma solidity =0.7.6;
import "./IERC20Metadata.sol";
interface IERC20Delegatable is IERC20Metadata {
function delegate(address delegatee) external;
}// SPDX-License-Identifier: MIT
pragma solidity =0.7.6;
import "./IERC20.sol";
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "./IDelegationModule.sol";
interface ISharesTimeLock is IDelegationModule {
event LockCreated(
uint256 indexed lockId,
address indexed account,
uint256 amountLocked,
uint256 dividendShares,
uint32 duration
);
event LockDestroyed(
uint256 indexed lockId,
address indexed account,
uint256 amount,
uint256 dividendShares
);
event PartialWithdrawal(
uint256 indexed lockId,
address indexed account,
uint256 amount,
uint256 dividendShares
);
event MinimumDepositSet(uint256 minimumDeposit);
event FeeRecipientSet(address feeRecipient);
event FeesReceived(uint256 amount);
event FeesTransferred(uint256 amount);
event EmergencyUnlockTriggered();
/**
* @dev Struct for token locks.
* @param amount Amount of tokens deposited.
* @param lockedAt Timestamp the lock was created at.
* @param lockDuration Duration of lock in seconds.
* @param owner Account that made the deposit.
*/
struct Lock {
uint256 amount;
uint32 lockedAt;
uint32 lockDuration;
address owner;
}
function emergencyUnlockTriggered() external view returns (bool);
function dividendsToken() external view returns (address);
function minLockDuration() external view returns (uint32);
function maxLockDuration() external view returns (uint32);
function minEarlyWithdrawalFee() external view returns (uint256);
function baseEarlyWithdrawalFee() external view returns (uint256);
function maxDividendsBonusMultiplier() external view returns (uint256);
function locks(uint256) external view returns (uint256 amount, uint32 lockedAt, uint32 lockDuration, address owner);
function feeRecipient() external view returns (address);
function minimumDeposit() external view returns (uint96);
function pendingFees() external view returns (uint96);
function getLocksLength() external view returns (uint256);
function setMinimumDeposit(uint96 minimumDeposit_) external;
function setFeeRecipient(address feeRecipient_) external;
function getDividendsMultiplier(uint256 duration) external view returns (uint256 multiplier);
function getWithdrawalParameters(
uint256 amount,
uint256 lockedAt,
uint256 lockDuration
)
external
view
returns (uint256 dividendShares, uint256 earlyWithdrawalFee);
function triggerEmergencyUnlock() external;
function distributeFees() external;
function deposit(uint256 amount, uint32 duration) external returns (uint256);
function delegate(address delegatee) external;
function destroyLock(uint256 lockId) external;
function withdraw(uint256 lockId, uint256 amount) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
interface ISubDelegationModule {
function delegate(address to) external;
function transfer(address to, uint256 amount) external;
}// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
/*
The MIT License (MIT)
Copyright (c) 2018 Murray Software, LLC.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/**
* EIP 1167 Proxy Deployment
* Originally from https://github.com/optionality/clone-factory/
*/
library CloneLibrary {
function createClone(address target) internal returns (address result) {
// Reserve 55 bytes for the deploy code + 17 bytes as a buffer to prevent overwriting
// other memory in the final mstore
bytes memory createCode = new bytes(72);
assembly {
let clone := add(createCode, 32)
mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
mstore(add(clone, 0x14), shl(96, target))
mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
result := create(0, clone, 0x37)
}
}
function isClone(address target, address query) internal view returns (bool result) {
assembly {
let clone := mload(0x40)
mstore(clone, 0x363d3d373d3d3d363d7300000000000000000000000000000000000000000000)
mstore(add(clone, 0xa), shl(96, target))
mstore(add(clone, 0x1e), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
let other := add(clone, 0x40)
extcodecopy(query, other, 0, 0x2d)
result := and(
eq(mload(clone), mload(other)),
eq(mload(add(clone, 0xd)), mload(add(other, 0xd)))
)
}
}
}// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.0;
/************************************************************************************************
Originally from https://github.com/Uniswap/uniswap-v3-core/blob/main/contracts/libraries/LowGasSafeMath.sol
This source code has been modified from the original, which was copied from the github repository
at commit hash b83fcf497e895ae59b97c9d04e997023f69b5e97.
Subject to the GPL-2.0-or-later license
*************************************************************************************************/
/// @title Optimized overflow and underflow safe math operations
/// @notice Contains methods for doing math operations that revert on overflow or underflow for minimal gas cost
library LowGasSafeMath {
/// @notice Returns x + y, reverts if sum overflows uint256
/// @param x The augend
/// @param y The addend
/// @return z The sum of x and y
function add(uint256 x, uint256 y) internal pure returns (uint256 z) {
require((z = x + y) >= x);
}
/// @notice Returns x + y, reverts if sum overflows uint256
/// @param x The augend
/// @param y The addend
/// @return z The sum of x and y
function add(uint256 x, uint256 y, string memory errorMessage) internal pure returns (uint256 z) {
require((z = x + y) >= x, errorMessage);
}
/// @notice Returns x - y, reverts if underflows
/// @param x The minuend
/// @param y The subtrahend
/// @return z The difference of x and y
function sub(uint256 x, uint256 y) internal pure returns (uint256 z) {
require((z = x - y) <= x);
}
/// @notice Returns x - y, reverts if underflows
/// @param x The minuend
/// @param y The subtrahend
/// @return z The difference of x and y
function sub(uint256 x, uint256 y, string memory errorMessage) internal pure returns (uint256 z) {
require((z = x - y) <= x, errorMessage);
}
/// @notice Returns x * y, reverts if overflows
/// @param x The multiplicand
/// @param y The multiplier
/// @return z The product of x and y
function mul(uint256 x, uint256 y) internal pure returns (uint256 z) {
require(x == 0 || (z = x * y) / x == y);
}
/// @notice Returns x * y, reverts if overflows
/// @param x The multiplicand
/// @param y The multiplier
/// @return z The product of x and y
function mul(uint256 x, uint256 y, string memory errorMessage) internal pure returns (uint256 z) {
require(x == 0 || (z = x * y) / x == y, errorMessage);
}
}// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.0;
import "../interfaces/IERC20.sol";
/************************************************************************************************
Originally from https://github.com/Uniswap/uniswap-v3-periphery/blob/main/contracts/libraries/TransferHelper.sol
This source code has been modified from the original, which was copied from the github repository
at commit hash 6a31c618fc3180a6ee945b869d1ce4449f253ee6.
Subject to the GPL-2.0-or-later license
*************************************************************************************************/
library TransferHelper {
function safeTransferFrom(
address token,
address from,
address to,
uint256 value
) internal {
(bool success, bytes memory data) =
token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), "STF");
}
function safeTransfer(
address token,
address to,
uint256 value
) internal {
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), "ST");
}
function safeTransferETH(address to, uint256 value) internal {
(bool success, ) = to.call{value: value}(new bytes(0));
require(success, "STE");
}
}{
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "none",
"useLiteralContent": true
},
"optimizer": {
"enabled": true,
"runs": 800
},
"remappings": [],
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"depositToken_","type":"address"},{"internalType":"address","name":"dividendsToken_","type":"address"},{"internalType":"uint32","name":"minLockDuration_","type":"uint32"},{"internalType":"uint32","name":"maxLockDuration_","type":"uint32"},{"internalType":"uint256","name":"minEarlyWithdrawalFee_","type":"uint256"},{"internalType":"uint256","name":"baseEarlyWithdrawalFee_","type":"uint256"},{"internalType":"uint256","name":"maxDividendsBonusMultiplier_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"EmergencyUnlockTriggered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeRecipient","type":"address"}],"name":"FeeRecipientSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeesReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeesTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"lockId","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountLocked","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dividendShares","type":"uint256"},{"indexed":false,"internalType":"uint32","name":"duration","type":"uint32"}],"name":"LockCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"lockId","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dividendShares","type":"uint256"}],"name":"LockDestroyed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"minimumDeposit","type":"uint256"}],"name":"MinimumDepositSet","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":"uint256","name":"lockId","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dividendShares","type":"uint256"}],"name":"PartialWithdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"module","type":"address"}],"name":"SubDelegationModuleCreated","type":"event"},{"inputs":[],"name":"baseEarlyWithdrawalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint32","name":"duration","type":"uint32"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"lockId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"lockId","type":"uint256"}],"name":"destroyLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dividendsToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyUnlockTriggered","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"getDividendsMultiplier","outputs":[{"internalType":"uint256","name":"multiplier","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLocksLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lockedAt","type":"uint256"},{"internalType":"uint256","name":"lockDuration","type":"uint256"}],"name":"getWithdrawalParameters","outputs":[{"internalType":"uint256","name":"dividendShares","type":"uint256"},{"internalType":"uint256","name":"earlyWithdrawalFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"locks","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint32","name":"lockedAt","type":"uint32"},{"internalType":"uint32","name":"lockDuration","type":"uint32"},{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxDividendsBonusMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLockDuration","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minEarlyWithdrawalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minLockDuration","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumDeposit","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"moduleImplementation","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":"pendingFees","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"feeRecipient_","type":"address"}],"name":"setFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"minimumDeposit_","type":"uint96"}],"name":"setMinimumDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"subDelegationModuleForUser","outputs":[{"internalType":"contract ISubDelegationModule","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"triggerEmergencyUnlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lockId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6101806040523480156200001257600080fd5b50604051620024d1380380620024d1833981016040819052620000359162000257565b6001600160601b0319606088901b1660a05260405187908190620000599062000217565b6001600160a01b03909116815260405190819003602001906000f08015801562000087573d6000803e3d6000fd5b5060601b6001600160601b031916608052506000620000a5620001d5565b600180546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160601b0319606087901b1660c05263ffffffff80851690861610620001395760405162461bcd60e51b81526004016200013090620002d0565b60405180910390fd5b6ec097ce7bc90715b34b9f10000000006200017c620001678385620001d960201b6200118d1790919060201c565b856200020660201b620011b71790919060201c565b11156200019d5760405162461bcd60e51b81526004016200013090620002f2565b6001600160e01b031960e095861b811686529390941b9092166101005261016092909252610120919091526101405250620003129050565b3390565b6000821580620001f657505081810281838281620001f357fe5b04145b6200020057600080fd5b92915050565b808201828110156200020057600080fd5b6103b0806200212183390190565b80516001600160a01b03811681146200023d57600080fd5b919050565b805163ffffffff811681146200023d57600080fd5b600080600080600080600060e0888a03121562000272578283fd5b6200027d8862000225565b96506200028d6020890162000225565b95506200029d6040890162000242565b9450620002ad6060890162000242565b93506080880151925060a0880151915060c0880151905092959891949750929550565b6020808252600890820152670dad2dc7c7adac2f60c31b604082015260600190565b6020808252600690820152656d617846656560d01b604082015260600190565b60805160601c60a05160601c60c05160601c60e05160e01c6101005160e01c610120516101405161016051611d5c620003c560003980610646528061076652508061039e5280610ee7525080610b0a5280610e9952508061069d52806107075280610cea52508061066c52806106e652806107335280610f3f52508061047f5280610d0e52806112f3525080610da95280610e0d52806111e1528061137d525080610a01528061163c5250611d5c6000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80636fcb2fac116100f9578063bb57ad2011610097578063d6a298e911610071578063d6a298e91461033b578063e74b981b14610343578063f2fde38b14610356578063f4dadc6114610369576101c4565b8063bb57ad201461030a578063c89039c514610312578063d592800a1461031a576101c4565b806385ec38a2116100d357806385ec38a2146102d25780638da5cb5b146102e5578063a16cdbb1146102ed578063b7b9054a14610302576101c4565b80636fcb2fac146102af578063715018a6146102b757806375e79dfd146102bf576101c4565b806346904840116101665780635c86eba2116101405780635c86eba214610284578063636bfbab1461029757806367ed89221461029f5780636b4553eb146102a7576101c4565b80634690484014610254578063489c18b0146102695780635c19a95c14610271576101c4565b80632b2dfd2c116101a25780632b2dfd2c146102115780632c1fea78146102245780633f74525c1461022c578063441a3e701461023f576101c4565b80630f705a10146101c95780631ef38425146101e7578063224438d1146101fc575b600080fd5b6101d161038c565b6040516101de9190611af8565b60405180910390f35b6101ef61039c565b6040516101de9190611ca1565b6102046103c0565b6040516101de9190611d10565b6101ef61021f366004611a68565b6103d4565b6101ef610644565b6101ef61023a366004611a04565b610668565b61025261024d366004611a1c565b6107b5565b005b61025c61099a565b6040516101de9190611acb565b6101ef6109a9565b61025261027f3660046119d6565b6109af565b610252610292366004611a04565b6109bc565b6102046109e4565b61025c6109ff565b610252610a23565b6101ef610b08565b610252610b2c565b61025c6102cd3660046119d6565b610bea565b6102526102e0366004611a9f565b610c05565b61025c610cd9565b6102f5610ce8565b6040516101de9190611cff565b61025c610d0c565b610252610d30565b61025c610e0b565b61032d610328366004611a3d565b610e2f565b6040516101de929190611caa565b6102f5610f3d565b6102526103513660046119d6565b610f61565b6102526103643660046119d6565b611020565b61037c610377366004611a04565b611135565b6040516101de9493929190611cd4565b600454600160601b900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b6004546bffffffffffffffffffffffff1681565b600354600090600160a01b90046bffffffffffffffffffffffff168310156104175760405162461bcd60e51b815260040161040e90611ba8565b60405180910390fd5b600454600160601b900460ff16156104415760405162461bcd60e51b815260040161040e90611b71565b61044b33846111c7565b600061045c8363ffffffff16610668565b90506000670de0b6b3a7640000610473868461118d565b8161047a57fe5b0490507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340c10f1933836040518363ffffffff1660e01b81526004016104cb929190611adf565b600060405180830381600087803b1580156104e557600080fd5b505af11580156104f9573d6000803e3d6000fd5b505060028054604080516080810182528a815263ffffffff428116602083019081528b82168385019081523360608501818152600188018955600089905294519787027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace81019890985591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf9097018054915194516001600160a01b031668010000000000000000027fffffffff0000000000000000000000000000000000000000ffffffffffffffff9585166401000000000267ffffffff00000000199990951663ffffffff199093169290921797909716929092179290921617909355519096509092508591507f64da4fca99b77cd3e9e793572df82cec7f25a4e384041f26ba2107c3504db92f9061063490899086908a90611cb8565b60405180910390a3505092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f000000000000000000000000000000000000000000000000000000000000000063ffffffff1682101580156106c657507f000000000000000000000000000000000000000000000000000000000000000063ffffffff168211155b6106e25760405162461bcd60e51b815260040161040e90611bdf565b60007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000000363ffffffff16905060007f000000000000000000000000000000000000000000000000000000000000000063ffffffff16840390506107ab82610793837f000000000000000000000000000000000000000000000000000000000000000061118d90919063ffffffff16565b8161079a57fe5b670de0b6b3a76400009190046111b7565b925050505b919050565b6000600283815481106107c457fe5b906000526020600020906002020190508060010160089054906101000a90046001600160a01b03166001600160a01b0316336001600160a01b03161461081c5760405162461bcd60e51b815260040161040e90611c6a565b60408051808201909152601a81527f696e73756666696369656e74206c6f636b656420746f6b656e730000000000006020820152815461085d91849061120e565b80825560408051608081018252918252600183015463ffffffff8082166020850152640100000000820416918301919091526801000000000000000090046001600160a01b0316606082015260009081906108b890856112a6565b8454919350915061094e57600285815481106108d057fe5b60009182526020822060029091020190815560010180547fffffffff00000000000000000000000000000000000000000000000000000000169055604051339086907f848eb69947bbdedee397bd49ef03eeaee3e02f46c7b976f1ad40506ff1ee959b906109419086908690611caa565b60405180910390a3610993565b336001600160a01b0316857fa96e2506faef44a4c72b6ef256b777774d2e569a022e8dc4e8fad0f71e39484f848460405161098a929190611caa565b60405180910390a35b5050505050565b6003546001600160a01b031681565b60025490565b6109b93382611442565b50565b6109b981600283815481106109cd57fe5b9060005260206000209060020201600001546107b5565b600354600160a01b90046bffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b610a2b6114b7565b6001600160a01b0316610a3c610cd9565b6001600160a01b031614610a97576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600454600160601b900460ff1615610ac15760405162461bcd60e51b815260040161040e90611c33565b600480546cff0000000000000000000000001916600160601b1790556040517f1ab39014662150baa4fb9ef173df0198a743512e5a29a99d47216460de913e1e90600090a1565b7f000000000000000000000000000000000000000000000000000000000000000081565b610b346114b7565b6001600160a01b0316610b45610cd9565b6001600160a01b031614610ba0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b6000602081905290815260409020546001600160a01b031681565b610c0d6114b7565b6001600160a01b0316610c1e610cd9565b6001600160a01b031614610c79576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600380546001600160a01b0316600160a01b6bffffffffffffffffffffffff8416021790556040517fca2e9e3e71d8dcab383b61e219dc9f736ee812dbb08aff666933b85949553d3990610cce908390611d10565b60405180910390a150565b6001546001600160a01b031690565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6003546001600160a01b031680610d595760405162461bcd60e51b815260040161040e90611b03565b6004546bffffffffffffffffffffffff1680610d875760405162461bcd60e51b815260040161040e90611bfc565b600480546bffffffffffffffffffffffff19169055610dd06001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683836114bb565b7f7a845d9ff115a67119400d0d4fb3a54b18d744a32c3180ecb8e2f15d14af63ef81604051610dff9190611ca1565b60405180910390a15050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000806000610e3d84610668565b9050670de0b6b3a7640000610e52878361118d565b81610e5957fe5b0492508484014281111580610e775750600454600160601b900460ff165b15610e855760009250610f33565b4281036000670de0b6b3a7640000610ebd8a7f000000000000000000000000000000000000000000000000000000000000000061118d565b81610ec457fe5b04905060006ec097ce7bc90715b34b9f10000000008802610f19610f1287610f0c7f00000000000000000000000000000000000000000000000000000000000000008861118d565b9061118d565b8c9061118d565b81610f2057fe5b049050610f2d82826111b7565b95505050505b5050935093915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610f696114b7565b6001600160a01b0316610f7a610cd9565b6001600160a01b031614610fd5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0383161790556040517fbf9a9534339a9d6b81696e05dcfb614b7dc518a31d48be3cfb757988381fb32390610cce908390611acb565b6110286114b7565b6001600160a01b0316611039610cd9565b6001600160a01b031614611094576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166110d95760405162461bcd60e51b8152600401808060200182810382526026815260200180611d2a6026913960400191505060405180910390fd5b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6002818154811061114557600080fd5b60009182526020909120600290910201805460019091015490915063ffffffff808216916401000000008104909116906801000000000000000090046001600160a01b031684565b60008215806111a8575050818102818382816111a557fe5b04145b6111b157600080fd5b92915050565b808201828110156111b157600080fd5b60006111d283611617565b90506112096001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001684838561172a565b505050565b818303818482111561129e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561126357818101518382015260200161124b565b50505050905090810190601f1680156112905780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b509392505050565b60008060006112ca84866020015163ffffffff16876040015163ffffffff16610e2f565b90925090506112d98482611897565b604051632770a7eb60e21b81529093506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690639dc29fac9061132a9033908690600401611adf565b600060405180830381600087803b15801561134457600080fd5b505af1158015611358573d6000803e3d6000fd5b50505050600081111561142f576113703330866118a7565b6113a46001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633856114bb565b6004546113c8906113c3906bffffffffffffffffffffffff16836111b7565b611924565b600480546bffffffffffffffffffffffff19166bffffffffffffffffffffffff929092169190911790556040517f91b044947b8ab661360de0aedacf8d16ad45adfb1f3bafb2ac8c4633e297b97190611422908390611ca1565b60405180910390a161143a565b61143a3333866118a7565b509250929050565b6001600160a01b038083166000908152602081905260408082205481516317066a5760e21b8152858516600482015291519316928392635c19a95c926024808201939182900301818387803b15801561149a57600080fd5b505af11580156114ae573d6000803e3d6000fd5b50505050505050565b3390565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b1781529251825160009485949389169392918291908083835b6020831061154c5780518252601f19909201916020918201910161152d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146115ae576040519150601f19603f3d011682016040523d82523d6000602084013e6115b3565b606091505b50915091508180156115e15750805115806115e157508080602001905160208110156115de57600080fd5b50515b610993576040805162461bcd60e51b815260206004820152600260248201526114d560f21b604482015290519081900360640190fd5b6001600160a01b0380821660009081526020819052604090205416806107b0576116607f000000000000000000000000000000000000000000000000000000000000000061194d565b6001600160a01b0383811660008181526020819052604080822080546001600160a01b031916948616948517905580516317066a5760e21b81526004810193909352519394509192635c19a95c9260248084019391929182900301818387803b1580156116cc57600080fd5b505af11580156116e0573d6000803e3d6000fd5b5050604080516001600160a01b038581168252915191861693507fec4b64bbbb122cb7400132394863e2f4c78d1f00ecf6024caf618cdee5a978ca925081900360200190a2919050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b178152925182516000948594938a169392918291908083835b602083106117c35780518252601f1990920191602091820191016117a4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611825576040519150601f19603f3d011682016040523d82523d6000602084013e61182a565b606091505b5091509150818015611858575080511580611858575080806020019051602081101561185557600080fd5b50515b61188f576040805162461bcd60e51b815260206004820152600360248201526229aa2360e91b604482015290519081900360640190fd5b505050505050565b808203828111156111b157600080fd5b6001600160a01b0380841660009081526020819052604080822054815163a9059cbb60e01b81528685166004820152602481018690529151931692839263a9059cbb926044808201939182900301818387803b15801561190657600080fd5b505af115801561191a573d6000803e3d6000fd5b5050505050505050565b6000600160601b82106119495760405162461bcd60e51b815260040161040e90611b3a565b5090565b60408051604880825260808201909252600091829190602082018180368337019050509050602081017f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f0949350505050565b6000602082840312156119e7578081fd5b81356001600160a01b03811681146119fd578182fd5b9392505050565b600060208284031215611a15578081fd5b5035919050565b60008060408385031215611a2e578081fd5b50508035926020909101359150565b600080600060608486031215611a51578081fd5b505081359360208301359350604090920135919050565b60008060408385031215611a7a578182fd5b82359150602083013563ffffffff81168114611a94578182fd5b809150509250929050565b600060208284031215611ab0578081fd5b81356bffffffffffffffffffffffff811681146119fd578182fd5b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6020808252600c908201527f6e6f20726563697069656e740000000000000000000000000000000000000000604082015260600190565b60208082526016908201527f616d6f756e742065786365656473203936206269747300000000000000000000604082015260600190565b60208082526010908201527f6465706f7369747320626c6f636b656400000000000000000000000000000000604082015260600190565b6020808252600b908201527f6d696e206465706f736974000000000000000000000000000000000000000000604082015260600190565b60208082526003908201526227a7a160e91b604082015260600190565b60208082526007908201527f6e6f206665657300000000000000000000000000000000000000000000000000604082015260600190565b60208082526011908201527f616c726561647920747269676765726564000000000000000000000000000000604082015260600190565b60208082526006908201527f216f776e65720000000000000000000000000000000000000000000000000000604082015260600190565b90815260200190565b918252602082015260400190565b928352602083019190915263ffffffff16604082015260600190565b93845263ffffffff9283166020850152911660408301526001600160a01b0316606082015260800190565b63ffffffff91909116815260200190565b6bffffffffffffffffffffffff9190911681526020019056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a164736f6c6343000706000a60c060405234801561001057600080fd5b506040516103b03803806103b08339818101604052602081101561003357600080fd5b5051606081811b6001600160601b031916608052339081901b60a0526001600160a01b039091169061032561008b6000398060dc52806101cd52806102d252508061013a528061022b52806102f652506103256000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80635c19a95c14610051578063a9059cbb14610079578063b86d5298146100a5578063fc0c546a146100c9575b600080fd5b6100776004803603602081101561006757600080fd5b50356001600160a01b03166100d1565b005b6100776004803603604081101561008f57600080fd5b506001600160a01b0381351690602001356101c2565b6100ad6102d0565b604080516001600160a01b039092168252519081900360200190f35b6100ad6102f4565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610138576040805162461bcd60e51b8152602060048201526007602482015266216d6f64756c6560c81b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c19a95c826040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b1580156101a757600080fd5b505af11580156101bb573d6000803e3d6000fd5b5050505050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610229576040805162461bcd60e51b8152602060048201526007602482015266216d6f64756c6560c81b604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156102a057600080fd5b505af11580156102b4573d6000803e3d6000fd5b505050506040513d60208110156102ca57600080fd5b50505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f00000000000000000000000000000000000000000000000000000000000000008156fea164736f6c6343000706000a00000000000000000000000086772b1409b61c639eaac9ba0acfbb6e238e5f83000000000000000000000000262cd9adce436b6827c01291b84f1871fb8b95a3000000000000000000000000000000000000000000000000000000000076a7000000000000000000000000000000000000000000000000000000000001da9c00000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000002c68af0bb14000000000000000000000000000000000000000000000000000029a2241af62c0000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80636fcb2fac116100f9578063bb57ad2011610097578063d6a298e911610071578063d6a298e91461033b578063e74b981b14610343578063f2fde38b14610356578063f4dadc6114610369576101c4565b8063bb57ad201461030a578063c89039c514610312578063d592800a1461031a576101c4565b806385ec38a2116100d357806385ec38a2146102d25780638da5cb5b146102e5578063a16cdbb1146102ed578063b7b9054a14610302576101c4565b80636fcb2fac146102af578063715018a6146102b757806375e79dfd146102bf576101c4565b806346904840116101665780635c86eba2116101405780635c86eba214610284578063636bfbab1461029757806367ed89221461029f5780636b4553eb146102a7576101c4565b80634690484014610254578063489c18b0146102695780635c19a95c14610271576101c4565b80632b2dfd2c116101a25780632b2dfd2c146102115780632c1fea78146102245780633f74525c1461022c578063441a3e701461023f576101c4565b80630f705a10146101c95780631ef38425146101e7578063224438d1146101fc575b600080fd5b6101d161038c565b6040516101de9190611af8565b60405180910390f35b6101ef61039c565b6040516101de9190611ca1565b6102046103c0565b6040516101de9190611d10565b6101ef61021f366004611a68565b6103d4565b6101ef610644565b6101ef61023a366004611a04565b610668565b61025261024d366004611a1c565b6107b5565b005b61025c61099a565b6040516101de9190611acb565b6101ef6109a9565b61025261027f3660046119d6565b6109af565b610252610292366004611a04565b6109bc565b6102046109e4565b61025c6109ff565b610252610a23565b6101ef610b08565b610252610b2c565b61025c6102cd3660046119d6565b610bea565b6102526102e0366004611a9f565b610c05565b61025c610cd9565b6102f5610ce8565b6040516101de9190611cff565b61025c610d0c565b610252610d30565b61025c610e0b565b61032d610328366004611a3d565b610e2f565b6040516101de929190611caa565b6102f5610f3d565b6102526103513660046119d6565b610f61565b6102526103643660046119d6565b611020565b61037c610377366004611a04565b611135565b6040516101de9493929190611cd4565b600454600160601b900460ff1681565b7f00000000000000000000000000000000000000000000000002c68af0bb14000081565b6004546bffffffffffffffffffffffff1681565b600354600090600160a01b90046bffffffffffffffffffffffff168310156104175760405162461bcd60e51b815260040161040e90611ba8565b60405180910390fd5b600454600160601b900460ff16156104415760405162461bcd60e51b815260040161040e90611b71565b61044b33846111c7565b600061045c8363ffffffff16610668565b90506000670de0b6b3a7640000610473868461118d565b8161047a57fe5b0490507f000000000000000000000000262cd9adce436b6827c01291b84f1871fb8b95a36001600160a01b03166340c10f1933836040518363ffffffff1660e01b81526004016104cb929190611adf565b600060405180830381600087803b1580156104e557600080fd5b505af11580156104f9573d6000803e3d6000fd5b505060028054604080516080810182528a815263ffffffff428116602083019081528b82168385019081523360608501818152600188018955600089905294519787027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace81019890985591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf9097018054915194516001600160a01b031668010000000000000000027fffffffff0000000000000000000000000000000000000000ffffffffffffffff9585166401000000000267ffffffff00000000199990951663ffffffff199093169290921797909716929092179290921617909355519096509092508591507f64da4fca99b77cd3e9e793572df82cec7f25a4e384041f26ba2107c3504db92f9061063490899086908a90611cb8565b60405180910390a3505092915050565b7f00000000000000000000000000000000000000000000000029a2241af62c000081565b60007f000000000000000000000000000000000000000000000000000000000076a70063ffffffff1682101580156106c657507f0000000000000000000000000000000000000000000000000000000001da9c0063ffffffff168211155b6106e25760405162461bcd60e51b815260040161040e90611bdf565b60007f000000000000000000000000000000000000000000000000000000000076a7007f0000000000000000000000000000000000000000000000000000000001da9c000363ffffffff16905060007f000000000000000000000000000000000000000000000000000000000076a70063ffffffff16840390506107ab82610793837f00000000000000000000000000000000000000000000000029a2241af62c000061118d90919063ffffffff16565b8161079a57fe5b670de0b6b3a76400009190046111b7565b925050505b919050565b6000600283815481106107c457fe5b906000526020600020906002020190508060010160089054906101000a90046001600160a01b03166001600160a01b0316336001600160a01b03161461081c5760405162461bcd60e51b815260040161040e90611c6a565b60408051808201909152601a81527f696e73756666696369656e74206c6f636b656420746f6b656e730000000000006020820152815461085d91849061120e565b80825560408051608081018252918252600183015463ffffffff8082166020850152640100000000820416918301919091526801000000000000000090046001600160a01b0316606082015260009081906108b890856112a6565b8454919350915061094e57600285815481106108d057fe5b60009182526020822060029091020190815560010180547fffffffff00000000000000000000000000000000000000000000000000000000169055604051339086907f848eb69947bbdedee397bd49ef03eeaee3e02f46c7b976f1ad40506ff1ee959b906109419086908690611caa565b60405180910390a3610993565b336001600160a01b0316857fa96e2506faef44a4c72b6ef256b777774d2e569a022e8dc4e8fad0f71e39484f848460405161098a929190611caa565b60405180910390a35b5050505050565b6003546001600160a01b031681565b60025490565b6109b93382611442565b50565b6109b981600283815481106109cd57fe5b9060005260206000209060020201600001546107b5565b600354600160a01b90046bffffffffffffffffffffffff1681565b7f0000000000000000000000004ee7b181fc43d45c8cf259bd8749f249ba90f72381565b610a2b6114b7565b6001600160a01b0316610a3c610cd9565b6001600160a01b031614610a97576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600454600160601b900460ff1615610ac15760405162461bcd60e51b815260040161040e90611c33565b600480546cff0000000000000000000000001916600160601b1790556040517f1ab39014662150baa4fb9ef173df0198a743512e5a29a99d47216460de913e1e90600090a1565b7f000000000000000000000000000000000000000000000000016345785d8a000081565b610b346114b7565b6001600160a01b0316610b45610cd9565b6001600160a01b031614610ba0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b6000602081905290815260409020546001600160a01b031681565b610c0d6114b7565b6001600160a01b0316610c1e610cd9565b6001600160a01b031614610c79576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600380546001600160a01b0316600160a01b6bffffffffffffffffffffffff8416021790556040517fca2e9e3e71d8dcab383b61e219dc9f736ee812dbb08aff666933b85949553d3990610cce908390611d10565b60405180910390a150565b6001546001600160a01b031690565b7f0000000000000000000000000000000000000000000000000000000001da9c0081565b7f000000000000000000000000262cd9adce436b6827c01291b84f1871fb8b95a381565b6003546001600160a01b031680610d595760405162461bcd60e51b815260040161040e90611b03565b6004546bffffffffffffffffffffffff1680610d875760405162461bcd60e51b815260040161040e90611bfc565b600480546bffffffffffffffffffffffff19169055610dd06001600160a01b037f00000000000000000000000086772b1409b61c639eaac9ba0acfbb6e238e5f831683836114bb565b7f7a845d9ff115a67119400d0d4fb3a54b18d744a32c3180ecb8e2f15d14af63ef81604051610dff9190611ca1565b60405180910390a15050565b7f00000000000000000000000086772b1409b61c639eaac9ba0acfbb6e238e5f8381565b6000806000610e3d84610668565b9050670de0b6b3a7640000610e52878361118d565b81610e5957fe5b0492508484014281111580610e775750600454600160601b900460ff165b15610e855760009250610f33565b4281036000670de0b6b3a7640000610ebd8a7f000000000000000000000000000000000000000000000000016345785d8a000061118d565b81610ec457fe5b04905060006ec097ce7bc90715b34b9f10000000008802610f19610f1287610f0c7f00000000000000000000000000000000000000000000000002c68af0bb1400008861118d565b9061118d565b8c9061118d565b81610f2057fe5b049050610f2d82826111b7565b95505050505b5050935093915050565b7f000000000000000000000000000000000000000000000000000000000076a70081565b610f696114b7565b6001600160a01b0316610f7a610cd9565b6001600160a01b031614610fd5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0383161790556040517fbf9a9534339a9d6b81696e05dcfb614b7dc518a31d48be3cfb757988381fb32390610cce908390611acb565b6110286114b7565b6001600160a01b0316611039610cd9565b6001600160a01b031614611094576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166110d95760405162461bcd60e51b8152600401808060200182810382526026815260200180611d2a6026913960400191505060405180910390fd5b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6002818154811061114557600080fd5b60009182526020909120600290910201805460019091015490915063ffffffff808216916401000000008104909116906801000000000000000090046001600160a01b031684565b60008215806111a8575050818102818382816111a557fe5b04145b6111b157600080fd5b92915050565b808201828110156111b157600080fd5b60006111d283611617565b90506112096001600160a01b037f00000000000000000000000086772b1409b61c639eaac9ba0acfbb6e238e5f831684838561172a565b505050565b818303818482111561129e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561126357818101518382015260200161124b565b50505050905090810190601f1680156112905780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b509392505050565b60008060006112ca84866020015163ffffffff16876040015163ffffffff16610e2f565b90925090506112d98482611897565b604051632770a7eb60e21b81529093506001600160a01b037f000000000000000000000000262cd9adce436b6827c01291b84f1871fb8b95a31690639dc29fac9061132a9033908690600401611adf565b600060405180830381600087803b15801561134457600080fd5b505af1158015611358573d6000803e3d6000fd5b50505050600081111561142f576113703330866118a7565b6113a46001600160a01b037f00000000000000000000000086772b1409b61c639eaac9ba0acfbb6e238e5f831633856114bb565b6004546113c8906113c3906bffffffffffffffffffffffff16836111b7565b611924565b600480546bffffffffffffffffffffffff19166bffffffffffffffffffffffff929092169190911790556040517f91b044947b8ab661360de0aedacf8d16ad45adfb1f3bafb2ac8c4633e297b97190611422908390611ca1565b60405180910390a161143a565b61143a3333866118a7565b509250929050565b6001600160a01b038083166000908152602081905260408082205481516317066a5760e21b8152858516600482015291519316928392635c19a95c926024808201939182900301818387803b15801561149a57600080fd5b505af11580156114ae573d6000803e3d6000fd5b50505050505050565b3390565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b1781529251825160009485949389169392918291908083835b6020831061154c5780518252601f19909201916020918201910161152d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146115ae576040519150601f19603f3d011682016040523d82523d6000602084013e6115b3565b606091505b50915091508180156115e15750805115806115e157508080602001905160208110156115de57600080fd5b50515b610993576040805162461bcd60e51b815260206004820152600260248201526114d560f21b604482015290519081900360640190fd5b6001600160a01b0380821660009081526020819052604090205416806107b0576116607f0000000000000000000000004ee7b181fc43d45c8cf259bd8749f249ba90f72361194d565b6001600160a01b0383811660008181526020819052604080822080546001600160a01b031916948616948517905580516317066a5760e21b81526004810193909352519394509192635c19a95c9260248084019391929182900301818387803b1580156116cc57600080fd5b505af11580156116e0573d6000803e3d6000fd5b5050604080516001600160a01b038581168252915191861693507fec4b64bbbb122cb7400132394863e2f4c78d1f00ecf6024caf618cdee5a978ca925081900360200190a2919050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b178152925182516000948594938a169392918291908083835b602083106117c35780518252601f1990920191602091820191016117a4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611825576040519150601f19603f3d011682016040523d82523d6000602084013e61182a565b606091505b5091509150818015611858575080511580611858575080806020019051602081101561185557600080fd5b50515b61188f576040805162461bcd60e51b815260206004820152600360248201526229aa2360e91b604482015290519081900360640190fd5b505050505050565b808203828111156111b157600080fd5b6001600160a01b0380841660009081526020819052604080822054815163a9059cbb60e01b81528685166004820152602481018690529151931692839263a9059cbb926044808201939182900301818387803b15801561190657600080fd5b505af115801561191a573d6000803e3d6000fd5b5050505050505050565b6000600160601b82106119495760405162461bcd60e51b815260040161040e90611b3a565b5090565b60408051604880825260808201909252600091829190602082018180368337019050509050602081017f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f0949350505050565b6000602082840312156119e7578081fd5b81356001600160a01b03811681146119fd578182fd5b9392505050565b600060208284031215611a15578081fd5b5035919050565b60008060408385031215611a2e578081fd5b50508035926020909101359150565b600080600060608486031215611a51578081fd5b505081359360208301359350604090920135919050565b60008060408385031215611a7a578182fd5b82359150602083013563ffffffff81168114611a94578182fd5b809150509250929050565b600060208284031215611ab0578081fd5b81356bffffffffffffffffffffffff811681146119fd578182fd5b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6020808252600c908201527f6e6f20726563697069656e740000000000000000000000000000000000000000604082015260600190565b60208082526016908201527f616d6f756e742065786365656473203936206269747300000000000000000000604082015260600190565b60208082526010908201527f6465706f7369747320626c6f636b656400000000000000000000000000000000604082015260600190565b6020808252600b908201527f6d696e206465706f736974000000000000000000000000000000000000000000604082015260600190565b60208082526003908201526227a7a160e91b604082015260600190565b60208082526007908201527f6e6f206665657300000000000000000000000000000000000000000000000000604082015260600190565b60208082526011908201527f616c726561647920747269676765726564000000000000000000000000000000604082015260600190565b60208082526006908201527f216f776e65720000000000000000000000000000000000000000000000000000604082015260600190565b90815260200190565b918252602082015260400190565b928352602083019190915263ffffffff16604082015260600190565b93845263ffffffff9283166020850152911660408301526001600160a01b0316606082015260800190565b63ffffffff91909116815260200190565b6bffffffffffffffffffffffff9190911681526020019056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a164736f6c6343000706000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000086772b1409b61c639eaac9ba0acfbb6e238e5f83000000000000000000000000262cd9adce436b6827c01291b84f1871fb8b95a3000000000000000000000000000000000000000000000000000000000076a7000000000000000000000000000000000000000000000000000000000001da9c00000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000002c68af0bb14000000000000000000000000000000000000000000000000000029a2241af62c0000
-----Decoded View---------------
Arg [0] : depositToken_ (address): 0x86772b1409b61c639EaAc9Ba0AcfBb6E238e5F83
Arg [1] : dividendsToken_ (address): 0x262cd9ADCE436B6827C01291B84f1871FB8b95A3
Arg [2] : minLockDuration_ (uint32): 7776000
Arg [3] : maxLockDuration_ (uint32): 31104000
Arg [4] : minEarlyWithdrawalFee_ (uint256): 100000000000000000
Arg [5] : baseEarlyWithdrawalFee_ (uint256): 200000000000000000
Arg [6] : maxDividendsBonusMultiplier_ (uint256): 3000000000000000000
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 00000000000000000000000086772b1409b61c639eaac9ba0acfbb6e238e5f83
Arg [1] : 000000000000000000000000262cd9adce436b6827c01291b84f1871fb8b95a3
Arg [2] : 000000000000000000000000000000000000000000000000000000000076a700
Arg [3] : 0000000000000000000000000000000000000000000000000000000001da9c00
Arg [4] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [5] : 00000000000000000000000000000000000000000000000002c68af0bb140000
Arg [6] : 00000000000000000000000000000000000000000000000029a2241af62c0000
Loading...
Loading
Loading...
Loading
Net Worth in USD
$18.77
Net Worth in ETH
0.009744
Token Allocations
NDX
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $0.001617 | 11,605.3706 | $18.77 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.