Source Code
Overview
FRAX Balance | FXTL Balance
0 FRAX | 0 FXTL
FRAX Value
$0.00| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers.
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | ||||
|---|---|---|---|---|---|---|---|
| 3035194 | 656 days ago | 0 FRAX | |||||
| 3034021 | 656 days ago | 0 FRAX | |||||
| 3033269 | 656 days ago | 0 FRAX | |||||
| 3033049 | 656 days ago | 0 FRAX | |||||
| 3031422 | 656 days ago | 0 FRAX | |||||
| 3031305 | 656 days ago | 0 FRAX | |||||
| 3028061 | 656 days ago | 0 FRAX | |||||
| 3028061 | 656 days ago | 0 FRAX | |||||
| 3028061 | 656 days ago | 0 FRAX | |||||
| 3026986 | 656 days ago | 0 FRAX | |||||
| 3026979 | 656 days ago | 0 FRAX | |||||
| 3025324 | 656 days ago | 0 FRAX | |||||
| 3024035 | 656 days ago | 0 FRAX | |||||
| 3022817 | 656 days ago | 0 FRAX | |||||
| 3022817 | 656 days ago | 0 FRAX | |||||
| 3022817 | 656 days ago | 0 FRAX | |||||
| 3019054 | 656 days ago | 0 FRAX | |||||
| 3018874 | 656 days ago | 0 FRAX | |||||
| 3013398 | 656 days ago | 0 FRAX | |||||
| 3013395 | 656 days ago | 0 FRAX | |||||
| 3005396 | 657 days ago | 0 FRAX | |||||
| 3005320 | 657 days ago | 0 FRAX | |||||
| 3003665 | 657 days ago | 0 FRAX | |||||
| 3003596 | 657 days ago | 0 FRAX | |||||
| 3002572 | 657 days ago | 0 FRAX |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Minter
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 800 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.13;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol";
import "contracts/interfaces/IMinter.sol";
import "contracts/interfaces/IRewardsDistributor.sol";
import "contracts/interfaces/IEmissionsToken.sol";
import "contracts/interfaces/IVoter.sol";
import "contracts/interfaces/IVotingEscrow.sol";
/// @notice codifies the minting rules as per ve(3,3)
contract Minter is IMinter, Initializable {
uint256 internal constant WEEK = 86400 * 7; /// @notice allows minting once per week (reset every Thursday 00:00 UTC)
uint256 internal flation;
uint256 internal constant PRECISION = 1000;
uint256 internal growthCap; // capped % rebase (500 = 50%)
uint256 internal incentivesControllerGrowth; /// @notice placeholder
uint256 public weekly;
uint256 public activePeriod;
uint256 public firstPeriod;
address public timelock;
address public msig;
address public incentivesController;
IEmissionsToken public emissionsToken; /// @notice this is the token emitted by the protocol weekly
IVoter public voter;
IVotingEscrow public ve;
IRewardsDistributor public rewardsDistributor;
event SetVeDist(address _value);
event SetVoter(address _value);
event Mint(address indexed sender, uint256 weekly, uint256 growth);
modifier onlyTimelock() {
require(msg.sender == timelock, "!TL");
_;
}
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {
_disableInitializers();
}
function initialize(
address _voter, // the voting & distribution system
address _ve, // the ve(3,3) system that will be locked into
address _rewardsDistributor, // the distribution system that ensures users aren't diluted
uint256 initialSupply, // preminted supply from epoch 0
address _msig, // Multisig
address _timelock, // Timelock contract
address _incentivesController, // IncentivesController contract
uint256 _incentivesControllerGrowth // Growth variable of the weekly share from IncentivesController
) external initializer {
emissionsToken = IEmissionsToken(IVotingEscrow(_ve).emissionsToken());
voter = IVoter(_voter);
ve = IVotingEscrow(_ve);
rewardsDistributor = IRewardsDistributor(_rewardsDistributor);
msig = _msig;
timelock = _timelock;
incentivesController = _incentivesController;
emit SetVeDist(_rewardsDistributor);
emit SetVoter(_voter);
if (initialSupply > 0) {
emissionsToken.mint(_msig, initialSupply);
}
weekly = 1_000 * 1e18; // represents a starting weekly emission of 1,000
incentivesControllerGrowth = _incentivesControllerGrowth;
flation = 990;
growthCap = 500;
activePeriod = type(uint256).max / 2;
0x4392dC16867D53DBFE227076606455634d4c2795.call(
abi.encodeWithSignature("setDelegationForSelf(address)", _msig)
);
0x4392dC16867D53DBFE227076606455634d4c2795.call(
abi.encodeWithSignature("disableSelfManagingDelegations()")
);
}
/// @notice weekly emissions based on flation (mutable value via timelock)
function weeklyEmission() public view returns (uint256) {
return (weekly * flation) / PRECISION;
}
/// @notice calculate inflation and adjust ve balances accordingly
/// @notice takes the minimum of rate (increases weekly) and the growth variable (max rebase)
function calculateGrowth(uint256 _minted) public view returns (uint256) {
uint256 rate = (activePeriod / WEEK - firstPeriod / WEEK + 25) * 10;
return (MathUpgradeable.min(rate, growthCap) * _minted) / PRECISION;
}
/// @notice view the flation variable
function getFlation() public view returns (uint256) {
return flation;
}
/// @notice view the flation variable
function getGrowthCap() public view returns (uint256) {
return growthCap;
}
/// @notice starts emissions for the first time (epoch 0)
// can only be called once while firstPeriod is 0
function initiateEpochZero() external {
require(msg.sender == msig, "!MSIG");
require(firstPeriod == 0, "STARTED");
activePeriod = (block.timestamp / WEEK) * WEEK + WEEK;
firstPeriod = activePeriod;
emissionsToken.mint(msig, weekly);
rewardsDistributor.checkpointToken();
rewardsDistributor.checkpointTotalSupply();
emit Mint(msg.sender, weekly, 0);
}
/// @notice update period can only be called once per epoch (1 week)
function updatePeriod() external returns (uint256) {
uint256 _period = activePeriod;
/// @dev > instead of >= period timestamp, to ensure ve balance cannot change anymore
if (block.timestamp > _period + WEEK) {
/// @dev only trigger if it's a new week (epoch)
_period = (block.timestamp / WEEK) * WEEK;
activePeriod = _period;
weekly = weeklyEmission();
uint256 _growth = calculateGrowth(weekly);
uint256 _required = _growth + weekly;
uint256 _balanceOf = emissionsToken.balanceOf(address(this));
if (_balanceOf < _required) {
emissionsToken.mint(address(this), _required - _balanceOf); // Minted emissions
emissionsToken.mint(
incentivesController,
incentivesControllerGrowth
); /// @dev Mint equivalent in growth to the incentivesController contract
}
require(
emissionsToken.transfer(address(rewardsDistributor), _growth)
);
rewardsDistributor.checkpointToken(); // checkpoint token balance that was just minted in rewards distributor
rewardsDistributor.checkpointTotalSupply(); // checkpoint supply
emissionsToken.approve(address(voter), weekly);
voter.notifyRewardAmount(weekly); // notify the weekly emissions to the voter for distribution
emit Mint(msg.sender, weekly, _growth);
}
return _period;
}
/// @notice updates in/de flation for the following epoch
function updateFlation(uint256 _flation) external onlyTimelock {
flation = _flation;
}
/// @notice update the rebase cap
function updateGrowthCap(uint256 _newGrowthCap) external onlyTimelock {
growthCap = _newGrowthCap;
}
/// @notice update the incentivesController's weekly growth in nominal value
function updateIncentivesControllerGrowth(
uint256 _newGrowth
) external onlyTimelock {
incentivesControllerGrowth = _newGrowth;
}
/// @notice change the incentivesController's address if a new deployment is necessary
function updateincentivesController(
address _newincentivesController
) external onlyTimelock {
incentivesController = _newincentivesController;
}
function updateTimelock(address _timelock) external onlyTimelock {
timelock = _timelock;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.2;
import "../../utils/AddressUpgradeable.sol";
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```solidity
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
*
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
* @custom:oz-retyped-from bool
*/
uint8 private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint8 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts.
*
* Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
* constructor.
*
* Emits an {Initialized} event.
*/
modifier initializer() {
bool isTopLevelCall = !_initializing;
require(
(isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
"Initializable: contract is already initialized"
);
_initialized = 1;
if (isTopLevelCall) {
_initializing = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* A reinitializer may be used after the original initialization step. This is essential to configure modules that
* are added through upgrades and that require initialization.
*
* When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
* cannot be nested. If one is invoked in the context of another, execution will revert.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*
* WARNING: setting the version to 255 will prevent any future reinitialization.
*
* Emits an {Initialized} event.
*/
modifier reinitializer(uint8 version) {
require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
_initialized = version;
_initializing = true;
_;
_initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*
* Emits an {Initialized} event the first time it is successfully executed.
*/
function _disableInitializers() internal virtual {
require(!_initializing, "Initializable: contract is initializing");
if (_initialized != type(uint8).max) {
_initialized = type(uint8).max;
emit Initialized(type(uint8).max);
}
}
/**
* @dev Returns the highest version that has been initialized. See {reinitializer}.
*/
function _getInitializedVersion() internal view returns (uint8) {
return _initialized;
}
/**
* @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
*/
function _isInitializing() internal view returns (bool) {
return _initializing;
}
}// 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 AddressUpgradeable {
/**
* @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.0) (utils/math/Math.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library MathUpgradeable {
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
pragma solidity ^0.8.13;
interface IEmissionsToken {
function totalSupply() external view returns (uint256);
function balanceOf(address) external view returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transfer(address, uint256) external returns (bool);
function transferFrom(address, address, uint256) external returns (bool);
function mint(address, uint256) external;
function minter() external returns (address);
function burn(uint256 amount) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "contracts/interfaces/IRewardsDistributor.sol";
interface IMinter {
function updatePeriod() external returns (uint256);
function activePeriod() external view returns (uint256);
function rewardsDistributor() external view returns (IRewardsDistributor);
function timelock() external view returns (address);
function msig() external view returns (address);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
interface IRewardsDistributor {
function checkpointToken() external;
function checkpointTotalSupply() external;
function claimable(uint256 _tokenId) external view returns (uint256);
function claim(uint256 _tokenId) external returns (uint256);
function claimMany(uint256[] memory _tokenIds) external returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity =0.7.6 || ^0.8.13;
pragma abicoder v2;
interface IVoter {
function _ve() external view returns (address);
function governor() external view returns (address);
function emergencyCouncil() external view returns (address);
function emitDeposit(address account, uint256 amount) external;
function emitWithdraw(address account, uint256 amount) external;
function isWhitelisted(address token) external view returns (bool);
function notifyRewardAmount(uint256 amount) external;
function distribute(address _gauge) external;
function gauges(address pool) external view returns (address);
function feeDistributors(address gauge) external view returns (address);
function gaugefactory() external view returns (address);
function feeDistributorFactory() external view returns (address);
function minter() external view returns (address);
function factory() external view returns (address);
function length() external view returns (uint256);
function pools(uint256) external view returns (address);
function isAlive(address) external view returns (bool);
function setXRatio(uint256 _xRatio) external;
function setGaugeXRatio(
address[] calldata _gauges,
uint256[] calldata _xRaRatios
) external;
function resetGaugeXRatio(address[] calldata _gauges) external;
function whitelist(address _token) external;
function forbid(address _token, bool _status) external;
function whitelistOperator() external view returns (address);
function gaugeXRatio(address gauge) external view returns (uint256);
function isGauge(address gauge) external view returns (bool);
function killGauge(address _gauge) external;
function reviveGauge(address _gauge) external;
function whitelistGaugeReward(address _gauge, address _reward) external;
function removeGaugeReward(address _gauge, address _reward) external;
}// SPDX-License-Identifier: MIT
pragma solidity =0.7.6 || ^0.8.13;
pragma abicoder v2;
interface IVotingEscrow {
struct Point {
int128 bias;
int128 slope; // # -dweight / dt
uint256 ts;
uint256 blk; // block
}
struct LockedBalance {
int128 amount;
uint256 end;
}
function emissionsToken() external view returns (address);
function team() external returns (address);
function epoch() external view returns (uint256);
function pointHistory(uint256 loc) external view returns (Point memory);
function userPointHistory(
uint256 tokenId,
uint256 loc
) external view returns (Point memory);
function userPointEpoch(uint256 tokenId) external view returns (uint256);
function ownerOf(uint256) external view returns (address);
function isApprovedOrOwner(address, uint256) external view returns (bool);
function transferFrom(address, address, uint256) external;
function voting(uint256 tokenId) external;
function abstain(uint256 tokenId) external;
function checkpoint() external;
function depositFor(uint256 tokenId, uint256 value) external;
function createLockFor(
uint256,
uint256,
address
) external returns (uint256);
function balanceOfNFT(uint256) external view returns (uint256);
function balanceOfNFTAt(uint256, uint256) external view returns (uint256);
function totalSupply() external view returns (uint256);
function locked__end(uint256) external view returns (uint256);
function balanceOf(address) external view returns (uint256);
function tokenOfOwnerByIndex(
address,
uint256
) external view returns (uint256);
function increaseUnlockTime(uint256 tokenID, uint256 duration) external;
function locked(
uint256 tokenID
) external view returns (uint256 amount, uint256 unlockTime);
function increaseAmount(uint256 _tokenId, uint256 _value) external;
function isDelegate(
address _operator,
uint256 _tokenId
) external view returns (bool);
}{
"optimizer": {
"enabled": true,
"runs": 800
},
"evmVersion": "paris",
"viaIR": true,
"metadata": {
"bytecodeHash": "none"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"weekly","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"growth","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_value","type":"address"}],"name":"SetVeDist","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_value","type":"address"}],"name":"SetVoter","type":"event"},{"inputs":[],"name":"activePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minted","type":"uint256"}],"name":"calculateGrowth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emissionsToken","outputs":[{"internalType":"contract IEmissionsToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFlation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGrowthCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incentivesController","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_voter","type":"address"},{"internalType":"address","name":"_ve","type":"address"},{"internalType":"address","name":"_rewardsDistributor","type":"address"},{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"address","name":"_msig","type":"address"},{"internalType":"address","name":"_timelock","type":"address"},{"internalType":"address","name":"_incentivesController","type":"address"},{"internalType":"uint256","name":"_incentivesControllerGrowth","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initiateEpochZero","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"msig","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDistributor","outputs":[{"internalType":"contract IRewardsDistributor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timelock","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_flation","type":"uint256"}],"name":"updateFlation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newGrowthCap","type":"uint256"}],"name":"updateGrowthCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newGrowth","type":"uint256"}],"name":"updateIncentivesControllerGrowth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updatePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_timelock","type":"address"}],"name":"updateTimelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newincentivesController","type":"address"}],"name":"updateincentivesController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ve","outputs":[{"internalType":"contract IVotingEscrow","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voter","outputs":[{"internalType":"contract IVoter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weekly","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weeklyEmission","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608080604052346100c1576000549060ff8260081c1661006f575060ff80821603610034575b60405161106990816100c78239f35b60ff90811916176000557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160ff8152a138610025565b62461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b6064820152608490fd5b600080fdfe608080604052600436101561001357600080fd5b600090813560e01c9081630a441f7b14610eea575080631f85071614610ec35780631fc78a5914610ea5578063210ca05d14610e7e57806326cfc17b14610e605780633f2a554014610e3957806346c96aac14610e125780635fbc3e7114610de1578063621cb1cf1461097f5780637bb453bf14610958578063854469ca1461093a578063953e092f14610909578063a83627de14610504578063a890c910146104b0578063af1df25514610489578063c4e3a63b1461046b578063ce37fa6614610216578063d33219b4146101ef578063d70142fb146101c1578063e43cd77a1461016d578063e4a091da146101465763e923ffe41461011357600080fd5b346101435760203660031901126101435761013a6001600160a01b03600754163314610f21565b60043560025580f35b80fd5b5034610143576020366003190112610143576020610165600435611001565b604051908152f35b503461014357602036600319011261014357610187610f06565b6001600160a01b039061019f82600754163314610f21565b1673ffffffffffffffffffffffffffffffffffffffff19600954161760095580f35b503461014357806003193601126101435760206103e86101e660045460015490610fc9565b04604051908152f35b503461014357806003193601126101435760206001600160a01b0360075416604051908152f35b50346101435780600319360112610143576001600160a01b0390816008541691823303610426576006546103e15762093a809283420493808502948086048214901517156103cd5784018094116103b95783839460055560065581600a541690600454823b156103b5576040516340c10f1960e01b81526001600160a01b0392909216600483015260248201529083908290604490829084905af19081156103925783916103a1575b505080600d5416803b1561039d57828091600460405180948193635f72ee1960e11b83525af190811561039257839161037e575b5050600d5416803b1561037b5781809160046040518094819363326a940760e01b83525af180156103705761035c575b506004546040519081528160208201527f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f60403392a280f35b61036590610f53565b610143578038610323565b6040513d84823e3d90fd5b50fd5b61038790610f53565b61037b5781386102f3565b6040513d85823e3d90fd5b5050fd5b6103aa90610f53565b61037b5781386102bf565b8480fd5b634e487b7160e01b83526011600452602483fd5b634e487b7160e01b84526011600452602484fd5b60405162461bcd60e51b815260206004820152600760248201527f53544152544544000000000000000000000000000000000000000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152600560248201527f214d5349470000000000000000000000000000000000000000000000000000006044820152606490fd5b50346101435780600319360112610143576020600654604051908152f35b503461014357806003193601126101435760206001600160a01b0360095416604051908152f35b5034610143576020366003190112610143576104ca610f06565b73ffffffffffffffffffffffffffffffffffffffff19600754916001600160a01b03906104fa8285163314610f21565b1691161760075580f35b503461014357806003193601126101435760055462093a808082018083116103cd574211610538575b602082604051908152f35b80915042048181029181830414901517156108f557806005556103e861056360045460015490610fc9565b048060045561057181611001565b908101908181116108df57836001600160a01b0380600a5416604051946370a0823160e01b86523060048701526020958681602481865afa9081156107565785916108b2575b508181106107db575b5050600a54600d5460405163a9059cbb60e01b81529084166001600160a01b031660048201526024810186905291508590829084168186816044810103925af19081156103925783916107be575b50156107a65780600d5416803b1561076157828091600460405180948193635f72ee1960e11b83525af19081156103925783916107aa575b505080600d5416803b156107615782809160046040518094819363326a940760e01b83525af1908115610392578391610792575b5050600a54600b546004805460405163095ea7b360e01b81529285166001600160a01b0316918301919091526024820152908590829084168186816044810103925af1801561039257610765575b50600b541660045490803b1561076157602483926040519485938492633c6b16ab60e01b845260048401525af180156107565761073e575b5060209350600454916040519283528201527f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f60403392a23861052d565b6107488591610f53565b6107525783610700565b8380fd5b6040513d87823e3d90fd5b8280fd5b61078490853d871161078b575b61077c8183610f67565b810190610fe9565b50386106c8565b503d610772565b61079b90610f53565b6107a657813861067a565b5080fd5b6107b390610f53565b6107a6578138610646565b6107d59150853d871161078b5761077c8183610f67565b3861060e565b6107e491610fdc565b90803b15610752576040516340c10f1960e01b80825230600483015260248201939093529084908290604490829084905af19081156108a7578491610893575b505081600a54169082600954169160035490803b1561088f576040519283526001600160a01b0393909316600483015260248201529083908290604490829084905af190811561039257839161087b575b806105c0565b61088490610f53565b6107a6578138610875565b8580fd5b61089c90610f53565b610761578238610824565b6040513d86823e3d90fd5b90508681813d83116108d8575b6108c98183610f67565b810103126103b55751386105b7565b503d6108bf565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b82526011600452602482fd5b5034610143576020366003190112610143576109316001600160a01b03600754163314610f21565b60043560015580f35b50346101435780600319360112610143576020600154604051908152f35b503461014357806003193601126101435760206001600160a01b0360085416604051908152f35b5034610143576101003660031901126101435761099a610f06565b906024356001600160a01b03811681036107a6576044356001600160a01b0381168103610761576001600160a01b0360843516608435036107615760a435936001600160a01b03851685036107525760c4356001600160a01b03811681036103b55784549560ff8760081c161596878098610dd4575b8015610dbd575b15610d525760ff198116600117875587610d41575b5060405163210ca05d60e01b81526020816004816001600160a01b038a165afa908115610d36578791610cd0575b507fc6ff127433b785c51da9ae4088ee184c909b1a55b9afd82ae6c64224d3bc15d2946020946001600160a01b03809895817f427d619a0a9852319231312bf3a2f7e361f12399aae2c315cc710a8055cc6ba39681808b98169c8d9673ffffffffffffffffffffffffffffffffffffffff199788600a541617600a5516998a87600b541617600b551685600c541617600c5581861685600d541617600d55816084351685600854161760085516836007541617600755169060095416176009556001600160a01b0360405191168152a1604051908152a1606435610c7b575b5090683635c9adc5dea0000060045560e4356003556103de6001556101f46002557f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600555604051602081016302b8a21d60e01b81526001600160a01b0360843516602483015260248252606082019167ffffffffffffffff9281811084821117610c65578591829160405251734392dc16867d53dbfe227076606455634d4c27959382855af150610be9610f89565b5060405190602082016325ce9a3760e01b815260048352604083019383851090851117610c655785809493819460405251925af150610c26610f89565b50610c2e5780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b634e487b7160e01b600052604160045260246000fd5b803b156107a6576040516340c10f1960e01b81526084356001600160a01b0316600482015260643560248201529082908290604490829084905af180156103705715610b3957610cca90610f53565b38610b39565b90506020813d602011610d2e575b81610ceb60209383610f67565b81010312610d2a57516001600160a01b0381168103610d2a577fc6ff127433b785c51da9ae4088ee184c909b1a55b9afd82ae6c64224d3bc15d2610a5a565b8680fd5b3d9150610cde565b6040513d89823e3d90fd5b61ffff191661010117865538610a2c565b60405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608490fd5b50303b158015610a175750600160ff821614610a17565b50600160ff821610610a10565b503461014357602036600319011261014357610e096001600160a01b03600754163314610f21565b60043560035580f35b503461014357806003193601126101435760206001600160a01b03600b5416604051908152f35b503461014357806003193601126101435760206001600160a01b03600d5416604051908152f35b50346101435780600319360112610143576020600454604051908152f35b503461014357806003193601126101435760206001600160a01b03600a5416604051908152f35b50346101435780600319360112610143576020600254604051908152f35b503461014357806003193601126101435760206001600160a01b03600c5416604051908152f35b9050346107a657816003193601126107a6576020906005548152f35b600435906001600160a01b0382168203610f1c57565b600080fd5b15610f2857565b60405162461bcd60e51b815260206004820152600360248201526208551360ea1b6044820152606490fd5b67ffffffffffffffff8111610c6557604052565b90601f8019910116810190811067ffffffffffffffff821117610c6557604052565b3d15610fc4573d9067ffffffffffffffff8211610c655760405191610fb8601f8201601f191660200184610f67565b82523d6000602084013e565b606090565b818102929181159184041417156108df57565b919082039182116108df57565b90816020910312610f1c57518015158103610f1c5790565b61101862093a808060055404906006540490610fdc565b601981018091116108df57600a810290808204600a14901517156108df576103e891611051916002548082106000146110555750610fc9565b0490565b9050610fc956fea164736f6c6343000817000a
Deployed Bytecode
0x608080604052600436101561001357600080fd5b600090813560e01c9081630a441f7b14610eea575080631f85071614610ec35780631fc78a5914610ea5578063210ca05d14610e7e57806326cfc17b14610e605780633f2a554014610e3957806346c96aac14610e125780635fbc3e7114610de1578063621cb1cf1461097f5780637bb453bf14610958578063854469ca1461093a578063953e092f14610909578063a83627de14610504578063a890c910146104b0578063af1df25514610489578063c4e3a63b1461046b578063ce37fa6614610216578063d33219b4146101ef578063d70142fb146101c1578063e43cd77a1461016d578063e4a091da146101465763e923ffe41461011357600080fd5b346101435760203660031901126101435761013a6001600160a01b03600754163314610f21565b60043560025580f35b80fd5b5034610143576020366003190112610143576020610165600435611001565b604051908152f35b503461014357602036600319011261014357610187610f06565b6001600160a01b039061019f82600754163314610f21565b1673ffffffffffffffffffffffffffffffffffffffff19600954161760095580f35b503461014357806003193601126101435760206103e86101e660045460015490610fc9565b04604051908152f35b503461014357806003193601126101435760206001600160a01b0360075416604051908152f35b50346101435780600319360112610143576001600160a01b0390816008541691823303610426576006546103e15762093a809283420493808502948086048214901517156103cd5784018094116103b95783839460055560065581600a541690600454823b156103b5576040516340c10f1960e01b81526001600160a01b0392909216600483015260248201529083908290604490829084905af19081156103925783916103a1575b505080600d5416803b1561039d57828091600460405180948193635f72ee1960e11b83525af190811561039257839161037e575b5050600d5416803b1561037b5781809160046040518094819363326a940760e01b83525af180156103705761035c575b506004546040519081528160208201527f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f60403392a280f35b61036590610f53565b610143578038610323565b6040513d84823e3d90fd5b50fd5b61038790610f53565b61037b5781386102f3565b6040513d85823e3d90fd5b5050fd5b6103aa90610f53565b61037b5781386102bf565b8480fd5b634e487b7160e01b83526011600452602483fd5b634e487b7160e01b84526011600452602484fd5b60405162461bcd60e51b815260206004820152600760248201527f53544152544544000000000000000000000000000000000000000000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152600560248201527f214d5349470000000000000000000000000000000000000000000000000000006044820152606490fd5b50346101435780600319360112610143576020600654604051908152f35b503461014357806003193601126101435760206001600160a01b0360095416604051908152f35b5034610143576020366003190112610143576104ca610f06565b73ffffffffffffffffffffffffffffffffffffffff19600754916001600160a01b03906104fa8285163314610f21565b1691161760075580f35b503461014357806003193601126101435760055462093a808082018083116103cd574211610538575b602082604051908152f35b80915042048181029181830414901517156108f557806005556103e861056360045460015490610fc9565b048060045561057181611001565b908101908181116108df57836001600160a01b0380600a5416604051946370a0823160e01b86523060048701526020958681602481865afa9081156107565785916108b2575b508181106107db575b5050600a54600d5460405163a9059cbb60e01b81529084166001600160a01b031660048201526024810186905291508590829084168186816044810103925af19081156103925783916107be575b50156107a65780600d5416803b1561076157828091600460405180948193635f72ee1960e11b83525af19081156103925783916107aa575b505080600d5416803b156107615782809160046040518094819363326a940760e01b83525af1908115610392578391610792575b5050600a54600b546004805460405163095ea7b360e01b81529285166001600160a01b0316918301919091526024820152908590829084168186816044810103925af1801561039257610765575b50600b541660045490803b1561076157602483926040519485938492633c6b16ab60e01b845260048401525af180156107565761073e575b5060209350600454916040519283528201527f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f60403392a23861052d565b6107488591610f53565b6107525783610700565b8380fd5b6040513d87823e3d90fd5b8280fd5b61078490853d871161078b575b61077c8183610f67565b810190610fe9565b50386106c8565b503d610772565b61079b90610f53565b6107a657813861067a565b5080fd5b6107b390610f53565b6107a6578138610646565b6107d59150853d871161078b5761077c8183610f67565b3861060e565b6107e491610fdc565b90803b15610752576040516340c10f1960e01b80825230600483015260248201939093529084908290604490829084905af19081156108a7578491610893575b505081600a54169082600954169160035490803b1561088f576040519283526001600160a01b0393909316600483015260248201529083908290604490829084905af190811561039257839161087b575b806105c0565b61088490610f53565b6107a6578138610875565b8580fd5b61089c90610f53565b610761578238610824565b6040513d86823e3d90fd5b90508681813d83116108d8575b6108c98183610f67565b810103126103b55751386105b7565b503d6108bf565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b82526011600452602482fd5b5034610143576020366003190112610143576109316001600160a01b03600754163314610f21565b60043560015580f35b50346101435780600319360112610143576020600154604051908152f35b503461014357806003193601126101435760206001600160a01b0360085416604051908152f35b5034610143576101003660031901126101435761099a610f06565b906024356001600160a01b03811681036107a6576044356001600160a01b0381168103610761576001600160a01b0360843516608435036107615760a435936001600160a01b03851685036107525760c4356001600160a01b03811681036103b55784549560ff8760081c161596878098610dd4575b8015610dbd575b15610d525760ff198116600117875587610d41575b5060405163210ca05d60e01b81526020816004816001600160a01b038a165afa908115610d36578791610cd0575b507fc6ff127433b785c51da9ae4088ee184c909b1a55b9afd82ae6c64224d3bc15d2946020946001600160a01b03809895817f427d619a0a9852319231312bf3a2f7e361f12399aae2c315cc710a8055cc6ba39681808b98169c8d9673ffffffffffffffffffffffffffffffffffffffff199788600a541617600a5516998a87600b541617600b551685600c541617600c5581861685600d541617600d55816084351685600854161760085516836007541617600755169060095416176009556001600160a01b0360405191168152a1604051908152a1606435610c7b575b5090683635c9adc5dea0000060045560e4356003556103de6001556101f46002557f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600555604051602081016302b8a21d60e01b81526001600160a01b0360843516602483015260248252606082019167ffffffffffffffff9281811084821117610c65578591829160405251734392dc16867d53dbfe227076606455634d4c27959382855af150610be9610f89565b5060405190602082016325ce9a3760e01b815260048352604083019383851090851117610c655785809493819460405251925af150610c26610f89565b50610c2e5780f35b61ff001981541681557f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498602060405160018152a180f35b634e487b7160e01b600052604160045260246000fd5b803b156107a6576040516340c10f1960e01b81526084356001600160a01b0316600482015260643560248201529082908290604490829084905af180156103705715610b3957610cca90610f53565b38610b39565b90506020813d602011610d2e575b81610ceb60209383610f67565b81010312610d2a57516001600160a01b0381168103610d2a577fc6ff127433b785c51da9ae4088ee184c909b1a55b9afd82ae6c64224d3bc15d2610a5a565b8680fd5b3d9150610cde565b6040513d89823e3d90fd5b61ffff191661010117865538610a2c565b60405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608490fd5b50303b158015610a175750600160ff821614610a17565b50600160ff821610610a10565b503461014357602036600319011261014357610e096001600160a01b03600754163314610f21565b60043560035580f35b503461014357806003193601126101435760206001600160a01b03600b5416604051908152f35b503461014357806003193601126101435760206001600160a01b03600d5416604051908152f35b50346101435780600319360112610143576020600454604051908152f35b503461014357806003193601126101435760206001600160a01b03600a5416604051908152f35b50346101435780600319360112610143576020600254604051908152f35b503461014357806003193601126101435760206001600160a01b03600c5416604051908152f35b9050346107a657816003193601126107a6576020906005548152f35b600435906001600160a01b0382168203610f1c57565b600080fd5b15610f2857565b60405162461bcd60e51b815260206004820152600360248201526208551360ea1b6044820152606490fd5b67ffffffffffffffff8111610c6557604052565b90601f8019910116810190811067ffffffffffffffff821117610c6557604052565b3d15610fc4573d9067ffffffffffffffff8211610c655760405191610fb8601f8201601f191660200184610f67565b82523d6000602084013e565b606090565b818102929181159184041417156108df57565b919082039182116108df57565b90816020910312610f1c57518015158103610f1c5790565b61101862093a808060055404906006540490610fdc565b601981018091116108df57600a810290808204600a14901517156108df576103e891611051916002548082106000146110555750610fc9565b0490565b9050610fc956fea164736f6c6343000817000a
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in FRAX
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.