Source Code
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
VariableInterestRate
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
No with 1000000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: ISC
pragma solidity ^0.8.19;
// ====================================================================
// | ______ _______ |
// | / _____________ __ __ / ____(_____ ____ _____ ________ |
// | / /_ / ___/ __ `| |/_/ / /_ / / __ \/ __ `/ __ \/ ___/ _ \ |
// | / __/ / / / /_/ _> < / __/ / / / / / /_/ / / / / /__/ __/ |
// | /_/ /_/ \__,_/_/|_| /_/ /_/_/ /_/\__,_/_/ /_/\___/\___/ |
// | |
// ====================================================================
// ====================== VariableInterestRate ========================
// ====================================================================
// Frax Finance: https://github.com/FraxFinance
// Primary Author
// Drake Evans: https://github.com/DrakeEvans
// Reviewers
// Dennis: https://github.com/denett
// ====================================================================
import { Strings } from "@openzeppelin/contracts/utils/Strings.sol";
import { IRateCalculatorV2 } from "./interfaces/IRateCalculatorV2.sol";
/// @title A formula for calculating interest rates as a function of utilization and time
/// @author Drake Evans github.com/drakeevans
/// @notice A Contract for calculating interest rates as a function of utilization and time
contract VariableInterestRate is IRateCalculatorV2 {
using Strings for uint256;
/// @notice The name suffix for the interest rate calculator
string public suffix;
// Utilization Settings
/// @notice The minimum utilization wherein no adjustment to full utilization and vertex rates occurs
uint256 public immutable MIN_TARGET_UTIL;
/// @notice The maximum utilization wherein no adjustment to full utilization and vertex rates occurs
uint256 public immutable MAX_TARGET_UTIL;
/// @notice The utilization at which the slope increases
uint256 public immutable VERTEX_UTILIZATION;
/// @notice precision of utilization calculations
uint256 public constant UTIL_PREC = 1e5; // 5 decimals
// Interest Rate Settings (all rates are per second), 365.24 days per year
/// @notice The minimum interest rate (per second) when utilization is 100%
uint256 public immutable MIN_FULL_UTIL_RATE; // 18 decimals
/// @notice The maximum interest rate (per second) when utilization is 100%
uint256 public immutable MAX_FULL_UTIL_RATE; // 18 decimals
/// @notice The interest rate (per second) when utilization is 0%
uint256 public immutable ZERO_UTIL_RATE; // 18 decimals
/// @notice The interest rate half life in seconds, determines rate of adjustments to rate curve
uint256 public immutable RATE_HALF_LIFE; // 1 decimals
/// @notice The percent of the delta between max and min
uint256 public immutable VERTEX_RATE_PERCENT; // 18 decimals
/// @notice The precision of interest rate calculations
uint256 public constant RATE_PREC = 1e18; // 18 decimals
/// @notice The ```constructor``` function
/// @param _suffix The suffix of the contract name
/// @param _vertexUtilization The utilization at which the slope increases
/// @param _vertexRatePercentOfDelta The percent of the delta between max and min, defines vertex rate
/// @param _minUtil The minimum utilization wherein no adjustment to full utilization and vertex rates occurs
/// @param _maxUtil The maximum utilization wherein no adjustment to full utilization and vertex rates occurs
/// @param _zeroUtilizationRate The interest rate (per second) when utilization is 0%
/// @param _minFullUtilizationRate The minimum interest rate at 100% utilization
/// @param _maxFullUtilizationRate The maximum interest rate at 100% utilization
/// @param _rateHalfLife The half life parameter for interest rate adjustments
constructor(
string memory _suffix,
uint256 _vertexUtilization,
uint256 _vertexRatePercentOfDelta,
uint256 _minUtil,
uint256 _maxUtil,
uint256 _zeroUtilizationRate,
uint256 _minFullUtilizationRate,
uint256 _maxFullUtilizationRate,
uint256 _rateHalfLife
) {
suffix = _suffix;
MIN_TARGET_UTIL = _minUtil;
MAX_TARGET_UTIL = _maxUtil;
VERTEX_UTILIZATION = _vertexUtilization;
ZERO_UTIL_RATE = _zeroUtilizationRate;
MIN_FULL_UTIL_RATE = _minFullUtilizationRate;
MAX_FULL_UTIL_RATE = _maxFullUtilizationRate;
RATE_HALF_LIFE = _rateHalfLife;
VERTEX_RATE_PERCENT = _vertexRatePercentOfDelta;
}
/// @notice The ```name``` function returns the name of the rate contract
/// @return memory name of contract
function name() external view returns (string memory) {
return string(abi.encodePacked("Variable Rate V2 ", suffix));
}
/// @notice The ```version``` function returns the semantic version of the rate contract
/// @dev Follows semantic versioning
/// @return _major Major version
/// @return _minor Minor version
/// @return _patch Patch version
function version() external pure returns (uint256 _major, uint256 _minor, uint256 _patch) {
_major = 2;
_minor = 0;
_patch = 0;
}
/// @notice The ```getFullUtilizationInterest``` function calculate the new maximum interest rate, i.e. rate when utilization is 100%
/// @dev Given in interest per second
/// @param _deltaTime The elapsed time since last update given in seconds
/// @param _utilization The utilization %, given with 5 decimals of precision
/// @param _fullUtilizationInterest The interest value when utilization is 100%, given with 18 decimals of precision
/// @return _newFullUtilizationInterest The new maximum interest rate
function getFullUtilizationInterest(
uint256 _deltaTime,
uint256 _utilization,
uint64 _fullUtilizationInterest
) internal view returns (uint64 _newFullUtilizationInterest) {
if (_utilization < MIN_TARGET_UTIL) {
// 18 decimals
uint256 _deltaUtilization = ((MIN_TARGET_UTIL - _utilization) * 1e18) / MIN_TARGET_UTIL;
// 36 decimals
uint256 _decayGrowth = (RATE_HALF_LIFE * 1e36) + (_deltaUtilization * _deltaUtilization * _deltaTime);
// 18 decimals
_newFullUtilizationInterest = uint64((_fullUtilizationInterest * (RATE_HALF_LIFE * 1e36)) / _decayGrowth);
} else if (_utilization > MAX_TARGET_UTIL) {
// 18 decimals
uint256 _deltaUtilization = ((_utilization - MAX_TARGET_UTIL) * 1e18) / (UTIL_PREC - MAX_TARGET_UTIL);
// 36 decimals
uint256 _decayGrowth = (RATE_HALF_LIFE * 1e36) + (_deltaUtilization * _deltaUtilization * _deltaTime);
// 18 decimals
_newFullUtilizationInterest = uint64((_fullUtilizationInterest * _decayGrowth) / (RATE_HALF_LIFE * 1e36));
} else {
_newFullUtilizationInterest = _fullUtilizationInterest;
}
if (_newFullUtilizationInterest > MAX_FULL_UTIL_RATE) {
_newFullUtilizationInterest = uint64(MAX_FULL_UTIL_RATE);
} else if (_newFullUtilizationInterest < MIN_FULL_UTIL_RATE) {
_newFullUtilizationInterest = uint64(MIN_FULL_UTIL_RATE);
}
}
/// @notice The ```getNewRate``` function calculates interest rates using two linear functions f(utilization)
/// @param _deltaTime The elapsed time since last update, given in seconds
/// @param _utilization The utilization %, given with 5 decimals of precision
/// @param _oldFullUtilizationInterest The interest value when utilization is 100%, given with 18 decimals of precision
/// @return _newRatePerSec The new interest rate, 18 decimals of precision
/// @return _newFullUtilizationInterest The new max interest rate, 18 decimals of precision
function getNewRate(
uint256 _deltaTime,
uint256 _utilization,
uint64 _oldFullUtilizationInterest
) external view returns (uint64 _newRatePerSec, uint64 _newFullUtilizationInterest) {
_newFullUtilizationInterest = getFullUtilizationInterest(_deltaTime, _utilization, _oldFullUtilizationInterest);
// _vertexInterest is calculated as the percentage of the delta between min and max interest
uint256 _vertexInterest = (((_newFullUtilizationInterest - ZERO_UTIL_RATE) * VERTEX_RATE_PERCENT) / RATE_PREC) +
ZERO_UTIL_RATE;
if (_utilization < VERTEX_UTILIZATION) {
// For readability, the following formula is equivalent to:
// uint256 _slope = ((_vertexInterest - ZERO_UTIL_RATE) * UTIL_PREC) / VERTEX_UTILIZATION;
// _newRatePerSec = uint64(ZERO_UTIL_RATE + ((_utilization * _slope) / UTIL_PREC));
// 18 decimals
_newRatePerSec = uint64(
ZERO_UTIL_RATE + (_utilization * (_vertexInterest - ZERO_UTIL_RATE)) / VERTEX_UTILIZATION
);
} else {
// For readability, the following formula is equivalent to:
// uint256 _slope = (((_newFullUtilizationInterest - _vertexInterest) * UTIL_PREC) / (UTIL_PREC - VERTEX_UTILIZATION));
// _newRatePerSec = uint64(_vertexInterest + (((_utilization - VERTEX_UTILIZATION) * _slope) / UTIL_PREC));
// 18 decimals
_newRatePerSec = uint64(
_vertexInterest +
((_utilization - VERTEX_UTILIZATION) * (_newFullUtilizationInterest - _vertexInterest)) /
(UTIL_PREC - VERTEX_UTILIZATION)
);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
import "./math/Math.sol";
import "./math/SignedMath.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `int256` to its ASCII `string` decimal representation.
*/
function toString(int256 value) internal pure returns (string memory) {
return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
/**
* @dev Returns true if the two strings are equal.
*/
function equal(string memory a, string memory b) internal pure returns (bool) {
return keccak256(bytes(a)) == keccak256(bytes(b));
}
}// SPDX-License-Identifier: ISC
pragma solidity ^0.8.19;
interface IRateCalculatorV2 {
function name() external view returns (string memory);
function version() external view returns (uint256, uint256, uint256);
function getNewRate(
uint256 _deltaTime,
uint256 _utilization,
uint64 _maxInterest
) external view returns (uint64 _newRatePerSec, uint64 _newMaxInterest);
}// 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.8.0) (utils/math/SignedMath.sol)
pragma solidity ^0.8.0;
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two signed numbers without overflow.
* The result is rounded towards zero.
*/
function average(int256 a, int256 b) internal pure returns (int256) {
// Formula from the book "Hacker's Delight"
int256 x = (a & b) + ((a ^ b) >> 1);
return x + (int256(uint256(x) >> 255) & (a ^ b));
}
/**
* @dev Returns the absolute unsigned value of a signed value.
*/
function abs(int256 n) internal pure returns (uint256) {
unchecked {
// must be unchecked in order to support `n = type(int256).min`
return uint256(n >= 0 ? n : -n);
}
}
}{
"remappings": [
"ds-test/=node_modules/ds-test/src/",
"forge-std/=node_modules/forge-std/src/",
"frax-std/=node_modules/frax-standard-solidity/src/",
"script/=script/",
"src/=src/",
"deploy/=deploy/",
"test/=test/",
"@chainlink/=node_modules/@chainlink/",
"@ensdomains/=node_modules/@ensdomains/",
"@eth-optimism/=node_modules/@eth-optimism/",
"@mean-finance/=node_modules/@mean-finance/",
"@openzeppelin/=node_modules/@openzeppelin/",
"@rari-capital/=node_modules/@rari-capital/",
"@uniswap/=node_modules/@uniswap/",
"base64-sol/=node_modules/base64-sol/",
"eth-gas-reporter/=node_modules/eth-gas-reporter/",
"frax-standard-solidity/=node_modules/frax-standard-solidity/",
"hardhat/=node_modules/hardhat/",
"solidity-bytes-utils/=node_modules/solidity-bytes-utils/"
],
"optimizer": {
"enabled": false,
"runs": 1000000
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "none",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "paris",
"viaIR": false,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_suffix","type":"string"},{"internalType":"uint256","name":"_vertexUtilization","type":"uint256"},{"internalType":"uint256","name":"_vertexRatePercentOfDelta","type":"uint256"},{"internalType":"uint256","name":"_minUtil","type":"uint256"},{"internalType":"uint256","name":"_maxUtil","type":"uint256"},{"internalType":"uint256","name":"_zeroUtilizationRate","type":"uint256"},{"internalType":"uint256","name":"_minFullUtilizationRate","type":"uint256"},{"internalType":"uint256","name":"_maxFullUtilizationRate","type":"uint256"},{"internalType":"uint256","name":"_rateHalfLife","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"MAX_FULL_UTIL_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TARGET_UTIL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_FULL_UTIL_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_TARGET_UTIL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RATE_HALF_LIFE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RATE_PREC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UTIL_PREC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERTEX_RATE_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERTEX_UTILIZATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ZERO_UTIL_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_deltaTime","type":"uint256"},{"internalType":"uint256","name":"_utilization","type":"uint256"},{"internalType":"uint64","name":"_oldFullUtilizationInterest","type":"uint64"}],"name":"getNewRate","outputs":[{"internalType":"uint64","name":"_newRatePerSec","type":"uint64"},{"internalType":"uint64","name":"_newFullUtilizationInterest","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"suffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"_major","type":"uint256"},{"internalType":"uint256","name":"_minor","type":"uint256"},{"internalType":"uint256","name":"_patch","type":"uint256"}],"stateMutability":"pure","type":"function"}]Contract Creation Code
6101806040523480156200001257600080fd5b506040516200169a3803806200169a83398181016040528101906200003891906200026b565b8860009081620000499190620005aa565b5085608081815250508460a081815250508760c081815250508361012081815250508260e0818152505081610100818152505080610140818152505086610160818152505050505050505050505062000691565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200010682620000bb565b810181811067ffffffffffffffff82111715620001285762000127620000cc565b5b80604052505050565b60006200013d6200009d565b90506200014b8282620000fb565b919050565b600067ffffffffffffffff8211156200016e576200016d620000cc565b5b6200017982620000bb565b9050602081019050919050565b60005b83811015620001a657808201518184015260208101905062000189565b60008484015250505050565b6000620001c9620001c38462000150565b62000131565b905082815260208101848484011115620001e857620001e7620000b6565b5b620001f584828562000186565b509392505050565b600082601f830112620002155762000214620000b1565b5b815162000227848260208601620001b2565b91505092915050565b6000819050919050565b620002458162000230565b81146200025157600080fd5b50565b60008151905062000265816200023a565b92915050565b60008060008060008060008060006101208a8c031215620002915762000290620000a7565b5b60008a015167ffffffffffffffff811115620002b257620002b1620000ac565b5b620002c08c828d01620001fd565b9950506020620002d38c828d0162000254565b9850506040620002e68c828d0162000254565b9750506060620002f98c828d0162000254565b96505060806200030c8c828d0162000254565b95505060a06200031f8c828d0162000254565b94505060c0620003328c828d0162000254565b93505060e0620003458c828d0162000254565b925050610100620003598c828d0162000254565b9150509295985092959850929598565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620003bc57607f821691505b602082108103620003d257620003d162000374565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200043c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620003fd565b620004488683620003fd565b95508019841693508086168417925050509392505050565b6000819050919050565b60006200048b620004856200047f8462000230565b62000460565b62000230565b9050919050565b6000819050919050565b620004a7836200046a565b620004bf620004b68262000492565b8484546200040a565b825550505050565b600090565b620004d6620004c7565b620004e38184846200049c565b505050565b5b818110156200050b57620004ff600082620004cc565b600181019050620004e9565b5050565b601f8211156200055a576200052481620003d8565b6200052f84620003ed565b810160208510156200053f578190505b620005576200054e85620003ed565b830182620004e8565b50505b505050565b600082821c905092915050565b60006200057f600019846008026200055f565b1980831691505092915050565b60006200059a83836200056c565b9150826002028217905092915050565b620005b58262000369565b67ffffffffffffffff811115620005d157620005d0620000cc565b5b620005dd8254620003a3565b620005ea8282856200050f565b600060209050601f8311600181146200062257600084156200060d578287015190505b6200061985826200058c565b86555062000689565b601f1984166200063286620003d8565b60005b828110156200065c5784890151825560018201915060208501945060208101905062000635565b868310156200067c578489015162000678601f8916826200056c565b8355505b6001600288020188555050505b505050505050565b60805160a05160c05160e05161010051610120516101405161016051610f0262000798600039600081816103ae01526104560152600081816102f501528181610774015281816107bc015281816108dc015261092301526000818161037e0152818161042c015281816104770152818161051601526105570152600081816102a90152818161097c01526109ae015260008181610319015281816109d60152610a080152600081816103f6015281816104cd015281816104f50152818161058901526105ce01526000818161033d0152818161080f0152818161083901526108710152600081816103d2015281816106b5015281816106df015261070a0152610f026000f3fe608060405234801561001057600080fd5b50600436106100e95760003560e01c80638e75618c1161008c5780639c073270116100665780639c0732701461021c578063c41681251461023a578063cd3181d514610258578063f7073c3a14610289576100e9565b80638e75618c146101c257806391474c49146101e057806395da99fc146101fe576100e9565b806331bf879d116100c857806331bf879d1461014857806340797eda1461016657806354fd4d50146101845780636cd3cc77146101a4576100e9565b80624c98af146100ee57806306fdde031461010c57806317784ca41461012a575b600080fd5b6100f66102a7565b6040516101039190610a4b565b60405180910390f35b6101146102cb565b6040516101219190610af6565b60405180910390f35b6101326102f3565b60405161013f9190610a4b565b60405180910390f35b610150610317565b60405161015d9190610a4b565b60405180910390f35b61016e61033b565b60405161017b9190610a4b565b60405180910390f35b61018c61035f565b60405161019b93929190610b18565b60405180910390f35b6101ac610375565b6040516101b99190610a4b565b60405180910390f35b6101ca61037c565b6040516101d79190610a4b565b60405180910390f35b6101e86103a0565b6040516101f59190610a4b565b60405180910390f35b6102066103ac565b6040516102139190610a4b565b60405180910390f35b6102246103d0565b6040516102319190610a4b565b60405180910390f35b6102426103f4565b60405161024f9190610a4b565b60405180910390f35b610272600480360381019061026d9190610bc0565b610418565b604051610280929190610c22565b60405180910390f35b610291610623565b60405161029e9190610af6565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b606060006040516020016102df9190610d9a565b604051602081830303815290604052905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000806000600292506000915060009050909192565b620186a081565b7f000000000000000000000000000000000000000000000000000000000000000081565b670de0b6b3a764000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000806104268585856106b1565b905060007f0000000000000000000000000000000000000000000000000000000000000000670de0b6b3a76400007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000008567ffffffffffffffff166104ab9190610deb565b6104b59190610e1f565b6104bf9190610e90565b6104c99190610ec1565b90507f0000000000000000000000000000000000000000000000000000000000000000851015610587577f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000826105409190610deb565b8661054b9190610e1f565b6105559190610e90565b7f00000000000000000000000000000000000000000000000000000000000000006105809190610ec1565b925061061a565b7f0000000000000000000000000000000000000000000000000000000000000000620186a06105b69190610deb565b818367ffffffffffffffff166105cc9190610deb565b7f0000000000000000000000000000000000000000000000000000000000000000876105f89190610deb565b6106029190610e1f565b61060c9190610e90565b816106179190610ec1565b92505b50935093915050565b6000805461063090610cd1565b80601f016020809104026020016040519081016040528092919081815260200182805461065c90610cd1565b80156106a95780601f1061067e576101008083540402835291602001916106a9565b820191906000526020600020905b81548152906001019060200180831161068c57829003601f168201915b505050505081565b60007f000000000000000000000000000000000000000000000000000000000000000083101561080d5760007f0000000000000000000000000000000000000000000000000000000000000000670de0b6b3a7640000857f00000000000000000000000000000000000000000000000000000000000000006107339190610deb565b61073d9190610e1f565b6107479190610e90565b905060008582836107589190610e1f565b6107629190610e1f565b6ec097ce7bc90715b34b9f10000000007f000000000000000000000000000000000000000000000000000000000000000061079d9190610e1f565b6107a79190610ec1565b9050806ec097ce7bc90715b34b9f10000000007f00000000000000000000000000000000000000000000000000000000000000006107e59190610e1f565b8567ffffffffffffffff166107fa9190610e1f565b6108049190610e90565b9250505061097a565b7f00000000000000000000000000000000000000000000000000000000000000008311156109755760007f0000000000000000000000000000000000000000000000000000000000000000620186a06108669190610deb565b670de0b6b3a76400007f00000000000000000000000000000000000000000000000000000000000000008661089b9190610deb565b6108a59190610e1f565b6108af9190610e90565b905060008582836108c09190610e1f565b6108ca9190610e1f565b6ec097ce7bc90715b34b9f10000000007f00000000000000000000000000000000000000000000000000000000000000006109059190610e1f565b61090f9190610ec1565b90506ec097ce7bc90715b34b9f10000000007f000000000000000000000000000000000000000000000000000000000000000061094c9190610e1f565b818567ffffffffffffffff166109629190610e1f565b61096c9190610e90565b92505050610979565b8190505b5b7f00000000000000000000000000000000000000000000000000000000000000008167ffffffffffffffff1611156109d4577f00000000000000000000000000000000000000000000000000000000000000009050610a2b565b7f00000000000000000000000000000000000000000000000000000000000000008167ffffffffffffffff161015610a2a577f000000000000000000000000000000000000000000000000000000000000000090505b5b9392505050565b6000819050919050565b610a4581610a32565b82525050565b6000602082019050610a606000830184610a3c565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610aa0578082015181840152602081019050610a85565b60008484015250505050565b6000601f19601f8301169050919050565b6000610ac882610a66565b610ad28185610a71565b9350610ae2818560208601610a82565b610aeb81610aac565b840191505092915050565b60006020820190508181036000830152610b108184610abd565b905092915050565b6000606082019050610b2d6000830186610a3c565b610b3a6020830185610a3c565b610b476040830184610a3c565b949350505050565b600080fd5b610b5d81610a32565b8114610b6857600080fd5b50565b600081359050610b7a81610b54565b92915050565b600067ffffffffffffffff82169050919050565b610b9d81610b80565b8114610ba857600080fd5b50565b600081359050610bba81610b94565b92915050565b600080600060608486031215610bd957610bd8610b4f565b5b6000610be786828701610b6b565b9350506020610bf886828701610b6b565b9250506040610c0986828701610bab565b9150509250925092565b610c1c81610b80565b82525050565b6000604082019050610c376000830185610c13565b610c446020830184610c13565b9392505050565b600081905092915050565b7f5661726961626c65205261746520563220000000000000000000000000000000600082015250565b6000610c8c601183610c4b565b9150610c9782610c56565b601182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680610ce957607f821691505b602082108103610cfc57610cfb610ca2565b5b50919050565b60008190508160005260206000209050919050565b60008154610d2481610cd1565b610d2e8186610c4b565b94506001821660008114610d495760018114610d5e57610d91565b60ff1983168652811515820286019350610d91565b610d6785610d02565b60005b83811015610d8957815481890152600182019150602081019050610d6a565b838801955050505b50505092915050565b6000610da582610c7f565b9150610db18284610d17565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610df682610a32565b9150610e0183610a32565b9250828203905081811115610e1957610e18610dbc565b5b92915050565b6000610e2a82610a32565b9150610e3583610a32565b9250828202610e4381610a32565b91508282048414831517610e5a57610e59610dbc565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000610e9b82610a32565b9150610ea683610a32565b925082610eb657610eb5610e61565b5b828204905092915050565b6000610ecc82610a32565b9150610ed783610a32565b9250828201905080821115610eef57610eee610dbc565b5b9291505056fea164736f6c6343000813000a000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000155cc00000000000000000000000000000000000000000000000006f05b59d3b2000000000000000000000000000000000000000000000000000000000000000124f80000000000000000000000000000000000000000000000000000000000014c0800000000000000000000000000000000000000000000000000000000096ea886000000000000000000000000000000000000000000000000000000005e52953c000000000000000000000000000000000000000000000000000002e0e52de4c0000000000000000000000000000000000000000000000000000000000002a30000000000000000000000000000000000000000000000000000000000000000255b302e3520302e35402e38373520352d31306b5d2032206461797320282e37352d2e383529000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100e95760003560e01c80638e75618c1161008c5780639c073270116100665780639c0732701461021c578063c41681251461023a578063cd3181d514610258578063f7073c3a14610289576100e9565b80638e75618c146101c257806391474c49146101e057806395da99fc146101fe576100e9565b806331bf879d116100c857806331bf879d1461014857806340797eda1461016657806354fd4d50146101845780636cd3cc77146101a4576100e9565b80624c98af146100ee57806306fdde031461010c57806317784ca41461012a575b600080fd5b6100f66102a7565b6040516101039190610a4b565b60405180910390f35b6101146102cb565b6040516101219190610af6565b60405180910390f35b6101326102f3565b60405161013f9190610a4b565b60405180910390f35b610150610317565b60405161015d9190610a4b565b60405180910390f35b61016e61033b565b60405161017b9190610a4b565b60405180910390f35b61018c61035f565b60405161019b93929190610b18565b60405180910390f35b6101ac610375565b6040516101b99190610a4b565b60405180910390f35b6101ca61037c565b6040516101d79190610a4b565b60405180910390f35b6101e86103a0565b6040516101f59190610a4b565b60405180910390f35b6102066103ac565b6040516102139190610a4b565b60405180910390f35b6102246103d0565b6040516102319190610a4b565b60405180910390f35b6102426103f4565b60405161024f9190610a4b565b60405180910390f35b610272600480360381019061026d9190610bc0565b610418565b604051610280929190610c22565b60405180910390f35b610291610623565b60405161029e9190610af6565b60405180910390f35b7f000000000000000000000000000000000000000000000000000002e0e52de4c081565b606060006040516020016102df9190610d9a565b604051602081830303815290604052905090565b7f000000000000000000000000000000000000000000000000000000000002a30081565b7f000000000000000000000000000000000000000000000000000000005e52953c81565b7f0000000000000000000000000000000000000000000000000000000000014c0881565b6000806000600292506000915060009050909192565b620186a081565b7f00000000000000000000000000000000000000000000000000000000096ea88681565b670de0b6b3a764000081565b7f00000000000000000000000000000000000000000000000006f05b59d3b2000081565b7f00000000000000000000000000000000000000000000000000000000000124f881565b7f00000000000000000000000000000000000000000000000000000000000155cc81565b6000806104268585856106b1565b905060007f00000000000000000000000000000000000000000000000000000000096ea886670de0b6b3a76400007f00000000000000000000000000000000000000000000000006f05b59d3b200007f00000000000000000000000000000000000000000000000000000000096ea8868567ffffffffffffffff166104ab9190610deb565b6104b59190610e1f565b6104bf9190610e90565b6104c99190610ec1565b90507f00000000000000000000000000000000000000000000000000000000000155cc851015610587577f00000000000000000000000000000000000000000000000000000000000155cc7f00000000000000000000000000000000000000000000000000000000096ea886826105409190610deb565b8661054b9190610e1f565b6105559190610e90565b7f00000000000000000000000000000000000000000000000000000000096ea8866105809190610ec1565b925061061a565b7f00000000000000000000000000000000000000000000000000000000000155cc620186a06105b69190610deb565b818367ffffffffffffffff166105cc9190610deb565b7f00000000000000000000000000000000000000000000000000000000000155cc876105f89190610deb565b6106029190610e1f565b61060c9190610e90565b816106179190610ec1565b92505b50935093915050565b6000805461063090610cd1565b80601f016020809104026020016040519081016040528092919081815260200182805461065c90610cd1565b80156106a95780601f1061067e576101008083540402835291602001916106a9565b820191906000526020600020905b81548152906001019060200180831161068c57829003601f168201915b505050505081565b60007f00000000000000000000000000000000000000000000000000000000000124f883101561080d5760007f00000000000000000000000000000000000000000000000000000000000124f8670de0b6b3a7640000857f00000000000000000000000000000000000000000000000000000000000124f86107339190610deb565b61073d9190610e1f565b6107479190610e90565b905060008582836107589190610e1f565b6107629190610e1f565b6ec097ce7bc90715b34b9f10000000007f000000000000000000000000000000000000000000000000000000000002a30061079d9190610e1f565b6107a79190610ec1565b9050806ec097ce7bc90715b34b9f10000000007f000000000000000000000000000000000000000000000000000000000002a3006107e59190610e1f565b8567ffffffffffffffff166107fa9190610e1f565b6108049190610e90565b9250505061097a565b7f0000000000000000000000000000000000000000000000000000000000014c088311156109755760007f0000000000000000000000000000000000000000000000000000000000014c08620186a06108669190610deb565b670de0b6b3a76400007f0000000000000000000000000000000000000000000000000000000000014c088661089b9190610deb565b6108a59190610e1f565b6108af9190610e90565b905060008582836108c09190610e1f565b6108ca9190610e1f565b6ec097ce7bc90715b34b9f10000000007f000000000000000000000000000000000000000000000000000000000002a3006109059190610e1f565b61090f9190610ec1565b90506ec097ce7bc90715b34b9f10000000007f000000000000000000000000000000000000000000000000000000000002a30061094c9190610e1f565b818567ffffffffffffffff166109629190610e1f565b61096c9190610e90565b92505050610979565b8190505b5b7f000000000000000000000000000000000000000000000000000002e0e52de4c08167ffffffffffffffff1611156109d4577f000000000000000000000000000000000000000000000000000002e0e52de4c09050610a2b565b7f000000000000000000000000000000000000000000000000000000005e52953c8167ffffffffffffffff161015610a2a577f000000000000000000000000000000000000000000000000000000005e52953c90505b5b9392505050565b6000819050919050565b610a4581610a32565b82525050565b6000602082019050610a606000830184610a3c565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610aa0578082015181840152602081019050610a85565b60008484015250505050565b6000601f19601f8301169050919050565b6000610ac882610a66565b610ad28185610a71565b9350610ae2818560208601610a82565b610aeb81610aac565b840191505092915050565b60006020820190508181036000830152610b108184610abd565b905092915050565b6000606082019050610b2d6000830186610a3c565b610b3a6020830185610a3c565b610b476040830184610a3c565b949350505050565b600080fd5b610b5d81610a32565b8114610b6857600080fd5b50565b600081359050610b7a81610b54565b92915050565b600067ffffffffffffffff82169050919050565b610b9d81610b80565b8114610ba857600080fd5b50565b600081359050610bba81610b94565b92915050565b600080600060608486031215610bd957610bd8610b4f565b5b6000610be786828701610b6b565b9350506020610bf886828701610b6b565b9250506040610c0986828701610bab565b9150509250925092565b610c1c81610b80565b82525050565b6000604082019050610c376000830185610c13565b610c446020830184610c13565b9392505050565b600081905092915050565b7f5661726961626c65205261746520563220000000000000000000000000000000600082015250565b6000610c8c601183610c4b565b9150610c9782610c56565b601182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680610ce957607f821691505b602082108103610cfc57610cfb610ca2565b5b50919050565b60008190508160005260206000209050919050565b60008154610d2481610cd1565b610d2e8186610c4b565b94506001821660008114610d495760018114610d5e57610d91565b60ff1983168652811515820286019350610d91565b610d6785610d02565b60005b83811015610d8957815481890152600182019150602081019050610d6a565b838801955050505b50505092915050565b6000610da582610c7f565b9150610db18284610d17565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610df682610a32565b9150610e0183610a32565b9250828203905081811115610e1957610e18610dbc565b5b92915050565b6000610e2a82610a32565b9150610e3583610a32565b9250828202610e4381610a32565b91508282048414831517610e5a57610e59610dbc565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000610e9b82610a32565b9150610ea683610a32565b925082610eb657610eb5610e61565b5b828204905092915050565b6000610ecc82610a32565b9150610ed783610a32565b9250828201905080821115610eef57610eee610dbc565b5b9291505056fea164736f6c6343000813000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000155cc00000000000000000000000000000000000000000000000006f05b59d3b2000000000000000000000000000000000000000000000000000000000000000124f80000000000000000000000000000000000000000000000000000000000014c0800000000000000000000000000000000000000000000000000000000096ea886000000000000000000000000000000000000000000000000000000005e52953c000000000000000000000000000000000000000000000000000002e0e52de4c0000000000000000000000000000000000000000000000000000000000002a30000000000000000000000000000000000000000000000000000000000000000255b302e3520302e35402e38373520352d31306b5d2032206461797320282e37352d2e383529000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _suffix (string): [0.5 [email protected] 5-10k] 2 days (.75-.85)
Arg [1] : _vertexUtilization (uint256): 87500
Arg [2] : _vertexRatePercentOfDelta (uint256): 500000000000000000
Arg [3] : _minUtil (uint256): 75000
Arg [4] : _maxUtil (uint256): 85000
Arg [5] : _zeroUtilizationRate (uint256): 158247046
Arg [6] : _minFullUtilizationRate (uint256): 1582470460
Arg [7] : _maxFullUtilizationRate (uint256): 3164940920000
Arg [8] : _rateHalfLife (uint256): 172800
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 00000000000000000000000000000000000000000000000000000000000155cc
Arg [2] : 00000000000000000000000000000000000000000000000006f05b59d3b20000
Arg [3] : 00000000000000000000000000000000000000000000000000000000000124f8
Arg [4] : 0000000000000000000000000000000000000000000000000000000000014c08
Arg [5] : 00000000000000000000000000000000000000000000000000000000096ea886
Arg [6] : 000000000000000000000000000000000000000000000000000000005e52953c
Arg [7] : 000000000000000000000000000000000000000000000000000002e0e52de4c0
Arg [8] : 000000000000000000000000000000000000000000000000000000000002a300
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000025
Arg [10] : 5b302e3520302e35402e38373520352d31306b5d2032206461797320282e3735
Arg [11] : 2d2e383529000000000000000000000000000000000000000000000000000000
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.