Latest 25 from a total of 9,526 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Claim | 36412151 | 4 hrs ago | IN | 0 ETH | 0.00001761 | ||||
| Claim | 36411244 | 4 hrs ago | IN | 0 ETH | 0.00001348 | ||||
| Claim | 36404382 | 5 hrs ago | IN | 0 ETH | 0.00001163 | ||||
| Claim | 36404364 | 5 hrs ago | IN | 0 ETH | 0.00001544 | ||||
| Claim | 36399394 | 5 hrs ago | IN | 0 ETH | 0.00001848 | ||||
| Claim | 36387072 | 7 hrs ago | IN | 0 ETH | 0.00002406 | ||||
| Claim | 36383441 | 8 hrs ago | IN | 0 ETH | 0.00001623 | ||||
| Claim | 36377872 | 8 hrs ago | IN | 0 ETH | 0.00005916 | ||||
| Claim | 36376191 | 9 hrs ago | IN | 0 ETH | 0.00001631 | ||||
| Claim | 36376162 | 9 hrs ago | IN | 0 ETH | 0.0000221 | ||||
| Claim | 36372442 | 9 hrs ago | IN | 0 ETH | 0.00001779 | ||||
| Claim | 36350507 | 12 hrs ago | IN | 0 ETH | 0.00002398 | ||||
| Claim | 36320200 | 16 hrs ago | IN | 0 ETH | 0.00001562 | ||||
| Claim | 36320174 | 16 hrs ago | IN | 0 ETH | 0.00001555 | ||||
| Claim | 36319613 | 16 hrs ago | IN | 0 ETH | 0.0000305 | ||||
| Claim | 36319607 | 16 hrs ago | IN | 0 ETH | 0.00002015 | ||||
| Claim | 36319585 | 16 hrs ago | IN | 0 ETH | 0.00002629 | ||||
| Claim | 36309210 | 17 hrs ago | IN | 0 ETH | 0.00002278 | ||||
| Claim | 36308841 | 18 hrs ago | IN | 0 ETH | 0.00003063 | ||||
| Claim | 36299086 | 19 hrs ago | IN | 0 ETH | 0.00004853 | ||||
| Claim | 36298176 | 19 hrs ago | IN | 0 ETH | 0.00000425 | ||||
| Claim | 36298113 | 19 hrs ago | IN | 0 ETH | 0.00002398 | ||||
| Claim | 36294287 | 20 hrs ago | IN | 0 ETH | 0.00006114 | ||||
| Claim | 36290262 | 20 hrs ago | IN | 0 ETH | 0.00001356 | ||||
| Claim | 36285615 | 21 hrs ago | IN | 0 ETH | 0.00001239 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 20528272 | 112 days ago | Contract Creation | 0 ETH |
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:
RewardsDistributor
Compiler Version
v0.8.19+commit.7dd6d404
ZkSolc Version
v1.5.15
Optimization Enabled:
Yes with Mode 3
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.19;
import {Math} from "@openzeppelin/contracts/utils/math/Math.sol";
import {IRewardsDistributor} from "./interfaces/IRewardsDistributor.sol";
import {IVotingEscrow} from "./interfaces/IVotingEscrow.sol";
import {IMinter} from "./interfaces/IMinter.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
/*
* @title Curve Fee Distribution modified for ve(3,3) emissions
* @author Curve Finance, andrecronje
* @author velodrome.finance, @figs999, @pegahcarter
* @license MIT
*/
contract RewardsDistributor is IRewardsDistributor {
using SafeERC20 for IERC20;
/// @inheritdoc IRewardsDistributor
uint256 public constant WEEK = 7 * 86400;
/// @inheritdoc IRewardsDistributor
uint256 public startTime;
/// @inheritdoc IRewardsDistributor
mapping(uint256 => uint256) public timeCursorOf;
/// @inheritdoc IRewardsDistributor
uint256 public lastTokenTime;
uint256[1000000000000000] public tokensPerWeek;
/// @inheritdoc IRewardsDistributor
IVotingEscrow public immutable ve;
/// @inheritdoc IRewardsDistributor
address public token;
/// @inheritdoc IRewardsDistributor
address public minter;
/// @inheritdoc IRewardsDistributor
uint256 public tokenLastBalance;
constructor(address _ve) {
uint256 _t = (block.timestamp / WEEK) * WEEK;
startTime = _t;
lastTokenTime = _t;
ve = IVotingEscrow(_ve);
address _token = ve.token();
token = _token;
minter = msg.sender;
IERC20(_token).safeApprove(_ve, type(uint256).max);
}
function _checkpointToken() internal {
uint256 tokenBalance = IERC20(token).balanceOf(address(this));
uint256 toDistribute = tokenBalance - tokenLastBalance;
tokenLastBalance = tokenBalance;
uint256 t = lastTokenTime;
uint256 sinceLast = block.timestamp - t;
lastTokenTime = block.timestamp;
uint256 thisWeek = (t / WEEK) * WEEK;
uint256 nextWeek = 0;
uint256 timestamp = block.timestamp;
for (uint256 i = 0; i < 20; i++) {
nextWeek = thisWeek + WEEK;
if (timestamp < nextWeek) {
if (sinceLast == 0 && timestamp == t) {
tokensPerWeek[thisWeek] += toDistribute;
} else {
tokensPerWeek[thisWeek] += (toDistribute * (timestamp - t)) / sinceLast;
}
break;
} else {
if (sinceLast == 0 && nextWeek == t) {
tokensPerWeek[thisWeek] += toDistribute;
} else {
tokensPerWeek[thisWeek] += (toDistribute * (nextWeek - t)) / sinceLast;
}
}
t = nextWeek;
thisWeek = nextWeek;
}
emit CheckpointToken(timestamp, toDistribute);
}
/// @inheritdoc IRewardsDistributor
function checkpointToken() external {
if (msg.sender != minter) revert NotMinter();
_checkpointToken();
}
function _claim(uint256 _tokenId, uint256 _lastTokenTime) internal returns (uint256) {
(uint256 toDistribute, uint256 epochStart, uint256 weekCursor) = _claimable(_tokenId, _lastTokenTime);
timeCursorOf[_tokenId] = weekCursor;
if (toDistribute == 0) return 0;
emit Claimed(_tokenId, epochStart, weekCursor, toDistribute);
return toDistribute;
}
function _claimable(
uint256 _tokenId,
uint256 _lastTokenTime
) internal view returns (uint256 toDistribute, uint256 weekCursorStart, uint256 weekCursor) {
uint256 _startTime = startTime;
weekCursor = timeCursorOf[_tokenId];
weekCursorStart = weekCursor;
// case where token does not exist
uint256 maxUserEpoch = ve.userPointEpoch(_tokenId);
if (maxUserEpoch == 0) return (0, weekCursorStart, weekCursor);
// case where token exists but has never been claimed
if (weekCursor == 0) {
IVotingEscrow.UserPoint memory userPoint = ve.userPointHistory(_tokenId, 1);
weekCursor = (userPoint.ts / WEEK) * WEEK;
weekCursorStart = weekCursor;
}
if (weekCursor >= _lastTokenTime) return (0, weekCursorStart, weekCursor);
if (weekCursor < _startTime) weekCursor = _startTime;
for (uint256 i = 0; i < 50; i++) {
if (weekCursor >= _lastTokenTime) break;
uint256 balance = ve.balanceOfNFTAt(_tokenId, weekCursor + WEEK - 1);
uint256 supply = ve.totalSupplyAt(weekCursor + WEEK - 1);
supply = supply == 0 ? 1 : supply;
toDistribute += (balance * tokensPerWeek[weekCursor]) / supply;
weekCursor += WEEK;
}
}
/// @inheritdoc IRewardsDistributor
function claimable(uint256 _tokenId) external view returns (uint256 claimable_) {
uint256 _lastTokenTime = (lastTokenTime / WEEK) * WEEK;
(claimable_, , ) = _claimable(_tokenId, _lastTokenTime);
}
/// @inheritdoc IRewardsDistributor
function claim(uint256 _tokenId) external returns (uint256) {
if (IMinter(minter).activePeriod() < ((block.timestamp / WEEK) * WEEK)) revert UpdatePeriod();
if (ve.escrowType(_tokenId) == IVotingEscrow.EscrowType.LOCKED) revert NotManagedOrNormalNFT();
uint256 _timestamp = block.timestamp;
uint256 _lastTokenTime = lastTokenTime;
_lastTokenTime = (_lastTokenTime / WEEK) * WEEK;
uint256 amount = _claim(_tokenId, _lastTokenTime);
if (amount != 0) {
IVotingEscrow.LockedBalance memory _locked = ve.locked(_tokenId);
if (_timestamp >= _locked.end && !_locked.isPermanent) {
address _owner = ve.ownerOf(_tokenId);
IERC20(token).safeTransfer(_owner, amount);
} else {
ve.depositFor(_tokenId, amount);
}
tokenLastBalance -= amount;
}
return amount;
}
/// @inheritdoc IRewardsDistributor
function claimMany(uint256[] calldata _tokenIds) external returns (bool) {
if (IMinter(minter).activePeriod() < ((block.timestamp / WEEK) * WEEK)) revert UpdatePeriod();
uint256 _timestamp = block.timestamp;
uint256 _lastTokenTime = lastTokenTime;
_lastTokenTime = (_lastTokenTime / WEEK) * WEEK;
uint256 total = 0;
uint256 _length = _tokenIds.length;
for (uint256 i = 0; i < _length; i++) {
uint256 _tokenId = _tokenIds[i];
if (ve.escrowType(_tokenId) == IVotingEscrow.EscrowType.LOCKED) revert NotManagedOrNormalNFT();
if (_tokenId == 0) break;
uint256 amount = _claim(_tokenId, _lastTokenTime);
if (amount != 0) {
IVotingEscrow.LockedBalance memory _locked = ve.locked(_tokenId);
if (_timestamp >= _locked.end && !_locked.isPermanent) {
address _owner = ve.ownerOf(_tokenId);
IERC20(token).safeTransfer(_owner, amount);
} else {
ve.depositFor(_tokenId, amount);
}
total += amount;
}
}
if (total != 0) {
tokenLastBalance -= total;
}
return true;
}
/// @inheritdoc IRewardsDistributor
function setMinter(address _minter) external {
if (msg.sender != minter) revert NotMinter();
minter = _minter;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IERC165, IERC721, IERC721Metadata} from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import {IERC6372} from "@openzeppelin/contracts/interfaces/IERC6372.sol";
import {IERC4906} from "@openzeppelin/contracts/interfaces/IERC4906.sol";
import {IVotes} from "../governance/IVotes.sol";
interface IVotingEscrow is IVotes, IERC4906, IERC6372, IERC721Metadata {
struct LockedBalance {
int128 amount;
uint256 end;
bool isPermanent;
}
struct UserPoint {
int128 bias;
int128 slope; // # -dweight / dt
uint256 ts;
uint256 blk; // block
uint256 permanent;
}
struct GlobalPoint {
int128 bias;
int128 slope; // # -dweight / dt
uint256 ts;
uint256 blk; // block
uint256 permanentLockBalance;
}
/// @notice A checkpoint for recorded delegated voting weights at a certain timestamp
struct Checkpoint {
uint256 fromTimestamp;
address owner;
uint256 delegatedBalance;
uint256 delegatee;
}
enum DepositType {
DEPOSIT_FOR_TYPE,
CREATE_LOCK_TYPE,
INCREASE_LOCK_AMOUNT,
INCREASE_UNLOCK_TIME
}
/// @dev Different types of veNFTs:
/// NORMAL - typical veNFT
/// LOCKED - veNFT which is locked into a MANAGED veNFT
/// MANAGED - veNFT which can accept the deposit of NORMAL veNFTs
enum EscrowType {
NORMAL,
LOCKED,
MANAGED
}
error AlreadyVoted();
error AmountTooBig();
error ERC721ReceiverRejectedTokens();
error ERC721TransferToNonERC721ReceiverImplementer();
error InvalidNonce();
error InvalidSignature();
error InvalidSignatureS();
error InvalidManagedNFTId();
error LockDurationNotInFuture();
error LockDurationTooLong();
error LockExpired();
error LockNotExpired();
error NoLockFound();
error NonExistentToken();
error NotApprovedOrOwner();
error NotDistributor();
error NotEmergencyCouncilOrGovernor();
error NotGovernor();
error NotGovernorOrManager();
error NotManagedNFT();
error NotManagedOrNormalNFT();
error NotLockedNFT();
error NotNormalNFT();
error NotPermanentLock();
error NotOwner();
error NotTeam();
error NotVoter();
error OwnershipChange();
error PermanentLock();
error SameAddress();
error SameNFT();
error SameState();
error SplitNoOwner();
error SplitNotAllowed();
error SignatureExpired();
error TooManyTokenIDs();
error ZeroAddress();
error ZeroAmount();
error ZeroBalance();
event Deposit(
address indexed provider,
uint256 indexed tokenId,
DepositType indexed depositType,
uint256 value,
uint256 locktime,
uint256 ts
);
event Withdraw(address indexed provider, uint256 indexed tokenId, uint256 value, uint256 ts);
event LockPermanent(address indexed _owner, uint256 indexed _tokenId, uint256 amount, uint256 _ts);
event UnlockPermanent(address indexed _owner, uint256 indexed _tokenId, uint256 amount, uint256 _ts);
event Supply(uint256 prevSupply, uint256 supply);
event Merge(
address indexed _sender,
uint256 indexed _from,
uint256 indexed _to,
uint256 _amountFrom,
uint256 _amountTo,
uint256 _amountFinal,
uint256 _locktime,
uint256 _ts
);
event Split(
uint256 indexed _from,
uint256 indexed _tokenId1,
uint256 indexed _tokenId2,
address _sender,
uint256 _splitAmount1,
uint256 _splitAmount2,
uint256 _locktime,
uint256 _ts
);
event CreateManaged(
address indexed _to,
uint256 indexed _mTokenId,
address indexed _from,
address _lockedManagedReward,
address _freeManagedReward
);
event DepositManaged(
address indexed _owner,
uint256 indexed _tokenId,
uint256 indexed _mTokenId,
uint256 _weight,
uint256 _ts
);
event WithdrawManaged(
address indexed _owner,
uint256 indexed _tokenId,
uint256 indexed _mTokenId,
uint256 _weight,
uint256 _ts
);
event SetAllowedManager(address indexed _allowedManager);
// State variables
/// @notice Address of Meta-tx Forwarder
function forwarder() external view returns (address);
/// @notice Address of FactoryRegistry.sol
function factoryRegistry() external view returns (address);
/// @notice Address of token (ABX) used to create a veNFT
function token() external view returns (address);
/// @notice Address of RewardsDistributor.sol
function distributor() external view returns (address);
/// @notice Address of Voter.sol
function voter() external view returns (address);
/// @notice Address of Protocol Team multisig
function team() external view returns (address);
/// @notice Address of art proxy used for on-chain art generation
function artProxy() external view returns (address);
/// @dev address which can create managed NFTs
function allowedManager() external view returns (address);
/// @dev Current count of token
function tokenId() external view returns (uint256);
/*///////////////////////////////////////////////////////////////
MANAGED NFT STORAGE
//////////////////////////////////////////////////////////////*/
/// @dev Mapping of token id to escrow type
/// Takes advantage of the fact default value is EscrowType.NORMAL
function escrowType(uint256 tokenId) external view returns (EscrowType);
/// @dev Mapping of token id to managed id
function idToManaged(uint256 tokenId) external view returns (uint256 managedTokenId);
/// @dev Mapping of user token id to managed token id to weight of token id
function weights(uint256 tokenId, uint256 managedTokenId) external view returns (uint256 weight);
/// @dev Mapping of managed id to deactivated state
function deactivated(uint256 tokenId) external view returns (bool inactive);
/// @dev Mapping from managed nft id to locked managed rewards
/// `token` denominated rewards (rebases/rewards) stored in locked managed rewards contract
/// to prevent co-mingling of assets
function managedToLocked(uint256 tokenId) external view returns (address);
/// @dev Mapping from managed nft id to free managed rewards contract
/// these rewards can be freely withdrawn by users
function managedToFree(uint256 tokenId) external view returns (address);
/*///////////////////////////////////////////////////////////////
MANAGED NFT LOGIC
//////////////////////////////////////////////////////////////*/
/// @notice Create managed NFT (a permanent lock) for use within ecosystem.
/// @dev Throws if address already owns a managed NFT.
/// @return _mTokenId managed token id.
function createManagedLockFor(address _to) external returns (uint256 _mTokenId);
/// @notice Delegates balance to managed nft
/// Note that NFTs deposited into a managed NFT will be re-locked
/// to the maximum lock time on withdrawal.
/// Permanent locks that are deposited will automatically unlock.
/// @dev Managed nft will remain max-locked as long as there is at least one
/// deposit or withdrawal per week.
/// Throws if deposit nft is managed.
/// Throws if recipient nft is not managed.
/// Throws if deposit nft is already locked.
/// Throws if not called by voter.
/// @param _tokenId tokenId of NFT being deposited
/// @param _mTokenId tokenId of managed NFT that will receive the deposit
function depositManaged(uint256 _tokenId, uint256 _mTokenId) external;
/// @notice Retrieves locked rewards and withdraws balance from managed nft.
/// Note that the NFT withdrawn is re-locked to the maximum lock time.
/// @dev Throws if NFT not locked.
/// Throws if not called by voter.
/// @param _tokenId tokenId of NFT being deposited.
function withdrawManaged(uint256 _tokenId) external;
/// @notice Permit one address to call createManagedLockFor() that is not Voter.governor()
function setAllowedManager(address _allowedManager) external;
/// @notice Set Managed NFT state. Inactive NFTs cannot be deposited into.
/// @param _mTokenId managed nft state to set
/// @param _state true => inactive, false => active
function setManagedState(uint256 _mTokenId, bool _state) external;
/*///////////////////////////////////////////////////////////////
METADATA STORAGE
//////////////////////////////////////////////////////////////*/
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function version() external view returns (string memory);
function decimals() external view returns (uint8);
function setTeam(address _team) external;
function setArtProxy(address _proxy) external;
/// @inheritdoc IERC721Metadata
function tokenURI(uint256 tokenId) external view returns (string memory);
/*//////////////////////////////////////////////////////////////
ERC721 BALANCE/OWNER STORAGE
//////////////////////////////////////////////////////////////*/
/// @dev Mapping from owner address to mapping of index to tokenId
function ownerToNFTokenIdList(address _owner, uint256 _index) external view returns (uint256 _tokenId);
/// @inheritdoc IERC721
function ownerOf(uint256 tokenId) external view returns (address owner);
/// @inheritdoc IERC721
function balanceOf(address owner) external view returns (uint256 balance);
/*//////////////////////////////////////////////////////////////
ERC721 APPROVAL STORAGE
//////////////////////////////////////////////////////////////*/
/// @inheritdoc IERC721
function getApproved(uint256 _tokenId) external view returns (address operator);
/// @inheritdoc IERC721
function isApprovedForAll(address owner, address operator) external view returns (bool);
/// @notice Check whether spender is owner or an approved user for a given veNFT
/// @param _spender .
/// @param _tokenId .
function isApprovedOrOwner(address _spender, uint256 _tokenId) external returns (bool);
/*//////////////////////////////////////////////////////////////
ERC721 LOGIC
//////////////////////////////////////////////////////////////*/
/// @inheritdoc IERC721
function approve(address to, uint256 tokenId) external;
/// @inheritdoc IERC721
function setApprovalForAll(address operator, bool approved) external;
/// @inheritdoc IERC721
function transferFrom(address from, address to, uint256 tokenId) external;
/// @inheritdoc IERC721
function safeTransferFrom(address from, address to, uint256 tokenId) external;
/// @inheritdoc IERC721
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
/*//////////////////////////////////////////////////////////////
ERC165 LOGIC
//////////////////////////////////////////////////////////////*/
/// @inheritdoc IERC165
function supportsInterface(bytes4 _interfaceID) external view returns (bool);
/*//////////////////////////////////////////////////////////////
ESCROW STORAGE
//////////////////////////////////////////////////////////////*/
/// @notice Total count of epochs witnessed since contract creation
function epoch() external view returns (uint256);
/// @notice Total amount of token() deposited
function supply() external view returns (uint256);
/// @notice Aggregate permanent locked balances
function permanentLockBalance() external view returns (uint256);
function userPointEpoch(uint256 _tokenId) external view returns (uint256 _epoch);
/// @notice time -> signed slope change
function slopeChanges(uint256 _timestamp) external view returns (int128);
/// @notice account -> can split
function canSplit(address _account) external view returns (bool);
/// @notice Global point history at a given index
function pointHistory(uint256 _loc) external view returns (GlobalPoint memory);
/// @notice Get the LockedBalance (amount, end) of a _tokenId
/// @param _tokenId .
/// @return LockedBalance of _tokenId
function locked(uint256 _tokenId) external view returns (LockedBalance memory);
/// @notice User -> UserPoint[userEpoch]
function userPointHistory(uint256 _tokenId, uint256 _loc) external view returns (UserPoint memory);
/*//////////////////////////////////////////////////////////////
ESCROW LOGIC
//////////////////////////////////////////////////////////////*/
/// @notice Record global data to checkpoint
function checkpoint() external;
/// @notice Deposit `_value` tokens for `_tokenId` and add to the lock
/// @dev Anyone (even a smart contract) can deposit for someone else, but
/// cannot extend their locktime and deposit for a brand new user
/// @param _tokenId lock NFT
/// @param _value Amount to add to user's lock
function depositFor(uint256 _tokenId, uint256 _value) external;
/// @notice Deposit `_value` tokens for `msg.sender` and lock for `_lockDuration`
/// @param _value Amount to deposit
/// @param _lockDuration Number of seconds to lock tokens for (rounded down to nearest week)
/// @return TokenId of created veNFT
function createLock(uint256 _value, uint256 _lockDuration) external returns (uint256);
/// @notice Deposit `_value` tokens for `_to` and lock for `_lockDuration`
/// @param _value Amount to deposit
/// @param _lockDuration Number of seconds to lock tokens for (rounded down to nearest week)
/// @param _to Address to deposit
/// @return TokenId of created veNFT
function createLockFor(uint256 _value, uint256 _lockDuration, address _to) external returns (uint256);
/// @notice Deposit `_value` additional tokens for `_tokenId` without modifying the unlock time
/// @param _value Amount of tokens to deposit and add to the lock
function increaseAmount(uint256 _tokenId, uint256 _value) external;
/// @notice Extend the unlock time for `_tokenId`
/// Cannot extend lock time of permanent locks
/// @param _lockDuration New number of seconds until tokens unlock
function increaseUnlockTime(uint256 _tokenId, uint256 _lockDuration) external;
/// @notice Withdraw all tokens for `_tokenId`
/// @dev Only possible if the lock is both expired and not permanent
/// This will burn the veNFT. Any rebases or rewards that are unclaimed
/// will no longer be claimable. Claim all rebases and rewards prior to calling this.
function withdraw(uint256 _tokenId) external;
/// @notice Merges `_from` into `_to`.
/// @dev Cannot merge `_from` locks that are permanent or have already voted this epoch.
/// Cannot merge `_to` locks that have already expired.
/// This will burn the veNFT. Any rebases or rewards that are unclaimed
/// will no longer be claimable. Claim all rebases and rewards prior to calling this.
/// @param _from VeNFT to merge from.
/// @param _to VeNFT to merge into.
function merge(uint256 _from, uint256 _to) external;
/// @notice Splits veNFT into two new veNFTS - one with oldLocked.amount - `_amount`, and the second with `_amount`
/// @dev This burns the tokenId of the target veNFT
/// Callable by approved or owner
/// If this is called by approved, approved will not have permissions to manipulate the newly created veNFTs
/// Returns the two new split veNFTs to owner
/// If `from` is permanent, will automatically dedelegate.
/// This will burn the veNFT. Any rebases or rewards that are unclaimed
/// will no longer be claimable. Claim all rebases and rewards prior to calling this.
/// @param _from VeNFT to split.
/// @param _amount Amount to split from veNFT.
/// @return _tokenId1 Return tokenId of veNFT with oldLocked.amount - `_amount`.
/// @return _tokenId2 Return tokenId of veNFT with `_amount`.
function split(uint256 _from, uint256 _amount) external returns (uint256 _tokenId1, uint256 _tokenId2);
/// @notice Toggle split for a specific address.
/// @dev Toggle split for address(0) to enable or disable for all.
/// @param _account Address to toggle split permissions
/// @param _bool True to allow, false to disallow
function toggleSplit(address _account, bool _bool) external;
/// @notice Permanently lock a veNFT. Voting power will be equal to
/// `LockedBalance.amount` with no decay. Required to delegate.
/// @dev Only callable by unlocked normal veNFTs.
/// @param _tokenId tokenId to lock.
function lockPermanent(uint256 _tokenId) external;
/// @notice Unlock a permanently locked veNFT. Voting power will decay.
/// Will automatically dedelegate if delegated.
/// @dev Only callable by permanently locked veNFTs.
/// Cannot unlock if already voted this epoch.
/// @param _tokenId tokenId to unlock.
function unlockPermanent(uint256 _tokenId) external;
/*///////////////////////////////////////////////////////////////
GAUGE VOTING STORAGE
//////////////////////////////////////////////////////////////*/
/// @notice Get the voting power for _tokenId at the current timestamp
/// @dev Returns 0 if called in the same block as a transfer.
/// @param _tokenId .
/// @return Voting power
function balanceOfNFT(uint256 _tokenId) external view returns (uint256);
/// @notice Get the voting power for _tokenId at a given timestamp
/// @param _tokenId .
/// @param _t Timestamp to query voting power
/// @return Voting power
function balanceOfNFTAt(uint256 _tokenId, uint256 _t) external view returns (uint256);
/// @notice Calculate total voting power at current timestamp
/// @return Total voting power at current timestamp
function totalSupply() external view returns (uint256);
/// @notice Calculate total voting power at a given timestamp
/// @param _t Timestamp to query total voting power
/// @return Total voting power at given timestamp
function totalSupplyAt(uint256 _t) external view returns (uint256);
/*///////////////////////////////////////////////////////////////
GAUGE VOTING LOGIC
//////////////////////////////////////////////////////////////*/
/// @notice See if a queried _tokenId has actively voted
/// @param _tokenId .
/// @return True if voted, else false
function voted(uint256 _tokenId) external view returns (bool);
/// @notice Set the global state voter and distributor
/// @dev This is only called once, at setup
function setVoterAndDistributor(address _voter, address _distributor) external;
/// @notice Set `voted` for _tokenId to true or false
/// @dev Only callable by voter
/// @param _tokenId .
/// @param _voted .
function voting(uint256 _tokenId, bool _voted) external;
/*///////////////////////////////////////////////////////////////
DAO VOTING STORAGE
//////////////////////////////////////////////////////////////*/
/// @notice The number of checkpoints for each tokenId
function numCheckpoints(uint256 tokenId) external view returns (uint48);
/// @notice A record of states for signing / validating signatures
function nonces(address account) external view returns (uint256);
/// @inheritdoc IVotes
function delegates(uint256 delegator) external view returns (uint256);
/// @notice A record of delegated token checkpoints for each account, by index
/// @param tokenId .
/// @param index .
/// @return Checkpoint
function checkpoints(uint256 tokenId, uint48 index) external view returns (Checkpoint memory);
/// @inheritdoc IVotes
function getPastVotes(address account, uint256 tokenId, uint256 timestamp) external view returns (uint256);
/// @inheritdoc IVotes
function getPastTotalSupply(uint256 timestamp) external view returns (uint256);
/*///////////////////////////////////////////////////////////////
DAO VOTING LOGIC
//////////////////////////////////////////////////////////////*/
/// @inheritdoc IVotes
function delegate(uint256 delegator, uint256 delegatee) external;
/// @inheritdoc IVotes
function delegateBySig(
uint256 delegator,
uint256 delegatee,
uint256 nonce,
uint256 expiry,
uint8 v,
bytes32 r,
bytes32 s
) external;
/*//////////////////////////////////////////////////////////////
ERC6372 LOGIC
//////////////////////////////////////////////////////////////*/
/// @inheritdoc IERC6372
function clock() external view returns (uint48);
/// @inheritdoc IERC6372
function CLOCK_MODE() external view returns (string memory);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IAbx} from "./IAbx.sol";
import {IVoter} from "./IVoter.sol";
import {IVotingEscrow} from "./IVotingEscrow.sol";
import {IRewardsDistributor} from "./IRewardsDistributor.sol";
interface IMinter {
struct AirdropParams {
// List of addresses to receive Liquid Tokens from the airdrop
address[] liquidWallets;
// List of amounts of Liquid Tokens to be issued
uint256[] liquidAmounts;
// List of addresses to receive Locked NFTs from the airdrop
address[] lockedWallets;
// List of amounts of Locked NFTs to be issued
uint256[] lockedAmounts;
}
error NotTeam();
error RateTooHigh();
error ZeroAddress();
error InvalidParams();
error AlreadyNudged();
error NotPendingTeam();
error NotEpochGovernor();
error AlreadyInitialized();
error TailEmissionsInactive();
event Mint(address indexed _sender, uint256 _weekly, uint256 _circulating_supply, bool indexed _tail);
event DistributeLocked(address indexed _destination, uint256 _amount, uint256 _tokenId);
event Nudge(uint256 indexed _period, uint256 _oldRate, uint256 _newRate);
event DistributeLiquid(address indexed _destination, uint256 _amount);
event AcceptTeam(address indexed _newTeam);
/// @notice Interface of Abx.sol
function abx() external view returns (IAbx);
/// @notice Interface of Voter.sol
function voter() external view returns (IVoter);
/// @notice Interface of IVotingEscrow.sol
function ve() external view returns (IVotingEscrow);
/// @notice Interface of RewardsDistributor.sol
function rewardsDistributor() external view returns (IRewardsDistributor);
/// @notice Duration of epoch in seconds
function WEEK() external view returns (uint256);
/// @notice Decay rate of emissions as percentage of `MAX_BPS`
function WEEKLY_DECAY() external view returns (uint256);
/// @notice Growth rate of emissions as percentage of `MAX_BPS` in first 14 weeks
function WEEKLY_GROWTH() external view returns (uint256);
/// @notice Maximum tail emission rate in basis points.
function MAXIMUM_TAIL_RATE() external view returns (uint256);
/// @notice Minimum tail emission rate in basis points.
function MINIMUM_TAIL_RATE() external view returns (uint256);
/// @notice Denominator for emissions calculations (as basis points)
function MAX_BPS() external view returns (uint256);
/// @notice Rate change per proposal
function NUDGE() external view returns (uint256);
/// @notice When emissions fall below this amount, begin tail emissions
function TAIL_START() external view returns (uint256);
/// @notice Maximum team percentage in basis points
function MAXIMUM_TEAM_RATE() external view returns (uint256);
/// @notice Current team percentage in basis points
function teamRate() external view returns (uint256);
/// @notice Tail emissions rate in basis points
function tailEmissionRate() external view returns (uint256);
/// @notice Starting weekly emission of 10M ABX (ABX has 18 decimals)
function weekly() external view returns (uint256);
/// @notice Timestamp of start of epoch that updatePeriod was last called in
function activePeriod() external view returns (uint256);
/// @notice Number of epochs in which updatePeriod was called
function epochCount() external view returns (uint256);
/// @notice Boolean used to verify if contract has been initialized
function initialized() external returns (bool);
/// @dev activePeriod => proposal existing, used to enforce one proposal per epoch
/// @param _activePeriod Timestamp of start of epoch
/// @return True if proposal has been executed, else false
function proposals(uint256 _activePeriod) external view returns (bool);
/// @notice Current team address in charge of emissions
function team() external view returns (address);
/// @notice Possible team address pending approval of current team
function pendingTeam() external view returns (address);
/// @notice Mints liquid tokens and permanently locked NFTs to the provided accounts
/// @param params Struct that stores the wallets and amounts for the Airdrops
function initialize(AirdropParams memory params) external;
/// @notice Creates a request to change the current team's address
/// @param _team Address of the new team to be chosen
function setTeam(address _team) external;
/// @notice Accepts the request to replace the current team's address
/// with the requested one, present on variable pendingTeam
function acceptTeam() external;
/// @notice Creates a request to change the current team's percentage
/// @param _rate New team rate to be set in basis points
function setTeamRate(uint256 _rate) external;
/// @notice Allows epoch governor to modify the tail emission rate by at most 1 basis point
/// per epoch to a maximum of 100 basis points or to a minimum of 1 basis point.
/// Note: the very first nudge proposal must take place the week prior
/// to the tail emission schedule starting.
/// @dev Throws if not epoch governor.
/// Throws if not currently in tail emission schedule.
/// Throws if already nudged this epoch.
/// Throws if nudging above maximum rate.
/// Throws if nudging below minimum rate.
/// This contract is coupled to EpochGovernor as it requires three option simple majority voting.
function nudge() external;
/// @notice Calculates rebases according to the formula
/// weekly * ((abx.totalsupply - ve.totalSupply) / abx.totalsupply) ^ 2 / 2
/// Note that ve.totalSupply is the locked ve supply
/// abx.totalSupply is the total ve supply minted
/// @param _minted Amount of ABX minted this epoch
/// @return _growth Rebases
function calculateGrowth(uint256 _minted) external view returns (uint256 _growth);
/// @notice Processes emissions and rebases. Callable once per epoch (1 week).
/// @return _period Start of current epoch.
function updatePeriod() external returns (uint256 _period);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IVotingEscrow} from "./IVotingEscrow.sol";
interface IRewardsDistributor {
event CheckpointToken(uint256 time, uint256 tokens);
event Claimed(uint256 indexed tokenId, uint256 indexed epochStart, uint256 indexed epochEnd, uint256 amount);
error NotMinter();
error NotManagedOrNormalNFT();
error UpdatePeriod();
/// @notice 7 days in seconds
function WEEK() external view returns (uint256);
/// @notice Timestamp of contract creation
function startTime() external view returns (uint256);
/// @notice Timestamp of most recent claim of tokenId
function timeCursorOf(uint256 tokenId) external view returns (uint256);
/// @notice The last timestamp Minter has called checkpointToken()
function lastTokenTime() external view returns (uint256);
/// @notice Interface of VotingEscrow.sol
function ve() external view returns (IVotingEscrow);
/// @notice Address of token used for distributions (ABX)
function token() external view returns (address);
/// @notice Address of Minter.sol
/// Authorized caller of checkpointToken()
function minter() external view returns (address);
/// @notice Amount of token in contract when checkpointToken() was last called
function tokenLastBalance() external view returns (uint256);
/// @notice Called by Minter to notify Distributor of rebases
function checkpointToken() external;
/// @notice Returns the amount of rebases claimable for a given token ID
/// @dev Allows claiming of rebases up to 50 epochs old
/// @param tokenId The token ID to check
/// @return The amount of rebases claimable for the given token ID
function claimable(uint256 tokenId) external view returns (uint256);
/// @notice Claims rebases for a given token ID
/// @dev Allows claiming of rebases up to 50 epochs old
/// `Minter.updatePeriod()` must be called before claiming
/// @param tokenId The token ID to claim for
/// @return The amount of rebases claimed
function claim(uint256 tokenId) external returns (uint256);
/// @notice Claims rebases for a list of token IDs
/// @dev `Minter.updatePeriod()` must be called before claiming
/// @param tokenIds The token IDs to claim for
/// @return Whether or not the claim succeeded
function claimMany(uint256[] calldata tokenIds) external returns (bool);
/// @notice Used to set minter once on initialization
/// @dev Callable once by Minter only, Minter is immutable
function setMinter(address _minter) external;
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;
/// Modified IVotes interface for tokenId based voting
interface IVotes {
/**
* @dev Emitted when an account changes their delegate.
*/
event DelegateChanged(address indexed delegator, uint256 indexed fromDelegate, uint256 indexed toDelegate);
/**
* @dev Emitted when a token transfer or delegate change results in changes to a delegate's number of votes.
*/
event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance);
/**
* @dev Returns the amount of votes that `tokenId` had at a specific moment in the past.
* If the account passed in is not the owner, returns 0.
*/
function getPastVotes(address account, uint256 tokenId, uint256 timepoint) external view returns (uint256);
/**
* @dev Returns the total supply of votes available at a specific moment in the past. If the `clock()` is
* configured to use block numbers, this will return the value the end of the corresponding block.
*
* NOTE: This value is the sum of all available votes, which is not necessarily the sum of all delegated votes.
* Votes that have not been delegated are still part of total supply, even though they would not participate in a
* vote.
*/
function getPastTotalSupply(uint256 timepoint) external view returns (uint256);
/**
* @dev Returns the delegate that `tokenId` has chosen. Can never be equal to the delegator's `tokenId`.
* Returns 0 if not delegated.
*/
function delegates(uint256 tokenId) external view returns (uint256);
/**
* @dev Delegates votes from the sender to `delegatee`.
*/
function delegate(uint256 delegator, uint256 delegatee) external;
/**
* @dev Delegates votes from `delegator` to `delegatee`. Signer must own `delegator`.
*/
function delegateBySig(
uint256 delegator,
uint256 delegatee,
uint256 nonce,
uint256 expiry,
uint8 v,
bytes32 r,
bytes32 s
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev 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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Down, // Toward negative infinity
Up, // Toward infinity
Zero // Toward zero
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds up instead
* of rounding down.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
* with further edits by Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod0 := mul(x, y)
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
require(denominator > prod1, "Math: mulDiv overflow");
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
// See https://cs.stackexchange.com/q/138556/92363.
// Does not overflow because the denominator cannot be zero at this stage in the function.
uint256 twos = denominator & (~denominator + 1);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
// in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10, rounded down, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256, rounded down, of a positive value.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/IERC20Permit.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 IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
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'
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));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
* Revert on invalid signature.
*/
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @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. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
/**
* @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).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return
success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IAbx is IERC20 {
error NotMinter();
error NotOwner();
/// @notice Mint an amount of tokens to an account
/// Only callable by Minter.sol
/// @return True if success
function mint(address account, uint256 amount) external returns (bool);
/// @notice Address of Minter.sol
function minter() external view returns (address);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IVoter {
error AlreadyVotedOrDeposited();
error DistributeWindow();
error FactoryPathNotApproved();
error GaugeAlreadyKilled();
error GaugeAlreadyRevived();
error GaugeExists();
error GaugeDoesNotExist(address _pool);
error GaugeNotAlive(address _gauge);
error InactiveManagedNFT();
error MaximumVotingNumberTooLow();
error NonZeroVotes();
error NotAPool();
error NotApprovedOrOwner();
error NotGovernor();
error NotEmergencyCouncil();
error NotMinter();
error NotWhitelistedNFT();
error NotWhitelistedToken();
error SameValue();
error SpecialVotingWindow();
error TooManyPools();
error UnequalLengths();
error ZeroBalance();
error ZeroAddress();
event GaugeCreated(
address indexed poolFactory,
address indexed votingRewardsFactory,
address indexed gaugeFactory,
address pool,
address bribeVotingReward,
address feeVotingReward,
address gauge,
address creator
);
event GaugeKilled(address indexed gauge);
event GaugeRevived(address indexed gauge);
event Voted(
address indexed voter,
address indexed pool,
uint256 indexed tokenId,
uint256 weight,
uint256 totalWeight,
uint256 timestamp
);
event Abstained(
address indexed voter,
address indexed pool,
uint256 indexed tokenId,
uint256 weight,
uint256 totalWeight,
uint256 timestamp
);
event NotifyReward(address indexed sender, address indexed reward, uint256 amount);
event DistributeReward(address indexed sender, address indexed gauge, uint256 amount);
event WhitelistToken(address indexed whitelister, address indexed token, bool indexed _bool);
event WhitelistNFT(address indexed whitelister, uint256 indexed tokenId, bool indexed _bool);
/// @notice Store trusted forwarder address to pass into factories
function forwarder() external view returns (address);
/// @notice The ve token that governs these contracts
function ve() external view returns (address);
/// @notice Factory registry for valid pool / gauge / rewards factories
function factoryRegistry() external view returns (address);
/// @notice Address of Minter.sol
function minter() external view returns (address);
/// @notice Standard OZ IGovernor using ve for vote weights.
function governor() external view returns (address);
/// @notice Custom Epoch Governor using ve for vote weights.
function epochGovernor() external view returns (address);
/// @notice credibly neutral party similar to Curve's Emergency DAO
function emergencyCouncil() external view returns (address);
/// @dev Total Voting Weights
function totalWeight() external view returns (uint256);
/// @dev Most number of pools one voter can vote for at once
function maxVotingNum() external view returns (uint256);
// mappings
/// @dev Pool => Gauge
function gauges(address pool) external view returns (address);
/// @dev Gauge => Pool
function poolForGauge(address gauge) external view returns (address);
/// @dev Gauge => Fees Voting Reward
function gaugeToFees(address gauge) external view returns (address);
/// @dev Gauge => Bribes Voting Reward
function gaugeToBribe(address gauge) external view returns (address);
/// @dev Pool => Weights
function weights(address pool) external view returns (uint256);
/// @dev NFT => Pool => Votes
function votes(uint256 tokenId, address pool) external view returns (uint256);
/// @dev NFT => Total voting weight of NFT
function usedWeights(uint256 tokenId) external view returns (uint256);
/// @dev Nft => Timestamp of last vote (ensures single vote per epoch)
function lastVoted(uint256 tokenId) external view returns (uint256);
/// @dev Address => Gauge
function isGauge(address) external view returns (bool);
/// @dev Token => Whitelisted status
function isWhitelistedToken(address token) external view returns (bool);
/// @dev TokenId => Whitelisted status
function isWhitelistedNFT(uint256 tokenId) external view returns (bool);
/// @dev Gauge => Liveness status
function isAlive(address gauge) external view returns (bool);
/// @dev Gauge => Amount claimable
function claimable(address gauge) external view returns (uint256);
/// @notice Number of pools with a Gauge
function length() external view returns (uint256);
/// @notice Called by Minter to distribute weekly emissions rewards for disbursement amongst gauges.
/// @dev Assumes totalWeight != 0 (Will never be zero as long as users are voting).
/// Throws if not called by minter.
/// @param _amount Amount of rewards to distribute.
function notifyRewardAmount(uint256 _amount) external;
/// @dev Utility to distribute to gauges of pools in range _start to _finish.
/// @param _start Starting index of gauges to distribute to.
/// @param _finish Ending index of gauges to distribute to.
function distribute(uint256 _start, uint256 _finish) external;
/// @dev Utility to distribute to gauges of pools in array.
/// @param _gauges Array of gauges to distribute to.
function distribute(address[] memory _gauges) external;
/// @notice Called by users to update voting balances in voting rewards contracts.
/// @param _tokenId Id of veNFT whose balance you wish to update.
function poke(uint256 _tokenId) external;
/// @notice Called by users to vote for pools. Votes distributed proportionally based on weights.
/// Can only vote or deposit into a managed NFT once per epoch.
/// Can only vote for gauges that have not been killed.
/// @dev Weights are distributed proportional to the sum of the weights in the array.
/// Throws if length of _poolVote and _weights do not match.
/// @param _tokenId Id of veNFT you are voting with.
/// @param _poolVote Array of pools you are voting for.
/// @param _weights Weights of pools.
function vote(uint256 _tokenId, address[] calldata _poolVote, uint256[] calldata _weights) external;
/// @notice Called by users to reset voting state. Required if you wish to make changes to
/// veNFT state (e.g. merge, split, deposit into managed etc).
/// Cannot reset in the same epoch that you voted in.
/// Can vote or deposit into a managed NFT again after reset.
/// @param _tokenId Id of veNFT you are reseting.
function reset(uint256 _tokenId) external;
/// @notice Called by users to deposit into a managed NFT.
/// Can only vote or deposit into a managed NFT once per epoch.
/// Note that NFTs deposited into a managed NFT will be re-locked
/// to the maximum lock time on withdrawal.
/// @dev Throws if not approved or owner.
/// Throws if managed NFT is inactive.
/// Throws if depositing within privileged window (one hour prior to epoch flip).
function depositManaged(uint256 _tokenId, uint256 _mTokenId) external;
/// @notice Called by users to withdraw from a managed NFT.
/// Cannot do it in the same epoch that you deposited into a managed NFT.
/// Can vote or deposit into a managed NFT again after withdrawing.
/// Note that the NFT withdrawn is re-locked to the maximum lock time.
function withdrawManaged(uint256 _tokenId) external;
/// @notice Claim emissions from gauges.
/// @param _gauges Array of gauges to collect emissions from.
function claimRewards(address[] memory _gauges) external;
/// @notice Claim bribes for a given NFT.
/// @dev Utility to help batch bribe claims.
/// @param _bribes Array of BribeVotingReward contracts to collect from.
/// @param _tokens Array of tokens that are used as bribes.
/// @param _tokenId Id of veNFT that you wish to claim bribes for.
function claimBribes(address[] memory _bribes, address[][] memory _tokens, uint256 _tokenId) external;
/// @notice Claim fees for a given NFT.
/// @dev Utility to help batch fee claims.
/// @param _fees Array of FeesVotingReward contracts to collect from.
/// @param _tokens Array of tokens that are used as fees.
/// @param _tokenId Id of veNFT that you wish to claim fees for.
function claimFees(address[] memory _fees, address[][] memory _tokens, uint256 _tokenId) external;
/// @notice Set new governor.
/// @dev Throws if not called by governor.
/// @param _governor .
function setGovernor(address _governor) external;
/// @notice Set new epoch based governor.
/// @dev Throws if not called by governor.
/// @param _epochGovernor .
function setEpochGovernor(address _epochGovernor) external;
/// @notice Set new emergency council.
/// @dev Throws if not called by emergency council.
/// @param _emergencyCouncil .
function setEmergencyCouncil(address _emergencyCouncil) external;
/// @notice Set maximum number of gauges that can be voted for.
/// @dev Throws if not called by governor.
/// Throws if _maxVotingNum is too low.
/// Throws if the values are the same.
/// @param _maxVotingNum .
function setMaxVotingNum(uint256 _maxVotingNum) external;
/// @notice Whitelist (or unwhitelist) token for use in bribes.
/// @dev Throws if not called by governor.
/// @param _token .
/// @param _bool .
function whitelistToken(address _token, bool _bool) external;
/// @notice Whitelist (or unwhitelist) token id for voting in last hour prior to epoch flip.
/// @dev Throws if not called by governor.
/// Throws if already whitelisted.
/// @param _tokenId .
/// @param _bool .
function whitelistNFT(uint256 _tokenId, bool _bool) external;
/// @notice Create a new gauge (unpermissioned).
/// @dev Governor can create a new gauge for a pool with any address.
/// @param _poolFactory .
/// @param _pool .
function createGauge(address _poolFactory, address _pool) external returns (address);
/// @notice Kills a gauge. The gauge will not receive any new emissions and cannot be deposited into.
/// Can still withdraw from gauge.
/// @dev Throws if not called by emergency council.
/// Throws if gauge already killed.
/// @param _gauge .
function killGauge(address _gauge) external;
/// @notice Revives a killed gauge. Gauge will can receive emissions and deposits again.
/// @dev Throws if not called by emergency council.
/// Throws if gauge is not killed.
/// @param _gauge .
function reviveGauge(address _gauge) external;
/// @dev Update claims to emissions for an array of gauges.
/// @param _gauges Array of gauges to update emissions for.
function updateFor(address[] memory _gauges) external;
/// @dev Update claims to emissions for gauges based on their pool id as stored in Voter.
/// @param _start Starting index of pools.
/// @param _end Ending index of pools.
function updateFor(uint256 _start, uint256 _end) external;
/// @dev Update claims to emissions for single gauge
/// @param _gauge .
function updateFor(address _gauge) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC6372.sol)
pragma solidity ^0.8.0;
interface IERC6372 {
/**
* @dev Clock used for flagging checkpoints. Can be overridden to implement timestamp based checkpoints (and voting).
*/
function clock() external view returns (uint48);
/**
* @dev Description of the clock
*/
// solhint-disable-next-line func-name-mixedcase
function CLOCK_MODE() external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC4906.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
import "./IERC721.sol";
/// @title EIP-721 Metadata Update Extension
interface IERC4906 is IERC165, IERC721 {
/// @dev This event emits when the metadata of a token is changed.
/// So that the third-party platforms such as NFT market could
/// timely update the images and related attributes of the NFT.
event MetadataUpdate(uint256 _tokenId);
/// @dev This event emits when the metadata of a range of tokens is changed.
/// So that the third-party platforms such as NFT market could
/// timely update the images and related attributes of the NFTs.
event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @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
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @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://consensys.net/diligence/blog/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.8.0/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");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 tokenId) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"optimizer": {
"enabled": true,
"mode": "3",
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"abi"
]
}
},
"detectMissingLibraries": false,
"forceEVMLA": false,
"enableEraVMExtensions": false,
"codegen": "yul",
"libraries": {
"contracts/art/PerlinNoise.sol": {
"PerlinNoise": "0x25B11E6e5b2d1A7309A98274b459d4d0081c85Ef"
},
"contracts/art/Trig.sol": {
"Trig": "0x00b2Ed8c1c84B02614B3579fF830b9aDbd52f273"
},
"contracts/libraries/BalanceLogicLibrary.sol": {
"BalanceLogicLibrary": "0x58025B26C518ac345bA1476B050BAb9f4A20B35d"
},
"contracts/libraries/DelegationLogicLibrary.sol": {
"DelegationLogicLibrary": "0x2A7Db0012bfE811a79b6888800D6E1aDc0d8c10C"
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_ve","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"NotManagedOrNormalNFT","type":"error"},{"inputs":[],"name":"NotMinter","type":"error"},{"inputs":[],"name":"UpdatePeriod","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"CheckpointToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"epochStart","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"epochEnd","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"inputs":[],"name":"WEEK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkpointToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"claimMany","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"claimable_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTokenTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"timeCursorOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenLastBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensPerWeek","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ve","outputs":[{"internalType":"contract IVotingEscrow","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
9c4d535b000000000000000000000000000000000000000000000000000000000000000001000415a6b87f20455dc248ce6b5cb887302d4e6398c5af1c6f7af8fcf6b79c0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002000000000000000000000000027b04370d8087e714a9f557c1eff7901cea6bb63
Deployed Bytecode
0x0001000000000002001100000000000200000000000103550000006003100270000003b70330019700000001002001900000001e0000c13d0000008002000039000000400020043f000000040030008c000000430000413d000000000201043b000000e002200270000003d20020009c000000450000213d000003dc0020009c000000f10000a13d000003dd0020009c000001ac0000213d000003e00020009c000001cd0000613d000003e10020009c000000430000c13d0000000001000416000000000001004b000000430000c13d000000000100041a000000800010043f000003e50100004100000ed70001042e000000a004000039000000400040043f0000000002000416000000000002004b000000430000c13d0000001f02300039000003b802200197000000a002200039000000400020043f0000001f0530018f000003b906300198000000a002600039000000300000613d000000000701034f000000007807043c0000000004840436000000000024004b0000002c0000c13d000000000005004b0000003d0000613d000000000161034f0000000304500210000000000502043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000120435000000200030008c000000430000413d000000a00100043d000f00000001001d000003ba0010009c000000540000a13d000000000100001900000ed800010430000003d30020009c000001480000a13d000003d40020009c000001b50000213d000003d70020009c000001d90000613d000003d80020009c000000430000c13d0000000001000416000000000001004b000000430000c13d000003bd01000041000000800010043f000003e50100004100000ed70001042e000003bb0100004100000000001004430000000001000414000003b70010009c000003b701008041000000c001100210000003bc011001c70000800b020000390ed60ed10000040f0000000100200190000009d40000613d000000000101043b000003bd2010012a0000000001210049000000000010041b0000000202000039000000000012041b0000000f02000029000000800020043f000003be01000041000000400300043d000e00000003001d0000000000130435000003b70030009c000003b701000041000000000103401900000040011002100000000003000414000003b70030009c000003b703008041000000c003300210000000000113019f000003bf011001c70ed60ed10000040f0000000e0b0000290000006003100270000003b703300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b0019000000860000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000000820000c13d000000000006004b000000930000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f00000000006504350000000100200190000002830000613d0000001f01400039000000600110018f0000000002b10019000000000012004b00000000010000390000000101004039000003c00020009c000000eb0000213d0000000100100190000000eb0000c13d000d00000002001d000000400020043f000000200030008c000000430000413d00000000010b0433000e00000001001d000003ba0010009c000000430000213d000003c101000041000000000201041a000003c2032001970000000e02000029000000000323019f000000000031041b000003c301000041000000000301041a000003c2043001970000000003000411000000000334019f000000000031041b0000000d0400002900000024014000390000000f030000290000000000310435000003c4010000410000000000140435000000040140003900000000030004100000000000310435000003b70040009c000003b701000041000000000104401900000040011002100000000003000414000003b70030009c000003b703008041000000c003300210000000000113019f000003c5011001c70ed60ed10000040f0000000d0b0000290000006003100270000003b703300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b0019000000d70000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000000d30000c13d000000000006004b000000e40000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f00000000006504350000000100200190000002ab0000613d0000001f01400039000000600110018f0000000001b10019000003c00010009c0000031a0000a13d000003ef01000041000000000010043f0000004101000039000000040010043f000003f00100004100000ed800010430000003e20020009c000001fc0000613d000003e30020009c000002020000613d000003e40020009c000000430000c13d0000000002000416000000000002004b000000430000c13d000000240030008c000000430000413d0000000401100370000000000101043b000f00000001001d000003c301000041000000000101041a000003f302000041000000800020043f0000000003000414000003ba02100197000003b70030009c000003b703008041000000c001300210000003e8011001c70ed60ed10000040f0000006003100270000003b703300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf000001190000613d0000008008000039000000000901034f000000009a09043c0000000008a80436000000000058004b000001150000c13d000000000006004b000001260000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f00000000006504350000000100200190000002930000613d0000001f01400039000000600110018f00000080011001bf000000400010043f000000200030008c000000430000413d000000800100043d000e00000001001d000003bb0100004100000000001004430000000001000414000003b70010009c000003b701008041000000c001100210000003bc011001c70000800b020000390ed60ed10000040f0000000100200190000009d40000613d000000000201043b000003bd1020012a00000000011200490000000e0010006b000002b70000813d000000400100043d0000040d020000410000000000210435000003b70010009c000003b7010080410000004001100210000003bf011001c700000ed800010430000003d90020009c000002130000613d000003da0020009c0000027b0000613d000003db0020009c000000430000c13d0000000001000416000000000001004b000000430000c13d000003c301000041000000000101041a000003ba011001970000000002000411000000000012004b0000028f0000c13d000003c101000041000000000101041a000003e902000041000000800020043f0000000002000410000000840020043f0000000003000414000003ba02100197000003b70030009c000003b703008041000000c001300210000003ea011001c70ed60ed10000040f000000800a0000390000006003100270000003b703300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf000001730000613d000000000801034f000000008908043c000000000a9a043600000000005a004b0000016f0000c13d000000000006004b000001800000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f000000000065043500000001002001900000029f0000613d0000001f01400039000000600110018f00000080011001bf000000400010043f000000200030008c000000430000413d000003eb01000041000000000301041a000000800400043d000000000234004b000001a60000413d000e00000003001d000f00000002001d000d00000004001d000000000041041b0000000201000039000000000101041a000c00000001001d000003bb0100004100000000001004430000000001000414000003b70010009c000003b701008041000000c001100210000003bc011001c70000800b020000390ed60ed10000040f0000000100200190000009d40000613d000000000101043b0000000c0a0000290000000002a1004b0000000f090000290000000e0b0000290000000d0c000029000003750000813d000003ef01000041000000000010043f0000001101000039000000040010043f000003f00100004100000ed800010430000003de0020009c000001ec0000613d000003df0020009c000000430000c13d0000000001000416000000000001004b000000430000c13d000003eb010000410000027f0000013d000003d50020009c000001f70000613d000003d60020009c000000430000c13d0000000002000416000000000002004b000000430000c13d000000240030008c000000430000413d0000000401100370000000000101043b000003ba0010009c000000430000213d000003c302000041000000000302041a000003ba043001970000000005000411000000000045004b0000028f0000c13d000003c203300197000000000113019f000000000012041b000000000100001900000ed70001042e0000000002000416000000000002004b000000430000c13d000000240030008c000000430000413d0000000401100370000000000101043b000000000010043f0000000101000039000000200010043f0ed60ea10000040f0000027f0000013d0000000002000416000000000002004b000000430000c13d000000240030008c000000430000413d0000000202000039000000000202041a000003bd3020012a00000000023200490000000401100370000000000101043b0ed609ee0000040f000000400200043d0000000000120435000003b70020009c000003b7020080410000004001200210000003e6011001c700000ed70001042e0000000002000416000000000002004b000000430000c13d000000240030008c000000430000413d0000000401100370000000000101043b000003ee0010009c000000430000213d00000003011000390000027f0000013d0000000001000416000000000001004b000000430000c13d000003c101000041000002000000013d0000000001000416000000000001004b000000430000c13d000003c301000041000000000101041a0000020f0000013d0000000001000416000000000001004b000000430000c13d0000000001000412001100000001001d001000000000003d000080050100003900000044030000390000000004000415000000110440008a0000000504400210000003f5020000410ed60eae0000040f000003ba01100197000000800010043f000003e50100004100000ed70001042e0000000002000416000000000002004b000000430000c13d000000240030008c000000430000413d0000000402100370000000000202043b000003c00020009c000000430000213d0000002304200039000000000034004b000000430000813d0000000404200039000000000141034f000000000101043b000003c00010009c000000430000213d000000050110021000000000011200190000002401100039000000000031004b000000430000213d000003c301000041000000000101041a000003f302000041000000800020043f0000000003000414000003ba02100197000003b70030009c000003b703008041000000c001300210000003e8011001c70ed60ed10000040f0000006003100270000003b703300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf000002430000613d0000008008000039000000000901034f000000009a09043c0000000008a80436000000000058004b0000023f0000c13d000000000006004b000002500000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f000000000065043500000001002001900000030e0000613d0000001f01400039000000600110018f00000080011001bf000000400010043f000000200030008c000000430000413d000000800100043d000f00000001001d000003bb0100004100000000001004430000000001000414000003b70010009c000003b701008041000000c001100210000003bc011001c70000800b020000390ed60ed10000040f0000000100200190000009d40000613d000000000201043b000003bd1020012a000100000002001d00000000011200490000000f0010006b000001400000413d00000000010003670000000402100370000000000202043b0000000403200039000000000331034f000000000303043b000000000003004b000003d50000c13d000000400100043d00000001020000390000000000210435000003b70010009c000003b7010080410000004001100210000003e6011001c700000ed70001042e0000000001000416000000000001004b000000430000c13d0000000201000039000000000101041a000000800010043f000003e50100004100000ed70001042e0000001f0530018f000003b906300198000000400200043d0000000004620019000003b10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000028a0000c13d000003b10000013d000003e701000041000000800010043f000003e80100004100000ed8000104300000001f0530018f000003b906300198000000400200043d0000000004620019000003b10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000029a0000c13d000003b10000013d0000001f0530018f000003b906300198000000400200043d0000000004620019000003b10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000002a60000c13d000003b10000013d0000001f0530018f000003b906300198000000400200043d0000000004620019000003b10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000002b20000c13d000003b10000013d000e00000002001d000003f50100004100000000001004430000000001000412000000040010044300000024000004430000000001000414000003b70010009c000003b701008041000000c001100210000003f6011001c700008005020000390ed60ed10000040f0000000100200190000009d40000613d000000000201043b000000400400043d000d00000004001d000003f401000041000000000014043500000004014000390000000f030000290000000000310435000003b70040009c000003b701000041000000000104401900000040011002100000000003000414000003b70030009c000003b703008041000000c003300210000000000113019f000003f0011001c7000003ba02200197000c00000002001d0ed60ed10000040f0000000d0b0000290000006003100270000003b703300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b0019000002eb0000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000002e70000c13d000000000006004b000002f80000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f00000000006504350000000100200190000003a60000613d0000001f01400039000000600210018f0000000001b20019000000000021004b00000000020000390000000102004039000003c00010009c000000eb0000213d0000000100200190000000eb0000c13d000000400010043f000000200030008c000000430000413d00000000020b0433000000020020008c000000430000213d000000010020008c0000080e0000c13d0000040c02000041000001420000013d0000001f0530018f000003b906300198000000400200043d0000000004620019000003b10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000003150000c13d000003b10000013d000000400010043f000000200030008c000000430000413d000000440310003900000024041000390000000d020000290000000002020433000000000002004b000003c40000c13d0000002002100039000003ca0500004100000000005204350000000f050000290000000000540435000000010400008a000000000043043500000044030000390000000000310435000003cb0010009c000000eb0000213d000000c003100039000000400030043f000000a004100039000003cc03000041000d00000004001d000000000034043500000080041000390000002003000039000c00000004001d0000000000340435000003b70020009c000003b70200804100000040022002100000000001010433000003b70010009c000003b7010080410000006001100210000000000121019f0000000002000414000003b70020009c000003b702008041000000c002200210000000000121019f0000000e020000290ed60ecc0000040f0000006003100270000003b703300198000007870000c13d000f00600000003d000b00800000003d0000000001000415000a00000001001d0000000f0100002900000000010104330000000100200190000007bf0000613d000000000001004b000007e40000c13d000003ce0100004100000000001004430000000e0100002900000004001004430000000001000414000003b70010009c000003b701008041000000c001100210000003cf011001c700008002020000390ed60ed10000040f0000000100200190000009d40000613d000000000101043b000000000001004b000007e40000c13d000000400100043d00000044021000390000040a03000041000000000032043500000024021000390000001d030000390000000000320435000003c6020000410000000000210435000000040210003900000020030000390000000000320435000003b70010009c000003b70100804100000040011002100000040b011001c700000ed8000104300000000203000039000000000013041b000003bd30a0012a00000000033a0049000000000400001900000000060a0019000003810000013d000000130040008c000000010440003900000000030500190000000006050019000008e60000813d000003ec0530009c000001a60000813d000000000051004b000007b10000413d0000000000a1004b000003920000c13d000000000065004b000003920000c13d000003ee0030009c000008370000213d0000000303300039000000000603041a000000000096001a000001a60000413d0000000006960019000000000063041b0000037c0000013d000000000765004b000001a60000413d00000000069700a90000000000bc004b0000039a0000613d00000000089600d9000000000078004b000001a60000c13d0000000000a1004b000007ff0000613d000003ee0030009c000008370000213d00000000062600d90000000303300039000000000703041a000000000067001a000001a60000413d0000000006670019000000000063041b0000037c0000013d0000001f0530018f000003b906300198000000400200043d0000000004620019000003b10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000003ad0000c13d000000000005004b000003be0000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000003b70020009c000003b7020080410000004002200210000000000112019f00000ed800010430000003c602000041000000000021043500000004021000390000002005000039000000000052043500000036020000390000000000240435000003c70200004100000000002304350000006402100039000003c8030000410000000000320435000003b70010009c000003b7010080410000004001100210000003c9011001c700000ed8000104300000000203000039000000000303041a000003bd4030012a00060000004300510000000004000019000200000000001d000003e60000013d000000030400002900000000010003670000000402100370000000000202043b0000000403200039000000000331034f000000000303043b0000000104400039000000000034004b0000091f0000813d000000400500043d000003f4030000410000000000350435000300000004001d0000000503400210000400240030003d0000000402200029000000000121034f000000000101043b000f00000005001d00000004025000390000000000120435000003f50100004100000000001004430000000001000412000000040010044300000024000004430000000001000414000003b70010009c000003b701008041000000c001100210000003f6011001c700008005020000390ed60ed10000040f0000000100200190000009d40000613d000000000201043b0000000f01000029000003b70010009c000003b70100804100000040011002100000000003000414000003b70030009c000003b703008041000000c003300210000000000113019f000003f0011001c7000003ba022001970ed60ed10000040f0000006003100270000003b703300197000000200030008c0000002004000039000000000403401900000020064001900000000f0a00002900000000056a00190000041c0000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b000004180000c13d0000001f07400190000004290000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f00000000006504350000000100200190000009270000613d0000001f01400039000000600210018f0000000001a20019000000000021004b00000000020000390000000102004039000003c00010009c000000eb0000213d0000000100200190000000eb0000c13d000000400010043f000000200030008c000000430000413d00000000020a0433000000020020008c000000430000213d000000010020008c0000030c0000613d00000000010003670000000402100370000000000202043b0000000402200029000000000121034f000000000101043b000000000001004b0000091f0000613d000000000200041a000e00000002001d000700000001001d000000000010043f0000000101000039000000200010043f0000000001000414000003b70010009c000003b701008041000000c001100210000003f1011001c700008010020000390ed60ed10000040f0000000100200190000000430000613d000000000101043b000000000101041a000500000001001d000003f50100004100000000001004430000000001000412000000040010044300000024000004430000000001000414000003b70010009c000003b701008041000000c001100210000003f6011001c700008005020000390ed60ed10000040f0000000100200190000009d40000613d000000000201043b000000400400043d000f00000004001d000003f7010000410000000000140435000000040140003900000007030000290000000000310435000003b70040009c000003b701000041000000000104401900000040011002100000000003000414000003b70030009c000003b703008041000000c003300210000000000113019f000003f0011001c7000003ba02200197000c00000002001d0ed60ed10000040f0000000f0a0000290000006003100270000003b703300197000000200030008c00000020040000390000000004034019000000200640019000000000056a0019000004890000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b000004850000c13d0000001f07400190000004960000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f00000000006504350000000100200190000009330000613d0000001f01400039000000600110018f0000000004a10019000000000014004b00000000010000390000000101004039000003c00040009c000000eb0000213d0000000100100190000000eb0000c13d000000400040043f000000200030008c000000430000413d00000000010a0433000000000001004b000005bd0000613d0000000503000029000000000003004b0000050f0000c13d000000240140003900000001020000390000000000210435000003f8010000410000000001140436000d00000001001d000000040140003900000007020000290000000000210435000003b70040009c000003b701000041000000000104401900000040011002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f000003c5011001c70000000c02000029000f00000004001d0ed60ed10000040f0000000f0a0000290000006003100270000003b703300197000000a00030008c000000a0040000390000000004034019000000e00640019000000000056a0019000004d00000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b000004cc0000c13d0000001f07400190000004dd0000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f000000000065043500000001002001900000098f0000613d0000001f01400039000001e00110018f0000000001a10019000003c00010009c000000eb0000213d000000400010043f000000a00030008c000000430000413d000003f90010009c000000eb0000213d000000a002100039000000400020043f00000000020a0433000003fa00200198000003fb030000410000000003006019000003fc04200197000000000343019f000000000032004b000000430000c13d00000000022104360000000d030000290000000003030433000003fa00300198000003fb040000410000000004006019000003fc05300197000000000454019f000000000043004b000000430000c13d00000000003204350000004002a000390000000002020433000000400310003900000000002304350000006003a0003900000000030304330000006004100039000000000034043500000080011000390000008003a0003900000000030304330000000000310435000003bd0020009c00000000030000190000050f0000413d000003bd1020012a00000000031200490000000601000029000000000013004b000500000003001d000005c00000813d0000000e0030006c0000000e0300a0290000000e0010006b000005c30000813d00000000050000190000000002000019000900000002001d000003ec0130009c000001a60000813d000003fd0230009a000000000012004b000001a60000213d000e00000001001d000d00000003001d000f00000005001d000000400300043d000b00000003001d0000002401300039000a00000002001d0000000000210435000003fe010000410000000000130435000000040130003900000007020000290000000000210435000003b70030009c000003b701000041000000000103401900000040011002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f000003c5011001c70000000c020000290ed60ed10000040f0000000b0a0000290000006003100270000003b703300197000000200030008c00000020040000390000000004034019000000200640019000000000056a0019000005470000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b000005430000c13d0000001f07400190000005540000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f00000000006504350000000100200190000008fb0000613d0000001f01400039000000600110018f0000000004a10019000000000014004b00000000010000390000000101004039000003c00040009c000000eb0000213d0000000100100190000000eb0000c13d000000400040043f000000200030008c0000000a02000029000000430000413d00000000010a0433000800000001001d000003ff01000041000000000014043500000004014000390000000000210435000003b70040009c000003b701000041000000000104401900000040011002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f000003f0011001c70000000c02000029000b00000004001d0ed60ed10000040f0000000b0a0000290000006003100270000003b703300197000000200030008c00000020040000390000000004034019000000200640019000000000056a0019000005860000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b000005820000c13d0000001f07400190000005930000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f00000000006504350000000100200190000009070000613d0000001f01400039000000600110018f0000000001a10019000003c00010009c000000eb0000213d000000400010043f000000200030008c000000430000413d00000000010a0433000000010010008c000000010100a0390000000d02000029000004000020009c000008370000813d0000000302200039000000000302041a000000080600002900000000026300a9000000000006004b0000000f050000290000000e04000029000005af0000613d00000000046200d9000000000034004b0000000e04000029000001a60000c13d00000000011200d9000000000051001a000001a60000413d00000000055100190000000902000029000000300020008c000005ba0000213d0000000102200039000000060040006c0000000003040019000005190000413d000f00000005001d000d00000004001d000005c50000013d000f00000000001d000d00050000002d000005c50000013d000f00000000001d000d00000003001d000005c50000013d000d00000003001d000f00000000001d0000000701000029000000000010043f0000000101000039000000200010043f0000000001000414000003b70010009c000003b701008041000000c001100210000003f1011001c700008010020000390ed60ed10000040f0000000100200190000000430000613d000000000101043b0000000d07000029000000000071041b0000000f02000029000000000002004b000003dc0000613d000000400100043d0000000000210435000003b70010009c000003b70100804100000040011002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f00000401011001c70000800d0200003900000004030000390000040204000041000000070500002900000005060000290ed60ecc0000040f0000000100200190000000430000613d000000400400043d00000403010000410000000001140436000d00000001001d00000000010003670000000402100370000000000202043b0000000402200029000000000121034f000000000101043b000e00000004001d00000004024000390000000000120435000003f50100004100000000001004430000000001000412000000040010044300000024000004430000000001000414000003b70010009c000003b701008041000000c001100210000003f6011001c700008005020000390ed60ed10000040f0000000100200190000009d40000613d000000000201043b0000000e01000029000003b70010009c000003b70100804100000040011002100000000003000414000003b70030009c000003b703008041000000c003300210000000000113019f000003f0011001c7000003ba022001970ed60ed10000040f0000006003100270000003b703300197000000600030008c0000006004000039000000000403401900000060064001900000000e0a00002900000000056a0019000006220000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b0000061e0000c13d0000001f074001900000062f0000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f000000000065043500000001002001900000093f0000613d0000001f01400039000000e00210018f0000000001a20019000000000021004b00000000020000390000000102004039000003c00010009c000000eb0000213d0000000100200190000000eb0000c13d000000400010043f000000600030008c000000430000413d000004040010009c000000eb0000213d0000006002100039000000400020043f00000000020a0433000003fa00200198000003fb030000410000000003006019000003fc04200197000000000343019f000000000032004b000000430000c13d00000000022104360000000d03000029000000000303043300000000003204350000004002a000390000000002020433000000010020008c000000430000213d00000040011000390000000000210435000000010030006b000007310000413d000000000002004b000007310000c13d000000400400043d0000040601000041000000000014043500000000010003670000000402100370000000000202043b0000000402200029000000000121034f000000000101043b000e00000004001d00000004024000390000000000120435000003f50100004100000000001004430000000001000412000000040010044300000024000004430000000001000414000003b70010009c000003b701008041000000c001100210000003f6011001c700008005020000390ed60ed10000040f0000000100200190000009d40000613d000000000201043b0000000e01000029000003b70010009c000003b70100804100000040011002100000000003000414000003b70030009c000003b703008041000000c003300210000000000113019f000003f0011001c7000003ba022001970ed60ed10000040f0000006003100270000003b703300197000000200030008c0000002004000039000000000403401900000020064001900000000e0a00002900000000056a00190000068e0000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b0000068a0000c13d0000001f074001900000069b0000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f000000000065043500000001002001900000094b0000613d0000001f01400039000000600210018f0000000001a20019000000000021004b00000000020000390000000102004039000003c00010009c000000eb0000213d0000000100200190000000eb0000c13d000000400010043f000000200030008c000000430000413d00000000040a0433000003ba0040009c000000430000213d000003c102000041000000000302041a00000044021000390000000f0500002900000000005204350000002006100039000004070500004100000000005604350000002405100039000000000045043500000044040000390000000000410435000003cb0010009c000000eb0000213d000003ba02300197000000c003100039000000400030043f000000a004100039000003cc03000041000d00000004001d000000000034043500000080041000390000002003000039000c00000004001d0000000000340435000003b70060009c000003b70600804100000040036002100000000001010433000003b70010009c000003b7010080410000006001100210000000000131019f0000000003000414000003b70030009c000003b703008041000000c003300210000000000131019f000e00000002001d0ed60ecc0000040f0000006003100270000003b7033001980000008009000039000000600a000039000006ff0000613d0000001f04300039000003b8044001970000003f04400039000003cd04400197000000400a00043d00000000044a00190000000000a4004b00000000050000390000000105004039000003c00040009c000000eb0000213d0000000100500190000000eb0000c13d000000400040043f00000000093a0436000003b9053001980000000004590019000006f20000613d000000000601034f0000000007090019000000006806043c0000000007870436000000000047004b000006ee0000c13d0000001f03300190000006ff0000613d000000000151034f0000000303300210000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f0000000000140435000000000300041500000000010a04330000000100200190000009570000613d000000000001004b00000003040000290000000f020000290000071f0000c13d000b00000003001d000c0000000a001d000d00000009001d000003ce0100004100000000001004430000000e0100002900000004001004430000000001000414000003b70010009c000003b701008041000000c001100210000003cf011001c700008002020000390ed60ed10000040f0000000100200190000009d40000613d000000000101043b000000000001004b00000003040000290000000f020000290000000d090000290000000c0a0000290000000b03000029000003640000613d00000000010004150000000001130049000000000100000200000000010a0433000000000001004b000007830000613d000003d00010009c000000430000213d000000200010008c000000430000413d0000000001090433000000010010008c000000430000213d000000000001004b00000003040000290000000f02000029000007830000c13d000008260000013d000003f50100004100000000001004430000000001000412000000040010044300000024000004430000000001000414000003b70010009c000003b701008041000000c001100210000003f6011001c700008005020000390ed60ed10000040f0000000100200190000009d40000613d000000000101043b000003ce020000410000000000200443000003ba0110019700000004001004430000000001000414000003b70010009c000003b701008041000000c001100210000003cf011001c700008002020000390ed60ed10000040f0000000100200190000009d40000613d000000000101043b000000000001004b000000430000613d000000400400043d0000040501000041000000000014043500000000010003670000000402100370000000000202043b0000000402200029000000000121034f000000000101043b00000024024000390000000f030000290000000000320435000e00000004001d00000004024000390000000000120435000003f50100004100000000001004430000000001000412000000040010044300000024000004430000000001000414000003b70010009c000003b701008041000000c001100210000003f6011001c700008005020000390ed60ed10000040f0000000100200190000009d40000613d000000000201043b0000000e01000029000003b70010009c000003b70100804100000040011002100000000003000414000003b70030009c000003b703008041000000c003300210000000000113019f000003c5011001c7000003ba022001970ed60ecc0000040f0000000100200190000009730000613d0000000e01000029000003c00010009c000000eb0000213d0000000e01000029000000400010043f00000003040000290000000f02000029000000020020002a000001a60000413d000200020020002d000003dd0000013d0000001f04300039000003b8044001970000003f04400039000003cd04400197000000400500043d0000000004450019000f00000005001d000000000054004b00000000050000390000000105004039000003c00040009c000000eb0000213d0000000100500190000000eb0000c13d000000400040043f0000001f0430018f0000000f050000290000000006350436000003b905300198000b00000006001d0000000003560019000007a30000613d000000000601034f0000000b07000029000000006806043c0000000007870436000000000037004b0000079f0000c13d000000000004004b0000034c0000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000034c0000013d00000000070a00190000000000a1004b000007f40000c13d000000000061004b000007f40000c13d000003ee0030009c0000000f09000029000008370000213d0000000302300039000000000302041a000000000093001a000001a60000413d0000000003930019000008e50000013d000000000001004b000008050000c13d000000400100043d000003c60200004100000000002104350000000402100039000000200300003900000000003204350000000c020000290000000002020433000000240310003900000000002304350000004403100039000000000002004b0000000d07000029000007d70000613d000000000400001900000000054300190000000006470019000000000606043300000000006504350000002004400039000000000024004b000007d00000413d0000001f042000390000040e04400197000000000223001900000000000204350000004402400039000003b70020009c000003b7020080410000006002200210000003b70010009c000003b7010080410000004001100210000000000112019f00000ed80001043000000000010004150000000a0110006900000000010000020000000f010000290000000001010433000000000001004b0000081c0000c13d000000800100043d000001400000044300000160001004430000002001000039000001000010044300000001010000390000012000100443000003d10100004100000ed70001042e00000000056100490000000f0900002900000000049500a90000000d080000290000000e0080006c000007fd0000613d00000000069400d9000000000056004b000001a60000c13d000000000071004b000008350000c13d000003ef01000041000000000010043f0000001201000039000000040010043f000003f00100004100000ed8000104300000000b02000029000003b70020009c000003b7020080410000004002200210000003b70010009c000003b7010080410000006001100210000000000121019f00000ed8000104300000000201000039000000000101041a000003bd2010012a00000000022100490000000f010000290ed60c9f0000040f000000400200043d000d00000002001d000b00000001001d000000000001004b0000083d0000c13d0000000b010000290000000d02000029000001e60000013d000003d00010009c000000430000213d000000200010008c000000430000413d0000000b010000290000000001010433000000010010008c000000430000213d000000000001004b000007eb0000c13d000000400100043d00000064021000390000040803000041000000000032043500000044021000390000040903000041000000000032043500000024021000390000002a030000390000000000320435000003c602000041000000000021043500000004021000390000002003000039000003cf0000013d000003ee0030009c000008df0000a13d000003ef01000041000000000010043f0000003201000039000000040010043f000003f00100004100000ed80001043000000403010000410000000d030000290000000001130436000a00000001001d00000004013000390000000f020000290000000000210435000003b70030009c000003b701000041000000000103401900000040011002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f000003f0011001c70000000c020000290ed60ed10000040f0000006003100270000003b703300197000000600030008c000000600400003900000000040340190000001f0640018f00000060074001900000000d057000290000085f0000613d000000000801034f0000000d09000029000000008a08043c0000000009a90436000000000059004b0000085b0000c13d000000000006004b0000086c0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f00000000006504350000000100200190000009130000613d0000001f01400039000000e00210018f0000000d01200029000000000021004b00000000020000390000000102004039000003c00010009c000000eb0000213d0000000100200190000000eb0000c13d000000400010043f000000600030008c000000430000413d000004040010009c000000eb0000213d0000006002100039000000400020043f0000000d020000290000000002020433000003fa00200198000003fb030000410000000003006019000003fc04200197000000000343019f000000000032004b000000430000c13d00000000022104360000000a03000029000000000303043300000000003204350000000d0200002900000040022000390000000002020433000000010020008c000000430000213d000000400110003900000000002104350000000e0030006b0000099f0000413d000000000002004b0000099f0000c13d000000400300043d000e00000003001d0000040601000041000000000013043500000004013000390000000f020000290000000000210435000003b70030009c000003b701000041000000000103401900000040011002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f000003f0011001c70000000c020000290ed60ed10000040f0000006003100270000003b703300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000000e0b0000290000000e05700029000008ba0000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000008b60000c13d000000000006004b000008c70000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f00000000006504350000000100200190000009d50000613d0000001f01400039000000600210018f0000000001b20019000000000021004b00000000020000390000000102004039000003c00010009c000000eb0000213d0000000100200190000000eb0000c13d000000400010043f000000200030008c000000430000413d00000000020b0433000003ba0020009c000000430000213d000003c101000041000000000101041a000003ba011001970000000b030000290ed60bbf0000040f000009cc0000013d00000000042400d90000000302300039000000000302041a000000000043001a000001a60000413d0000000003430019000000000032041b000000400200043d000000200320003900000000009304350000000000120435000003b70020009c000003b70200804100000040012002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f000003f1011001c70000800d020000390000000103000039000003f2040000410ed60ecc0000040f0000000100200190000000430000613d000000000100001900000ed70001042e0000001f0530018f000003b906300198000000400200043d0000000004620019000003b10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000009020000c13d000003b10000013d0000001f0530018f000003b906300198000000400200043d0000000004620019000003b10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000090e0000c13d000003b10000013d0000001f0530018f000003b906300198000000400200043d0000000004620019000003b10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000091a0000c13d000003b10000013d000000020000006b000002730000613d000003eb01000041000000000201041a000000020220006c000001a60000413d000000000021041b000002730000013d0000001f0530018f000003b906300198000000400200043d0000000004620019000003b10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000092e0000c13d000003b10000013d0000001f0530018f000003b906300198000000400200043d0000000004620019000003b10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000093a0000c13d000003b10000013d0000001f0530018f000003b906300198000000400200043d0000000004620019000003b10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000009460000c13d000003b10000013d0000001f0530018f000003b906300198000000400200043d0000000004620019000003b10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000009520000c13d000003b10000013d000000000001004b0000099b0000c13d000000400100043d000003c60200004100000000002104350000000402100039000000200300003900000000003204350000000c020000290000000002020433000000240310003900000000002304350000004403100039000000000002004b0000000d070000290000096f0000613d000000000400001900000000053400190000000006740019000000000606043300000000006504350000002004400039000000000024004b000009680000413d0000001f042000390000040e044001970000000002320019000007da0000013d00000060061002700000001f0460018f000003b905600198000000400200043d00000000035200190000097f0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000038004b0000097b0000c13d000003b706600197000000000004004b0000098d0000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000006001600210000003bf0000013d0000001f0530018f000003b906300198000000400200043d0000000004620019000003b10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000009960000c13d000003b10000013d000003b70090009c000003b7090080410000004002900210000008090000013d000003ce0100004100000000001004430000000c0100002900000004001004430000000001000414000003b70010009c000003b701008041000000c001100210000003cf011001c700008002020000390ed60ed10000040f0000000100200190000009d40000613d000000000101043b000000000001004b000000430000613d000000400300043d00000024013000390000000b0200002900000000002104350000040501000041000000000013043500000004013000390000000f020000290000000000210435000003b70030009c000f00000003001d000003b701000041000000000103401900000040011002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f000003c5011001c70000000c020000290ed60ecc0000040f0000000100200190000009e10000613d0000000f01000029000003c00010009c000000eb0000213d0000000f01000029000000400010043f000003eb01000041000000000201041a0000000b0220006c000001a60000413d000000000021041b000000400100043d000d00000001001d000008190000013d000000000001042f0000001f0530018f000003b906300198000000400200043d0000000004620019000003b10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000009dc0000c13d000003b10000013d00000060061002700000001f0460018f000003b905600198000000400200043d00000000035200190000097f0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000038004b000009e90000c13d0000097f0000013d000a000000000002000100000002001d000000000200041a000900000002001d000200000001001d000000000010043f0000000101000039000000200010043f0000000001000414000003b70010009c000003b701008041000000c001100210000003f1011001c700008010020000390ed60ed10000040f000000010020019000000b6e0000613d000000000101043b000000000101041a000800000001001d000003f50100004100000000001004430000000001000412000000040010044300000024000004430000000001000414000003b70010009c000003b701008041000000c001100210000003f6011001c700008005020000390ed60ed10000040f000000010020019000000ba60000613d000000000201043b000000400400043d000a00000004001d000003f7010000410000000000140435000000040140003900000002030000290000000000310435000003b70040009c000003b701000041000000000104401900000040011002100000000003000414000003b70030009c000003b703008041000000c003300210000000000113019f000003f0011001c7000003ba02200197000700000002001d0ed60ed10000040f0000000a0b0000290000006003100270000003b703300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b001900000a350000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b00000a310000c13d000000000006004b00000a420000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000010020019000000ba70000613d0000001f01400039000000600110018f0000000004b10019000000000014004b00000000010000390000000101004039000003c00040009c00000b700000213d000000010010019000000b700000c13d000000400040043f000000200030008c00000b6e0000413d00000000010b0433000000000001004b00000b650000613d0000000803000029000000000003004b00000abc0000c13d000000240140003900000001020000390000000000210435000003f8010000410000000001140436000800000001001d000000040140003900000002020000290000000000210435000003b70040009c000003b701000041000000000104401900000040011002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f000003c5011001c70000000702000029000a00000004001d0ed60ed10000040f0000000a0b0000290000006003100270000003b703300197000000a00030008c000000a00400003900000000040340190000001f0640018f000000e00740019000000000057b001900000a7d0000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b00000a790000c13d000000000006004b00000a8a0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000010020019000000bb30000613d0000001f01400039000001e00110018f0000000001b10019000003c00010009c00000b700000213d000000400010043f000000a00030008c00000b6e0000413d000003f90010009c00000b700000213d000000a002100039000000400020043f00000000020b0433000003fa00200198000003fb030000410000000003006019000003fc04200197000000000343019f000000000032004b00000b6e0000c13d000000000221043600000008030000290000000003030433000003fa00300198000003fb040000410000000004006019000003fc05300197000000000454019f000000000043004b00000b6e0000c13d00000000003204350000004002b000390000000002020433000000400310003900000000002304350000006003b0003900000000030304330000006004100039000000000034043500000080011000390000008003b0003900000000030304330000000000310435000003bd0020009c000000000300001900000abc0000413d000003bd1020012a00000000031200490000000101000029000000000013004b00000b650000813d0000000902000029000000000012004b000a00000000001d00000b630000813d000000000023004b000000000302a019000a00000000001d0000000002000019000400000002001d000903ec003000a400000b680000813d000003fd0230009a000000090020006c00000b680000213d000800000003001d000000400300043d000600000003001d0000002401300039000500000002001d0000000000210435000003fe010000410000000000130435000000040130003900000002020000290000000000210435000003b70030009c000003b701000041000000000103401900000040011002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f000003c5011001c700000007020000290ed60ed10000040f000000060a0000290000006003100270000003b703300197000000200030008c00000020040000390000000004034019000000200640019000000000056a001900000af30000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b00000aef0000c13d0000001f0740019000000b000000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f0000000000650435000000010020019000000b880000613d0000001f01400039000000600110018f0000000004a10019000000000014004b00000000010000390000000101004039000003c00040009c00000b700000213d000000010010019000000b700000c13d000000400040043f000000200030008c000000050200002900000b6e0000413d00000000010a0433000300000001001d000003ff01000041000000000014043500000004014000390000000000210435000003b70040009c000003b701000041000000000104401900000040011002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f000003f0011001c70000000702000029000600000004001d0ed60ed10000040f000000060a0000290000006003100270000003b703300197000000200030008c00000020040000390000000004034019000000200640019000000000056a001900000b320000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b00000b2e0000c13d0000001f0740019000000b3f0000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f0000000000650435000000010020019000000b7c0000613d0000001f01400039000000600110018f0000000001a10019000003c00010009c00000b700000213d000000400010043f000000200030008c00000b6e0000413d00000000010a0433000000010010008c000000010100a0390000000802000029000004000020009c00000b760000813d0000000302200039000000000302041a000000030400002900000000023400a9000000000004004b00000b580000613d00000000044200d9000000000034004b00000b680000c13d00000000011200d90000000a0010002a00000b680000413d000a000a0010002d0000000402000029000000300020008c00000b630000213d00000001022000390000000903000029000000010030006c00000ac70000413d0000000a01000029000000000001042d000a00000000001d0000000a01000029000000000001042d000003ef01000041000000000010043f0000001101000039000000040010043f000003f00100004100000ed800010430000000000100001900000ed800010430000003ef01000041000000000010043f0000004101000039000000040010043f000003f00100004100000ed800010430000003ef01000041000000000010043f0000003201000039000000040010043f000003f00100004100000ed8000104300000001f0530018f000003b906300198000000400200043d000000000462001900000b930000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000b830000c13d00000b930000013d0000001f0530018f000003b906300198000000400200043d000000000462001900000b930000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000b8f0000c13d000000000005004b00000ba00000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000003b70020009c000003b7020080410000004002200210000000000112019f00000ed800010430000000000001042f0000001f0530018f000003b906300198000000400200043d000000000462001900000b930000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000bae0000c13d00000b930000013d0000001f0530018f000003b906300198000000400200043d000000000462001900000b930000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000bba0000c13d00000b930000013d0004000000000002000000400400043d00000044054000390000000000350435000000200340003900000407050000410000000000530435000003ba0220019700000024054000390000000000250435000000440200003900000000002404350000040f0040009c00000c440000813d000003cb0040009c00000c440000213d000400800040003d000000c002400039000000040020006c00000c440000413d000003ba05100197000000400020043f000000200100003900000004020000290000000000120435000000a002400039000003cc01000041000200000002001d0000000000120435000003b70030009c000003b70300804100000040013002100000000002040433000003b70020009c000003b7020080410000006002200210000000000112019f0000000002000414000003b70020009c000003b702008041000000c002200210000000000121019f000300000005001d00000000020500190ed60ecc0000040f0000006003100270000003b70330019800000c160000613d0000001f04300039000003b8044001970000003f04400039000003cd04400197000000400a00043d00000000044a00190000000000a4004b00000000050000390000000105004039000003c00040009c00000c440000213d000000010050019000000c440000c13d000000400040043f0000001f0430018f00000000093a0436000003b905300198000000000359001900000c080000613d000000000601034f0000000007090019000000006806043c0000000007870436000000000037004b00000c040000c13d000000000004004b00000c180000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f000000000013043500000c180000013d000000600a0000390000008009000039000000000300041500000000010a0433000000010020019000000c4c0000613d000000000001004b00000c340000c13d000100000003001d00020000000a001d000400000009001d000003ce010000410000000000100443000000030100002900000004001004430000000001000414000003b70010009c000003b701008041000000c001100210000003cf011001c700008002020000390ed60ed10000040f000000010020019000000c8d0000613d000000000101043b000000000001004b0000000409000029000000020a000029000000010300002900000c8e0000613d00000000010004150000000001130049000000000100000200000000010a0433000000000001004b00000c430000613d000003d00010009c00000c4a0000213d000000200010008c00000c4a0000413d0000000001090433000000010010008c00000c4a0000213d000000000001004b00000c710000613d000000000001042d000003ef01000041000000000010043f0000004101000039000000040010043f000003f00100004100000ed800010430000000000100001900000ed800010430000000000001004b00000c850000c13d000000400100043d000003c602000041000000000021043500000004021000390000002003000039000000000032043500000004020000290000000002020433000000240310003900000000002304350000004403100039000000000002004b000000020700002900000c640000613d000000000400001900000000054300190000000006470019000000000606043300000000006504350000002004400039000000000024004b00000c5d0000413d0000001f042000390000040e04400197000000000223001900000000000204350000004402400039000003b70020009c000003b7020080410000006002200210000003b70010009c000003b7010080410000004001100210000000000112019f00000ed800010430000000400100043d00000064021000390000040803000041000000000032043500000044021000390000040903000041000000000032043500000024021000390000002a030000390000000000320435000003c6020000410000000000210435000000040210003900000020030000390000000000320435000003b70010009c000003b7010080410000004001100210000003c9011001c700000ed800010430000003b70090009c000003b7090080410000004002900210000003b70010009c000003b7010080410000006001100210000000000121019f00000ed800010430000000000001042f000000400100043d00000044021000390000040a03000041000000000032043500000024021000390000001d030000390000000000320435000003c6020000410000000000210435000000040210003900000020030000390000000000320435000003b70010009c000003b70100804100000040011002100000040b011001c700000ed800010430000b000000000002000200000002001d000000000200041a000a00000002001d000300000001001d000000000010043f0000000101000039000000200010043f0000000001000414000003b70010009c000003b701008041000000c001100210000003f1011001c700008010020000390ed60ed10000040f000000010020019000000e490000613d000000000101043b000000000101041a000100000001001d000003f50100004100000000001004430000000001000412000000040010044300000024000004430000000001000414000003b70010009c000003b701008041000000c001100210000003f6011001c700008005020000390ed60ed10000040f000000010020019000000e870000613d000000000201043b000000400400043d000b00000004001d000003f7010000410000000000140435000000040140003900000003030000290000000000310435000003b70040009c000003b701000041000000000104401900000040011002100000000003000414000003b70030009c000003b703008041000000c003300210000000000113019f000003f0011001c7000003ba02200197000800000002001d0ed60ed10000040f0000000b0b0000290000006003100270000003b703300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b001900000ce60000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b00000ce20000c13d000000000006004b00000cf30000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000010020019000000e880000613d0000001f01400039000000600110018f0000000004b10019000000000014004b00000000010000390000000101004039000003c00040009c00000e510000213d000000010010019000000e510000c13d000000400040043f000000200030008c00000e490000413d00000000010b0433000000000001004b00000e180000613d0000000103000029000000000003004b00000d6d0000c13d000000240140003900000001020000390000000000210435000003f8010000410000000001140436000900000001001d000000040140003900000003020000290000000000210435000003b70040009c000003b701000041000000000104401900000040011002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f000003c5011001c70000000802000029000b00000004001d0ed60ed10000040f0000000b0b0000290000006003100270000003b703300197000000a00030008c000000a00400003900000000040340190000001f0640018f000000e00740019000000000057b001900000d2e0000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b00000d2a0000c13d000000000006004b00000d3b0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000010020019000000e940000613d0000001f01400039000001e00110018f0000000001b10019000003c00010009c00000e510000213d000000400010043f000000a00030008c00000e490000413d000003f90010009c00000e510000213d000000a002100039000000400020043f00000000020b0433000003fa00200198000003fb030000410000000003006019000003fc04200197000000000343019f000000000032004b00000e490000c13d000000000221043600000009030000290000000003030433000003fa00300198000003fb040000410000000004006019000003fc05300197000000000454019f000000000043004b00000e490000c13d00000000003204350000004002b000390000000002020433000000400310003900000000002304350000006003b0003900000000030304330000006004100039000000000034043500000080011000390000008003b0003900000000030304330000000000310435000003bd0020009c000000000300001900000d6d0000413d000003bd1020012a00000000031200490000000201000029000000000013004b000100000003001d00000e1b0000813d0000000a0030006c0000000a0300a0290000000a0010006b00000e1e0000813d000b00000000001d0000000002000019000500000002001d000003ec0130009c00000e4b0000813d000003fd0230009a000000000012004b00000e4b0000213d000a00000001001d000900000003001d000000400300043d000700000003001d0000002401300039000600000002001d0000000000210435000003fe010000410000000000130435000000040130003900000003020000290000000000210435000003b70030009c000003b701000041000000000103401900000040011002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f000003c5011001c700000008020000290ed60ed10000040f000000070a0000290000006003100270000003b703300197000000200030008c00000020040000390000000004034019000000200640019000000000056a001900000da40000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b00000da00000c13d0000001f0740019000000db10000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f0000000000650435000000010020019000000e690000613d0000001f01400039000000600110018f0000000004a10019000000000014004b00000000010000390000000101004039000003c00040009c00000e510000213d000000010010019000000e510000c13d000000400040043f000000200030008c000000060200002900000e490000413d00000000010a0433000400000001001d000003ff01000041000000000014043500000004014000390000000000210435000003b70040009c000003b701000041000000000104401900000040011002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f000003f0011001c70000000802000029000700000004001d0ed60ed10000040f000000070a0000290000006003100270000003b703300197000000200030008c00000020040000390000000004034019000000200640019000000000056a001900000de30000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b00000ddf0000c13d0000001f0740019000000df00000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f0000000000650435000000010020019000000e5d0000613d0000001f01400039000000600110018f0000000001a10019000003c00010009c00000e510000213d000000400010043f000000200030008c00000e490000413d00000000010a0433000000010010008c000000010100a0390000000902000029000004000020009c0000000a0400002900000e570000813d0000000302200039000000000302041a000000040500002900000000025300a9000000000005004b00000e0b0000613d00000000045200d9000000000034004b0000000a0400002900000e4b0000c13d00000000011200d90000000b0010002a00000e4b0000413d000b000b0010002d0000000502000029000000300020008c00000e160000213d0000000102200039000000020040006c000000000304001900000d770000413d000900000004001d00000e200000013d000b00000000001d000900010000002d00000e200000013d000b00000000001d000900000003001d00000e200000013d000900000003001d000b00000000001d0000000301000029000000000010043f0000000101000039000000200010043f0000000001000414000003b70010009c000003b701008041000000c001100210000003f1011001c700008010020000390ed60ed10000040f000000010020019000000e490000613d000000000101043b0000000902000029000000000021041b0000000b0000006b00000e470000613d000000400100043d0000000b020000290000000000210435000003b70010009c000003b70100804100000040011002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f00000401011001c70000800d02000039000000040300003900000402040000410000000305000029000000010600002900000009070000290ed60ecc0000040f000000010020019000000e490000613d0000000b01000029000000000001042d000000000100001900000ed800010430000003ef01000041000000000010043f0000001101000039000000040010043f000003f00100004100000ed800010430000003ef01000041000000000010043f0000004101000039000000040010043f000003f00100004100000ed800010430000003ef01000041000000000010043f0000003201000039000000040010043f000003f00100004100000ed8000104300000001f0530018f000003b906300198000000400200043d000000000462001900000e740000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000e640000c13d00000e740000013d0000001f0530018f000003b906300198000000400200043d000000000462001900000e740000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000e700000c13d000000000005004b00000e810000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000003b70020009c000003b7020080410000004002200210000000000112019f00000ed800010430000000000001042f0000001f0530018f000003b906300198000000400200043d000000000462001900000e740000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000e8f0000c13d00000e740000013d0000001f0530018f000003b906300198000000400200043d000000000462001900000e740000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000e9b0000c13d00000e740000013d000000000001042f0000000001000414000003b70010009c000003b701008041000000c001100210000003f1011001c700008010020000390ed60ed10000040f000000010020019000000eac0000613d000000000101043b000000000001042d000000000100001900000ed80001043000000000050100190000000000200443000000050030008c00000ebc0000413d000000040100003900000000020000190000000506200210000000000664001900000005066002700000000006060031000000000161043a0000000102200039000000000031004b00000eb40000413d000003b70030009c000003b70300804100000060013002100000000002000414000003b70020009c000003b702008041000000c002200210000000000112019f00000410011001c700000000020500190ed60ed10000040f000000010020019000000ecb0000613d000000000101043b000000000001042d000000000001042f00000ecf002104210000000102000039000000000001042d0000000002000019000000000001042d00000ed4002104230000000102000039000000000001042d0000000002000019000000000001042d00000ed60000043200000ed70001042e00000ed80001043000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffff796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d9553913202000002000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000093a80fc0c546a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff00000000000000000000000000000000000000000000000000038d7ea4c68003ffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038d7ea4c68004dd62ed3e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004400000000000000000000000008c379a0000000000000000000000000000000000000000000000000000000005361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000000000000000000000000000000000000000000084000000000000000000000000095ea7b300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff3f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656400000000000000000000000000000000000000000000000000000003ffffffe01806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b8302000002000000000000000000000000000000240000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000020000000000000000000000000000008000000100000000000000000000000000000000000000000000000000000000000000000000000000925489a700000000000000000000000000000000000000000000000000000000d1d58b2400000000000000000000000000000000000000000000000000000000fc0c546900000000000000000000000000000000000000000000000000000000fc0c546a00000000000000000000000000000000000000000000000000000000fca3b5aa00000000000000000000000000000000000000000000000000000000d1d58b2500000000000000000000000000000000000000000000000000000000f4359ce500000000000000000000000000000000000000000000000000000000925489a800000000000000000000000000000000000000000000000000000000939ea66b00000000000000000000000000000000000000000000000000000000bee5dc32000000000000000000000000000000000000000000000000000000004607bf5f00000000000000000000000000000000000000000000000000000000899519bd00000000000000000000000000000000000000000000000000000000899519be000000000000000000000000000000000000000000000000000000008ec8468a000000000000000000000000000000000000000000000000000000004607bf600000000000000000000000000000000000000000000000000000000078e979250000000000000000000000000000000000000000000000000000000007546172000000000000000000000000000000000000000000000000000000001f85071600000000000000000000000000000000000000000000000000000000379607f500000000000000000000000000000000000000200000008000000000000000000000000000000000000000000000000000000020000000000000000000000000f8d2906c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000080000000000000000070a0823100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000080000000000000000000000000000000000000000000000000000000000000000000038d7ea4c68005fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6c580fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6c57f00000000000000000000000000000000000000000000000000038d7ea4c67fff4e487b710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000000200000000000000000000000000000000000040000000000000000000000000ce749457b74e10f393f2c6b1ce4261b78791376db5a3f501477a809f03f500d60a441f7b000000000000000000000000000000000000000000000000000000007c72800000000000000000000000000000000000000000000000000000000000310ab089e4439a4c15d089f94afb7896ff553aecb10793d0ab882de59d99a32e0200000200000000000000000000000000000044000000000000000000000000e58f59470000000000000000000000000000000000000000000000000000000044acb42a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff5f0000000000000000000000000000000080000000000000000000000000000000ffffffffffffffffffffffffffffffff80000000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6c581e0514aba00000000000000000000000000000000000000000000000000000000981b24d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038d7ea4c680000200000000000000000000000000000000000020000000000000000000000000cae2990aa9af8eb1c64713b7eddb3a80bf18e49a94a13fe0d0002b5d61d58f00b45a3c0e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff9f0ec84dda000000000000000000000000000000000000000000000000000000006352211e00000000000000000000000000000000000000000000000000000000a9059cbb000000000000000000000000000000000000000000000000000000006f742073756363656564000000000000000000000000000000000000000000005361666545524332303a204552433230206f7065726174696f6e20646964206e416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000000000000000000000000000000000000000000064000000000000000000000000bd665b6200000000000000000000000000000000000000000000000000000000465a1c3500000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0000000000000000000000000000000000000000000000000ffffffffffffff8002000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a2646970667358221220791887c9fbc0d3d90c4cc7d4af4142e620cc6e69276c2105cd4262ffd153062864736f6c6378247a6b736f6c633a312e352e31353b736f6c633a302e382e31393b6c6c766d3a312e302e320055
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000027b04370d8087e714a9f557c1eff7901cea6bb63
-----Decoded View---------------
Arg [0] : _ve (address): 0x27B04370D8087e714a9f557c1EFF7901cea6bB63
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000027b04370d8087e714a9f557c1eff7901cea6bb63
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$12,435.62
Net Worth in ETH
4.200903
Token Allocations
ABX
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ABSTRACT | 100.00% | $0.009919 | 1,253,776.8914 | $12,435.62 |
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.