ETH Price: $2,753.06 (+0.72%)

Token

FENIX (FENIX)
 

Overview

Max Total Supply

12,912,008.509815881663339511 FENIX

Holders

659 (0.00%)

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
1,548.7327 FENIX

Value
$0.00
0x7068a3e30fc43d0b13a1bdb9875f208f0249dea7
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

FENIX is designed to reward crypto community members who believe in the crypto first principles of self-custody, transparency, trust through consensus, and permissionless value exchange without counterparty risk.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Fenix

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion, Audited
File 1 of 32 : Fenix.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;
/***********************************************************************************************************************
..:^~!?YPB&&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
7 .:~JP#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
& !: :7G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@G J@@#GY7~^.. ^P@@@@@@@@@@@@@Y!YYYYJG@@@@@@@77YYYJP@@@@@@@@&!&@@@@@@@@JP@@@@@@@@7#@@@@@@@G7&@@@@@@@G!&@
@@J 7@@@@@@@@@@&GJ^ ?@@@@@@@@@@@^J@@@@@@@@@@@@@.P@@@@@@@@@@@@@& ~?&@@@@@@~J@@@@@@@@.G@@@@@@@@#!?@@@@#!?&@@
@@@J ~P#@@@@@@@@@@@@@@&! B@@@@@@@@@~J@@@@@@@@@@@@@:P@@@@@@@@@@@@@&.@B~Y@@@@@~J@@@@@@@@:G@@@@@@@@@@G~P&?!&@@@@
@@@@G ~G@@@@@@@@@@@@@@@@@@@@Y G@@@@@@@@~^YYYP@@@@@@@@@:~YYYG@@@@@@@@@&.@@@P~P@@@~J@@@@@@@@:G@@@@@@@@@@@&. !@@@@@@
@@@@@&^^&@@@@@@@@@@@@@@@@@@@@@@@: @@@@@@@@~Y@@@@@@@@@@@@@:G@@@@@@@@@@@@@&.@@@@@Y~B@!J@@@@@@@@:G@@@@@@@@@@Y~B@Y~B@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@&5!^^!P~ G@@@@@@@~J@@@@@@@@@@@@@:G@@@@@@@@@@@@@&.@@@@@@&?7.J@@@@@@@@.G@@@@@@@@P~P@@@@&7!&@@
@@@@@@@@@@@@@@@@@@@@@@@@Y B@@@@@@@!5@@@@@@@@@@@@@^!5555Y#@@@@@@@&:@@@@@@@@&^Y@@@@@@@@^B@@@@@@&!J@@@@@@@@#!Y@
@@@@@@@@@@@@@@@@@@@@@@@& ~@@@@@@@@@@@@@@@@@@@@@@@@@&&&&&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&@
@@@@@@@@@@@@@@@@@@@@@@@@7 J@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@#7. .^Y&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
***********************************************************************************************************************/
import { UD60x18, convert, wrap, unwrap, ud, E, ZERO } from "@prb/math/UD60x18.sol";
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { IERC165 } from "@openzeppelin/contracts/interfaces/IERC165.sol";
import { IBurnableToken } from "xen-crypto/interfaces/IBurnableToken.sol";
import { IBurnRedeemable } from "xen-crypto/interfaces/IBurnRedeemable.sol";
enum Status {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 2 of 32 : IBurnRedeemable.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
interface IBurnRedeemable {
event Redeemed(
address indexed user,
address indexed xenContract,
address indexed tokenContract,
uint256 xenAmount,
uint256 tokenAmount
);
function onTokenBurned(address user, uint256 amount) external;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 3 of 32 : IBurnableToken.sol
1
2
3
4
5
6
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
interface IBurnableToken {
function burn(address user, uint256 amount) external;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 4 of 32 : IERC165.sol
1
2
3
4
5
6
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)
pragma solidity ^0.8.0;
import "../utils/introspection/IERC165.sol";
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 5 of 32 : ERC20.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 6 of 32 : IERC20.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 7 of 32 : IERC20Metadata.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 8 of 32 : Context.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 9 of 32 : IERC165.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 10 of 32 : Common.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
// Common.sol
//
// Common mathematical functions needed by both SD59x18 and UD60x18. Note that these global functions do not
// always operate with SD59x18 and UD60x18 numbers.
/*//////////////////////////////////////////////////////////////////////////
CUSTOM ERRORS
//////////////////////////////////////////////////////////////////////////*/
/// @notice Thrown when the resultant value in {mulDiv} overflows uint256.
error PRBMath_MulDiv_Overflow(uint256 x, uint256 y, uint256 denominator);
/// @notice Thrown when the resultant value in {mulDiv18} overflows uint256.
error PRBMath_MulDiv18_Overflow(uint256 x, uint256 y);
/// @notice Thrown when one of the inputs passed to {mulDivSigned} is `type(int256).min`.
error PRBMath_MulDivSigned_InputTooSmall();
/// @notice Thrown when the resultant value in {mulDivSigned} overflows int256.
error PRBMath_MulDivSigned_Overflow(int256 x, int256 y);
/*//////////////////////////////////////////////////////////////////////////
CONSTANTS
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 11 of 32 : UD60x18.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
/*
██████╗ ██████╗ ██████╗ ███╗ ███╗ █████╗ ████████╗██╗ ██╗
██╔══██╗██╔══██╗██╔══██╗████╗ ████║██╔══██╗╚══██╔══╝██║ ██║
██████╔╝██████╔╝██████╔╝██╔████╔██║███████║ ██║ ███████║
██╔═══╝ ██╔══██╗██╔══██╗██║╚██╔╝██║██╔══██║ ██║ ██╔══██║
██║ ██║ ██║██████╔╝██║ ╚═╝ ██║██║ ██║ ██║ ██║ ██║
╚═╝ ╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝
██╗ ██╗██████╗ ██████╗ ██████╗ ██╗ ██╗ ██╗ █████╗
██║ ██║██╔══██╗██╔════╝ ██╔═████╗╚██╗██╔╝███║██╔══██╗
██║ ██║██║ ██║███████╗ ██║██╔██║ ╚███╔╝ ╚██║╚█████╔╝
██║ ██║██║ ██║██╔═══██╗████╔╝██║ ██╔██╗ ██║██╔══██╗
╚██████╔╝██████╔╝╚██████╔╝╚██████╔╝██╔╝ ██╗ ██║╚█████╔╝
╚═════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚════╝
*/
import "./ud60x18/Casting.sol";
import "./ud60x18/Constants.sol";
import "./ud60x18/Conversions.sol";
import "./ud60x18/Errors.sol";
import "./ud60x18/Helpers.sol";
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 12 of 32 : Casting.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import "../Common.sol" as Common;
import "./Errors.sol" as CastingErrors;
import { SD59x18 } from "../sd59x18/ValueType.sol";
import { UD2x18 } from "../ud2x18/ValueType.sol";
import { UD60x18 } from "../ud60x18/ValueType.sol";
import { SD1x18 } from "./ValueType.sol";
/// @notice Casts an SD1x18 number into SD59x18.
/// @dev There is no overflow check because the domain of SD1x18 is a subset of SD59x18.
function intoSD59x18(SD1x18 x) pure returns (SD59x18 result) {
result = SD59x18.wrap(int256(SD1x18.unwrap(x)));
}
/// @notice Casts an SD1x18 number into UD2x18.
/// - x must be positive.
function intoUD2x18(SD1x18 x) pure returns (UD2x18 result) {
int64 xInt = SD1x18.unwrap(x);
if (xInt < 0) {
revert CastingErrors.PRBMath_SD1x18_ToUD2x18_Underflow(x);
}
result = UD2x18.wrap(uint64(xInt));
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 13 of 32 : Constants.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import { SD1x18 } from "./ValueType.sol";
/// @dev Euler's number as an SD1x18 number.
SD1x18 constant E = SD1x18.wrap(2_718281828459045235);
/// @dev The maximum value an SD1x18 number can have.
int64 constant uMAX_SD1x18 = 9_223372036854775807;
SD1x18 constant MAX_SD1x18 = SD1x18.wrap(uMAX_SD1x18);
/// @dev The maximum value an SD1x18 number can have.
int64 constant uMIN_SD1x18 = -9_223372036854775808;
SD1x18 constant MIN_SD1x18 = SD1x18.wrap(uMIN_SD1x18);
/// @dev PI as an SD1x18 number.
SD1x18 constant PI = SD1x18.wrap(3_141592653589793238);
/// @dev The unit number, which gives the decimal precision of SD1x18.
SD1x18 constant UNIT = SD1x18.wrap(1e18);
int256 constant uUNIT = 1e18;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 14 of 32 : Errors.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import { SD1x18 } from "./ValueType.sol";
/// @notice Thrown when trying to cast a SD1x18 number that doesn't fit in UD2x18.
error PRBMath_SD1x18_ToUD2x18_Underflow(SD1x18 x);
/// @notice Thrown when trying to cast a SD1x18 number that doesn't fit in UD60x18.
error PRBMath_SD1x18_ToUD60x18_Underflow(SD1x18 x);
/// @notice Thrown when trying to cast a SD1x18 number that doesn't fit in uint128.
error PRBMath_SD1x18_ToUint128_Underflow(SD1x18 x);
/// @notice Thrown when trying to cast a SD1x18 number that doesn't fit in uint256.
error PRBMath_SD1x18_ToUint256_Underflow(SD1x18 x);
/// @notice Thrown when trying to cast a SD1x18 number that doesn't fit in uint40.
error PRBMath_SD1x18_ToUint40_Overflow(SD1x18 x);
/// @notice Thrown when trying to cast a SD1x18 number that doesn't fit in uint40.
error PRBMath_SD1x18_ToUint40_Underflow(SD1x18 x);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 15 of 32 : ValueType.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import "./Casting.sol" as Casting;
/// @notice The signed 1.18-decimal fixed-point number representation, which can have up to 1 digit and up to 18
/// decimals. The values of this are bound by the minimum and the maximum values permitted by the underlying Solidity
/// type int64. This is useful when end users want to use int64 to save gas, e.g. with tight variable packing in contract
/// storage.
type SD1x18 is int64;
/*//////////////////////////////////////////////////////////////////////////
CASTING
//////////////////////////////////////////////////////////////////////////*/
using {
Casting.intoSD59x18,
Casting.intoUD2x18,
Casting.intoUD60x18,
Casting.intoUint256,
Casting.intoUint128,
Casting.intoUint40,
Casting.unwrap
} for SD1x18 global;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 16 of 32 : Casting.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import "./Errors.sol" as CastingErrors;
import { MAX_UINT128, MAX_UINT40 } from "../Common.sol";
import { uMAX_SD1x18, uMIN_SD1x18 } from "../sd1x18/Constants.sol";
import { SD1x18 } from "../sd1x18/ValueType.sol";
import { uMAX_UD2x18 } from "../ud2x18/Constants.sol";
import { UD2x18 } from "../ud2x18/ValueType.sol";
import { UD60x18 } from "../ud60x18/ValueType.sol";
import { SD59x18 } from "./ValueType.sol";
/// @notice Casts an SD59x18 number into int256.
/// @dev This is basically a functional alias for {unwrap}.
function intoInt256(SD59x18 x) pure returns (int256 result) {
result = SD59x18.unwrap(x);
}
/// @notice Casts an SD59x18 number into SD1x18.
/// @dev Requirements:
/// - x must be greater than or equal to `uMIN_SD1x18`.
/// - x must be less than or equal to `uMAX_SD1x18`.
function intoSD1x18(SD59x18 x) pure returns (SD1x18 result) {
int256 xInt = SD59x18.unwrap(x);
if (xInt < uMIN_SD1x18) {
revert CastingErrors.PRBMath_SD59x18_IntoSD1x18_Underflow(x);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 17 of 32 : Constants.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import { SD59x18 } from "./ValueType.sol";
// NOTICE: the "u" prefix stands for "unwrapped".
/// @dev Euler's number as an SD59x18 number.
SD59x18 constant E = SD59x18.wrap(2_718281828459045235);
/// @dev The maximum input permitted in {exp}.
int256 constant uEXP_MAX_INPUT = 133_084258667509499440;
SD59x18 constant EXP_MAX_INPUT = SD59x18.wrap(uEXP_MAX_INPUT);
/// @dev The maximum input permitted in {exp2}.
int256 constant uEXP2_MAX_INPUT = 192e18 - 1;
SD59x18 constant EXP2_MAX_INPUT = SD59x18.wrap(uEXP2_MAX_INPUT);
/// @dev Half the UNIT number.
int256 constant uHALF_UNIT = 0.5e18;
SD59x18 constant HALF_UNIT = SD59x18.wrap(uHALF_UNIT);
/// @dev $log_2(10)$ as an SD59x18 number.
int256 constant uLOG2_10 = 3_321928094887362347;
SD59x18 constant LOG2_10 = SD59x18.wrap(uLOG2_10);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 18 of 32 : Errors.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import { SD59x18 } from "./ValueType.sol";
/// @notice Thrown when taking the absolute value of `MIN_SD59x18`.
error PRBMath_SD59x18_Abs_MinSD59x18();
/// @notice Thrown when ceiling a number overflows SD59x18.
error PRBMath_SD59x18_Ceil_Overflow(SD59x18 x);
/// @notice Thrown when converting a basic integer to the fixed-point format overflows SD59x18.
error PRBMath_SD59x18_Convert_Overflow(int256 x);
/// @notice Thrown when converting a basic integer to the fixed-point format underflows SD59x18.
error PRBMath_SD59x18_Convert_Underflow(int256 x);
/// @notice Thrown when dividing two numbers and one of them is `MIN_SD59x18`.
error PRBMath_SD59x18_Div_InputTooSmall();
/// @notice Thrown when dividing two numbers and one of the intermediary unsigned results overflows SD59x18.
error PRBMath_SD59x18_Div_Overflow(SD59x18 x, SD59x18 y);
/// @notice Thrown when taking the natural exponent of a base greater than 133_084258667509499441.
error PRBMath_SD59x18_Exp_InputTooBig(SD59x18 x);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 19 of 32 : Helpers.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import { wrap } from "./Casting.sol";
import { SD59x18 } from "./ValueType.sol";
/// @notice Implements the checked addition operation (+) in the SD59x18 type.
function add(SD59x18 x, SD59x18 y) pure returns (SD59x18 result) {
return wrap(x.unwrap() + y.unwrap());
}
/// @notice Implements the AND (&) bitwise operation in the SD59x18 type.
function and(SD59x18 x, int256 bits) pure returns (SD59x18 result) {
return wrap(x.unwrap() & bits);
}
/// @notice Implements the AND (&) bitwise operation in the SD59x18 type.
function and2(SD59x18 x, SD59x18 y) pure returns (SD59x18 result) {
return wrap(x.unwrap() & y.unwrap());
}
/// @notice Implements the equal (=) operation in the SD59x18 type.
function eq(SD59x18 x, SD59x18 y) pure returns (bool result) {
result = x.unwrap() == y.unwrap();
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 20 of 32 : Math.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import "../Common.sol" as Common;
import "./Errors.sol" as Errors;
import {
uEXP_MAX_INPUT,
uEXP2_MAX_INPUT,
uHALF_UNIT,
uLOG2_10,
uLOG2_E,
uMAX_SD59x18,
uMAX_WHOLE_SD59x18,
uMIN_SD59x18,
uMIN_WHOLE_SD59x18,
UNIT,
uUNIT,
uUNIT_SQUARED,
ZERO
} from "./Constants.sol";
import { wrap } from "./Helpers.sol";
import { SD59x18 } from "./ValueType.sol";
/// @notice Calculates the absolute value of x.
///
/// @dev Requirements:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 21 of 32 : ValueType.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import "./Casting.sol" as Casting;
import "./Helpers.sol" as Helpers;
import "./Math.sol" as Math;
/// @notice The signed 59.18-decimal fixed-point number representation, which can have up to 59 digits and up to 18
/// decimals. The values of this are bound by the minimum and the maximum values permitted by the underlying Solidity
/// type int256.
type SD59x18 is int256;
/*//////////////////////////////////////////////////////////////////////////
CASTING
//////////////////////////////////////////////////////////////////////////*/
using {
Casting.intoInt256,
Casting.intoSD1x18,
Casting.intoUD2x18,
Casting.intoUD60x18,
Casting.intoUint256,
Casting.intoUint128,
Casting.intoUint40,
Casting.unwrap
} for SD59x18 global;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 22 of 32 : Casting.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import "../Common.sol" as Common;
import "./Errors.sol" as Errors;
import { uMAX_SD1x18 } from "../sd1x18/Constants.sol";
import { SD1x18 } from "../sd1x18/ValueType.sol";
import { SD59x18 } from "../sd59x18/ValueType.sol";
import { UD2x18 } from "../ud2x18/ValueType.sol";
import { UD60x18 } from "../ud60x18/ValueType.sol";
import { UD2x18 } from "./ValueType.sol";
/// @notice Casts a UD2x18 number into SD1x18.
/// - x must be less than or equal to `uMAX_SD1x18`.
function intoSD1x18(UD2x18 x) pure returns (SD1x18 result) {
uint64 xUint = UD2x18.unwrap(x);
if (xUint > uint64(uMAX_SD1x18)) {
revert Errors.PRBMath_UD2x18_IntoSD1x18_Overflow(x);
}
result = SD1x18.wrap(int64(xUint));
}
/// @notice Casts a UD2x18 number into SD59x18.
/// @dev There is no overflow check because the domain of UD2x18 is a subset of SD59x18.
function intoSD59x18(UD2x18 x) pure returns (SD59x18 result) {
result = SD59x18.wrap(int256(uint256(UD2x18.unwrap(x))));
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 23 of 32 : Constants.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import { UD2x18 } from "./ValueType.sol";
/// @dev Euler's number as a UD2x18 number.
UD2x18 constant E = UD2x18.wrap(2_718281828459045235);
/// @dev The maximum value a UD2x18 number can have.
uint64 constant uMAX_UD2x18 = 18_446744073709551615;
UD2x18 constant MAX_UD2x18 = UD2x18.wrap(uMAX_UD2x18);
/// @dev PI as a UD2x18 number.
UD2x18 constant PI = UD2x18.wrap(3_141592653589793238);
/// @dev The unit number, which gives the decimal precision of UD2x18.
uint256 constant uUNIT = 1e18;
UD2x18 constant UNIT = UD2x18.wrap(1e18);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 24 of 32 : Errors.sol
1
2
3
4
5
6
7
8
9
10
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import { UD2x18 } from "./ValueType.sol";
/// @notice Thrown when trying to cast a UD2x18 number that doesn't fit in SD1x18.
error PRBMath_UD2x18_IntoSD1x18_Overflow(UD2x18 x);
/// @notice Thrown when trying to cast a UD2x18 number that doesn't fit in uint40.
error PRBMath_UD2x18_IntoUint40_Overflow(UD2x18 x);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 25 of 32 : ValueType.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import "./Casting.sol" as Casting;
/// @notice The unsigned 2.18-decimal fixed-point number representation, which can have up to 2 digits and up to 18
/// decimals. The values of this are bound by the minimum and the maximum values permitted by the underlying Solidity
/// type uint64. This is useful when end users want to use uint64 to save gas, e.g. with tight variable packing in contract
/// storage.
type UD2x18 is uint64;
/*//////////////////////////////////////////////////////////////////////////
CASTING
//////////////////////////////////////////////////////////////////////////*/
using {
Casting.intoSD1x18,
Casting.intoSD59x18,
Casting.intoUD60x18,
Casting.intoUint256,
Casting.intoUint128,
Casting.intoUint40,
Casting.unwrap
} for UD2x18 global;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 26 of 32 : Casting.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import "./Errors.sol" as CastingErrors;
import { MAX_UINT128, MAX_UINT40 } from "../Common.sol";
import { uMAX_SD1x18 } from "../sd1x18/Constants.sol";
import { SD1x18 } from "../sd1x18/ValueType.sol";
import { uMAX_SD59x18 } from "../sd59x18/Constants.sol";
import { SD59x18 } from "../sd59x18/ValueType.sol";
import { uMAX_UD2x18 } from "../ud2x18/Constants.sol";
import { UD2x18 } from "../ud2x18/ValueType.sol";
import { UD60x18 } from "./ValueType.sol";
/// @notice Casts a UD60x18 number into SD1x18.
/// @dev Requirements:
/// - x must be less than or equal to `uMAX_SD1x18`.
function intoSD1x18(UD60x18 x) pure returns (SD1x18 result) {
uint256 xUint = UD60x18.unwrap(x);
if (xUint > uint256(int256(uMAX_SD1x18))) {
revert CastingErrors.PRBMath_UD60x18_IntoSD1x18_Overflow(x);
}
result = SD1x18.wrap(int64(uint64(xUint)));
}
/// @notice Casts a UD60x18 number into UD2x18.
/// @dev Requirements:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 27 of 32 : Constants.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import { UD60x18 } from "./ValueType.sol";
// NOTICE: the "u" prefix stands for "unwrapped".
/// @dev Euler's number as a UD60x18 number.
UD60x18 constant E = UD60x18.wrap(2_718281828459045235);
/// @dev The maximum input permitted in {exp}.
uint256 constant uEXP_MAX_INPUT = 133_084258667509499440;
UD60x18 constant EXP_MAX_INPUT = UD60x18.wrap(uEXP_MAX_INPUT);
/// @dev The maximum input permitted in {exp2}.
uint256 constant uEXP2_MAX_INPUT = 192e18 - 1;
UD60x18 constant EXP2_MAX_INPUT = UD60x18.wrap(uEXP2_MAX_INPUT);
/// @dev Half the UNIT number.
uint256 constant uHALF_UNIT = 0.5e18;
UD60x18 constant HALF_UNIT = UD60x18.wrap(uHALF_UNIT);
/// @dev $log_2(10)$ as a UD60x18 number.
uint256 constant uLOG2_10 = 3_321928094887362347;
UD60x18 constant LOG2_10 = UD60x18.wrap(uLOG2_10);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 28 of 32 : Conversions.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import { uMAX_UD60x18, uUNIT } from "./Constants.sol";
import { PRBMath_UD60x18_Convert_Overflow } from "./Errors.sol";
import { UD60x18 } from "./ValueType.sol";
/// @notice Converts a UD60x18 number to a simple integer by dividing it by `UNIT`.
/// @dev The result is rounded down.
/// @param x The UD60x18 number to convert.
/// @return result The same number in basic integer form.
function convert(UD60x18 x) pure returns (uint256 result) {
result = UD60x18.unwrap(x) / uUNIT;
}
/// @notice Converts a simple integer to UD60x18 by multiplying it by `UNIT`.
///
/// @dev Requirements:
/// - x must be less than or equal to `MAX_UD60x18 / UNIT`.
///
/// @param x The basic integer to convert.
/// @param result The same number converted to UD60x18.
function convert(uint256 x) pure returns (UD60x18 result) {
if (x > uMAX_UD60x18 / uUNIT) {
revert PRBMath_UD60x18_Convert_Overflow(x);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 29 of 32 : Errors.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import { UD60x18 } from "./ValueType.sol";
/// @notice Thrown when ceiling a number overflows UD60x18.
error PRBMath_UD60x18_Ceil_Overflow(UD60x18 x);
/// @notice Thrown when converting a basic integer to the fixed-point format overflows UD60x18.
error PRBMath_UD60x18_Convert_Overflow(uint256 x);
/// @notice Thrown when taking the natural exponent of a base greater than 133_084258667509499441.
error PRBMath_UD60x18_Exp_InputTooBig(UD60x18 x);
/// @notice Thrown when taking the binary exponent of a base greater than 192e18.
error PRBMath_UD60x18_Exp2_InputTooBig(UD60x18 x);
/// @notice Thrown when taking the geometric mean of two numbers and multiplying them overflows UD60x18.
error PRBMath_UD60x18_Gm_Overflow(UD60x18 x, UD60x18 y);
/// @notice Thrown when trying to cast a UD60x18 number that doesn't fit in SD1x18.
error PRBMath_UD60x18_IntoSD1x18_Overflow(UD60x18 x);
/// @notice Thrown when trying to cast a UD60x18 number that doesn't fit in SD59x18.
error PRBMath_UD60x18_IntoSD59x18_Overflow(UD60x18 x);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 30 of 32 : Helpers.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import { wrap } from "./Casting.sol";
import { UD60x18 } from "./ValueType.sol";
/// @notice Implements the checked addition operation (+) in the UD60x18 type.
function add(UD60x18 x, UD60x18 y) pure returns (UD60x18 result) {
result = wrap(x.unwrap() + y.unwrap());
}
/// @notice Implements the AND (&) bitwise operation in the UD60x18 type.
function and(UD60x18 x, uint256 bits) pure returns (UD60x18 result) {
result = wrap(x.unwrap() & bits);
}
/// @notice Implements the AND (&) bitwise operation in the UD60x18 type.
function and2(UD60x18 x, UD60x18 y) pure returns (UD60x18 result) {
result = wrap(x.unwrap() & y.unwrap());
}
/// @notice Implements the equal operation (==) in the UD60x18 type.
function eq(UD60x18 x, UD60x18 y) pure returns (bool result) {
result = x.unwrap() == y.unwrap();
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 31 of 32 : Math.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import "../Common.sol" as Common;
import "./Errors.sol" as Errors;
import { wrap } from "./Casting.sol";
import {
uEXP_MAX_INPUT,
uEXP2_MAX_INPUT,
uHALF_UNIT,
uLOG2_10,
uLOG2_E,
uMAX_UD60x18,
uMAX_WHOLE_UD60x18,
UNIT,
uUNIT,
uUNIT_SQUARED,
ZERO
} from "./Constants.sol";
import { UD60x18 } from "./ValueType.sol";
/*//////////////////////////////////////////////////////////////////////////
MATHEMATICAL FUNCTIONS
//////////////////////////////////////////////////////////////////////////*/
/// @notice Calculates the arithmetic average of x and y using the following formula:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

File 32 of 32 : ValueType.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;
import "./Casting.sol" as Casting;
import "./Helpers.sol" as Helpers;
import "./Math.sol" as Math;
/// @notice The unsigned 60.18-decimal fixed-point number representation, which can have up to 60 digits and up to 18
/// decimals. The values of this are bound by the minimum and the maximum values permitted by the Solidity type uint256.
/// @dev The value type is defined here so it can be imported in all other files.
type UD60x18 is uint256;
/*//////////////////////////////////////////////////////////////////////////
CASTING
//////////////////////////////////////////////////////////////////////////*/
using {
Casting.intoSD1x18,
Casting.intoUD2x18,
Casting.intoSD59x18,
Casting.intoUint128,
Casting.intoUint256,
Casting.intoUint40,
Casting.unwrap
} for UD60x18 global;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"remappings": [
"@atomize/=src/",
"@openzeppelin/=lib/openzeppelin-contracts/",
"@prb/math/=lib/prb-math/src/",
"@prb/test/=lib/prb-test/src/",
"XEN-crypto/=lib/XEN-crypto/contracts/",
"abdk-libraries-solidity/=lib/abdk-libraries-solidity/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"forge-std/=lib/forge-std/src/",
"prb-math/=lib/prb-math/src/",
"prb-test/=lib/prb-test/src/",
"xen-crypto/=lib/XEN-crypto/contracts/"
],
"optimizer": {
"enabled": true,
"runs": 10000
},
"metadata": {
"bytecodeHash": "none",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddressZero","type":"error"},{"inputs":[],"name":"BalanceZero","type":"error"},{"inputs":[],"name":"CooldownActive","type":"error"},{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"},{"internalType":"uint256","name":"y","type":"uint256"}],"name":"PRBMath_MulDiv18_Overflow","type":"error"},{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"},{"internalType":"uint256","name":"y","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"PRBMath_MulDiv_Overflow","type":"error"},{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"}],"name":"PRBMath_UD60x18_Convert_Overflow","type":"error"},{"inputs":[{"internalType":"UD60x18","name":"x","type":"uint256"}],"name":"PRBMath_UD60x18_Exp2_InputTooBig","type":"error"},{"inputs":[{"internalType":"UD60x18","name":"x","type":"uint256"}],"name":"PRBMath_UD60x18_Log_InputTooSmall","type":"error"},{"inputs":[],"name":"SizeGreaterThanMax","type":"error"},{"inputs":[],"name":"StakeLate","type":"error"},{"inputs":[],"name":"StakeNotActive","type":"error"},{"inputs":[],"name":"StakeNotEnded","type":"error"},{"inputs":[{"internalType":"enum Status","name":"status","type":"uint8"}],"name":"StakeStatusAlreadySet","type":"error"},{"inputs":[],"name":"TermGreaterThanMax","type":"error"},{"inputs":[],"name":"TermZero","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"WrongCaller","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"enum Status","name":"status","type":"uint8"},{"internalType":"uint40","name":"startTs","type":"uint40"},{"internalType":"uint40","name":"deferralTs","type":"uint40"},{"internalType":"uint40","name":"endTs","type":"uint40"},{"internalType":"uint16","name":"term","type":"uint16"},{"internalType":"uint256","name":"fenix","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"payout","type":"uint256"}],"indexed":true,"internalType":"struct Stake","name":"_stake","type":"tuple"}],"name":"DeferStake","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"enum Status","name":"status","type":"uint8"},{"internalType":"uint40","name":"startTs","type":"uint40"},{"internalType":"uint40","name":"deferralTs","type":"uint40"},{"internalType":"uint40","name":"endTs","type":"uint40"},{"internalType":"uint16","name":"term","type":"uint16"},{"internalType":"uint256","name":"fenix","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"payout","type":"uint256"}],"indexed":true,"internalType":"struct Stake","name":"_stake","type":"tuple"}],"name":"EndStake","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint40","name":"id","type":"uint40"},{"internalType":"uint40","name":"rewardTs","type":"uint40"},{"internalType":"uint256","name":"fenix","type":"uint256"},{"internalType":"address","name":"caller","type":"address"}],"indexed":true,"internalType":"struct Reward","name":"reward","type":"tuple"}],"name":"FlushRewardPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"xenContract","type":"address"},{"indexed":true,"internalType":"address","name":"tokenContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"xenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"Redeemed","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"enum Status","name":"status","type":"uint8"},{"internalType":"uint40","name":"startTs","type":"uint40"},{"internalType":"uint40","name":"deferralTs","type":"uint40"},{"internalType":"uint40","name":"endTs","type":"uint40"},{"internalType":"uint16","name":"term","type":"uint16"},{"internalType":"uint256","name":"fenix","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"payout","type":"uint256"}],"indexed":true,"internalType":"struct Stake","name":"_stake","type":"tuple"}],"name":"StartStake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_shareRate","type":"uint256"}],"name":"UpdateShareRate","type":"event"},{"inputs":[],"name":"ANNUAL_INFLATION_RATE","outputs":[{"internalType":"UD60x18","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_STAKE_LENGTH_DAYS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"XEN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"XEN_BURN_RATIO","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"xen","type":"uint256"}],"name":"burnXEN","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fenix","type":"uint256"},{"internalType":"uint256","name":"term","type":"uint256"}],"name":"calculateBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"enum Status","name":"status","type":"uint8"},{"internalType":"uint40","name":"startTs","type":"uint40"},{"internalType":"uint40","name":"deferralTs","type":"uint40"},{"internalType":"uint40","name":"endTs","type":"uint40"},{"internalType":"uint16","name":"term","type":"uint16"},{"internalType":"uint256","name":"fenix","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"payout","type":"uint256"}],"internalType":"struct Stake","name":"stake","type":"tuple"}],"name":"calculateEarlyPayout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"enum Status","name":"status","type":"uint8"},{"internalType":"uint40","name":"startTs","type":"uint40"},{"internalType":"uint40","name":"deferralTs","type":"uint40"},{"internalType":"uint40","name":"endTs","type":"uint40"},{"internalType":"uint16","name":"term","type":"uint16"},{"internalType":"uint256","name":"fenix","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"payout","type":"uint256"}],"internalType":"struct Stake","name":"stake","type":"tuple"}],"name":"calculateLatePayout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bonus","type":"uint256"}],"name":"calculateShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fenix","type":"uint256"}],"name":"calculateSizeBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"term","type":"uint256"}],"name":"calculateTimeBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"cooldownUnlockTs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stakeIndex","type":"uint256"},{"internalType":"address","name":"stakerAddress","type":"address"}],"name":"deferStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stakeIndex","type":"uint256"}],"name":"endStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"equityPoolSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"equityPoolTotalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flushRewardPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"genesisTs","outputs":[{"internalType":"uint40","name":"","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"onTokenBurned","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"rewardFor","outputs":[{"components":[{"internalType":"uint40","name":"id","type":"uint40"},{"internalType":"uint40","name":"rewardTs","type":"uint40"},{"internalType":"uint256","name":"fenix","type":"uint256"},{"internalType":"address","name":"caller","type":"address"}],"internalType":"struct Reward","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPoolSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"shareRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stakerAddress","type":"address"}],"name":"stakeCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stakerAddress","type":"address"},{"internalType":"uint256","name":"stakeIndex","type":"uint256"}],"name":"stakeFor","outputs":[{"components":[{"internalType":"enum Status","name":"status","type":"uint8"},{"internalType":"uint40","name":"startTs","type":"uint40"},{"internalType":"uint40","name":"deferralTs","type":"uint40"},{"internalType":"uint40","name":"endTs","type":"uint40"},{"internalType":"uint16","name":"term","type":"uint16"},{"internalType":"uint256","name":"fenix","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"payout","type":"uint256"}],"internalType":"struct Stake","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fenix","type":"uint256"},{"internalType":"uint256","name":"term","type":"uint256"}],"name":"startStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60a06040526000600655670de0b6b3a7640000600755600060085560006009553480156200002c57600080fd5b5060408051808201825260058082526408c8a9c92b60db1b60208084018290528451808601909552918452908301529060036200006a838262000146565b50600462000079828262000146565b5050504264ffffffffff81166080526200009890621baf809062000212565b6005556200023a565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620000cc57607f821691505b602082108103620000ed57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200014157600081815260208120601f850160051c810160208610156200011c5750805b601f850160051c820191505b818110156200013d5782815560010162000128565b5050505b505050565b81516001600160401b03811115620001625762000162620000a1565b6200017a81620001738454620000b7565b84620000f3565b602080601f831160018114620001b25760008415620001995750858301515b600019600386901b1c1916600185901b1785556200013d565b600085815260208120601f198616915b82811015620001e357888601518255948401946001909101908401620001c2565b5085821015620002025787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200023457634e487b7160e01b600052601160045260246000fd5b92915050565b608051613a566200025660003960006105f70152613a566000f3fe608060405234801561001057600080fd5b50600436106102925760003560e01c8063615a89a311610160578063a457c2d7116100d8578063dd62ed3e1161008c578063e3af6d0a11610071578063e3af6d0a146105f2578063e6c2cbb11461062f578063fb802a651461064257600080fd5b8063dd62ed3e14610599578063e1e48eb3146105df57600080fd5b8063ae94d2b5116100bd578063ae94d2b514610547578063bc1d089a14610550578063d8af78fc1461059057600080fd5b8063a457c2d714610521578063a9059cbb1461053457600080fd5b80637862affa1161012f5780639159e862116101145780639159e862146104a457806395d89b41146104ad578063a1472b15146104b557600080fd5b80637862affa14610489578063790854251461049c57600080fd5b8063615a89a31461041a5780636630a05e1461042d5780636f72fd201461044057806370a082311461045357600080fd5b806323b872dd1161020e57806339509351116101c25780633ec16194116101a75780633ec16194146103ec578063543746b1146103ff5780635cdc12f81461041257600080fd5b806339509351146103d0578063397b3378146103e357600080fd5b80633027e3c7116101f35780633027e3c714610382578063313ce5671461038b57806333060d901461039a57600080fd5b806323b872dd1461034f5780632ee409081461036257600080fd5b80630da63e3f1161026557806318160ddd1161024a57806318160ddd1461032b5780631a6cef14146103335780631c3fd1671461033c57600080fd5b80630da63e3f146102fc578063128bfcae1461031857600080fd5b806301ffc9a71461029757806306fdde03146102bf578063095ea7b3146102d45780630cbe28d6146102e7575b600080fd5b6102aa6102a5366004613494565b61064b565b60405190151581526020015b60405180910390f35b6102c76106e4565b6040516102b691906134d6565b6102aa6102e236600461356b565b610776565b6102fa6102f5366004613595565b61078e565b005b61030a66397beef356e6c481565b6040519081526020016102b6565b6102fa6103263660046135ae565b610bb7565b60025461030a565b61030a61271081565b6102fa61034a3660046135d0565b610f0f565b6102aa61035d3660046135fc565b61142b565b61037561037036600461356b565b611451565b6040516102b691906136a2565b61030a60085481565b604051601281526020016102b6565b61030a6103a8366004613715565b73ffffffffffffffffffffffffffffffffffffffff166000908152600a602052604090205490565b6102aa6103de36600461356b565b61158b565b61030a60065481565b61030a6103fa366004613595565b6115d7565b6102fa61040d36600461356b565b6115f4565b6102fa61173c565b61030a610428366004613766565b6119a3565b6102fa61043b366004613595565b611ab2565b61030a61044e3660046135ae565b611b55565b61030a610461366004613715565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b61030a610497366004613595565b611b9e565b600b5461030a565b61030a611e6181565b6102c7611bfd565b6104c86104c3366004613595565b611c0c565b6040516102b69190600060808201905064ffffffffff808451168352806020850151166020840152506040830151604083015273ffffffffffffffffffffffffffffffffffffffff606084015116606083015292915050565b6102aa61052f36600461356b565b611caf565b6102aa61054236600461356b565b611d8b565b61030a60055481565b61056b7306450dee7fd2fb8e39061434babcfc05599a6fb881565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102b6565b61030a60095481565b61030a6105a7366004613840565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b61030a6105ed366004613595565b611d99565b6106197f000000000000000000000000000000000000000000000000000000000000000081565b60405164ffffffffff90911681526020016102b6565b61030a61063d366004613766565b611e2d565b61030a60075481565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f543746b10000000000000000000000000000000000000000000000000000000014806106de57507fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000145b92915050565b6060600380546106f39061386a565b80601f016020809104026020016040519081016040528092919081815260200182805461071f9061386a565b801561076c5780601f106107415761010080835404028352916020019161076c565b820191906000526020600020905b81548152906001019060200180831161074f57829003601f168201915b5050505050905090565b600033610784818585611f2f565b5060019392505050565b6107988133610f0f565b336000908152600a602052604081208054839081106107b9576107b96138bd565b600091825260209091206040805161010081019091526004909202018054829060ff1660028111156107ed576107ed613638565b60028111156107fe576107fe613638565b8152815464ffffffffff61010082048116602084015266010000000000008204811660408401526b010000000000000000000000820416606083015261ffff700100000000000000000000000000000000909104166080820152600182015460a082015260028083015460c083015260039092015460e0909101529091508151600281111561088f5761088f613638565b036108d25760026040517fe04981d90000000000000000000000000000000000000000000000000000000081526004016108c991906138ec565b60405180910390fd5b6108e0338260e001516120e3565b60006109026108ff6108f38460a0015190565b60e08501515b906121d6565b90565b905060075481111561093f57600781905560405181907f371aff3c55ca45101819dbd6486bc608c1fe30cd77bd8ffef45a5429b024576090600090a25b6040805161010081019091526000908060028152602001846020015164ffffffffff168152602001846040015164ffffffffff168152602001846060015164ffffffffff168152602001846080015161ffff1681526020018460a0015181526020018460c0015181526020018460e00151815250905080600a60006109c13390565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208581548110610a0c57610a0c6138bd565b600091825260209091208251600490920201805490919082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001836002811115610a5b57610a5b613638565b0217905550602082015181546040808501516060860151608087015161ffff16700100000000000000000000000000000000027fffffffffffffffffffffffffffff0000ffffffffffffffffffffffffffffffff64ffffffffff9283166b01000000000000000000000002167fffffffffffffffffffffffffffff00000000000000ffffffffffffffffffffff9383166601000000000000027fffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffffff9390971661010002929092167fffffffffffffffffffffffffffffffffffffffffff00000000000000000000ff9095169490941794909417169290921717825560a0830151600183015560c0830151600283015560e09092015160039091015551610b819082906138fa565b604051908190038120907fd862f5fdbfa9636a4c1666d8348a7ae982c2350cc4c2894d901687f57c59c75b90600090a250505050565b81600003610bf1576040517f836fd8a700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600003610c2b576040517fb38ff31300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b426000610c3b62015180846139a2565b610c4590426139b9565b90506000610c538585611b55565b90506000610c60826115d7565b90506000610c7061016d876108f9565b90506000610ca56108ff610c9d84610c97670de0b6b3a764000066397beef356e6c46121ee565b906121fd565b8a5b9061230f565b90506000610cb66108ff8386610c9f565b90508160086000828254610cca91906139b9565b925050819055508060096000828254610ce391906139b9565b90915550506040805161010081018252600080825264ffffffffff8a8116602080850191909152838501839052908a16606084015261ffff8c16608084015260a083018d905260c0830185905260e08301829052338252600a81529281208054600180820183559183529390912082516004909402018054929384939192909183917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090911690836002811115610d9c57610d9c613638565b02179055506020820151815460408401516060850151608086015161ffff16700100000000000000000000000000000000027fffffffffffffffffffffffffffff0000ffffffffffffffffffffffffffffffff64ffffffffff9283166b01000000000000000000000002167fffffffffffffffffffffffffffff00000000000000ffffffffffffffffffffff9383166601000000000000027fffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffffff9390961661010002929092167fffffffffffffffffffffffffffffffffffffffffff00000000000000000000ff9094169390931793909317169190911717815560a0820151600182015560c0820151600282015560e090910151600390910155610ec5610ebf3390565b8b61231e565b80604051610ed391906138fa565b604051908190038120907f49735babbf75685a1d5f3d305826f3c9df6d8cc12b0f9de5867f95675ac38c3a90600090a250505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a60205260409020548210610f6d576040517fb0dd466e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a60205260408120805484908110610fa457610fa46138bd565b600091825260209091206040805161010081019091526004909202018054829060ff166002811115610fd857610fd8613638565b6002811115610fe957610fe9613638565b8152815464ffffffffff61010082048116602084015266010000000000008204811660408401526b010000000000000000000000820416606083015261ffff700100000000000000000000000000000000909104166080820152600182015460a0820152600282015460c082015260039091015460e090910152905060008151600281111561107a5761107a613638565b1461108457505050565b806060015164ffffffffff16421080156110b457503373ffffffffffffffffffffffffffffffffffffffff831614155b1561110657335b6040517f29507dbf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911660048201526024016108c9565b6000816060015164ffffffffff1642111561112e576111276108ff83611e2d565b905061113d565b61113a6108ff836119a3565b90505b600061115561114b60095490565b60c08501516108f9565b90506000611163828461230f565b905060006111776108ff83610c9f60085490565b905060006040518061010001604052806001600281111561119a5761119a613638565b8152602001876020015164ffffffffff1681526020014264ffffffffff168152602001876060015164ffffffffff168152602001876080015161ffff1681526020018760a0015181526020018760c00151815260200183815250905080600a60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208981548110611247576112476138bd565b600091825260209091208251600490920201805490919082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600183600281111561129657611296613638565b02179055506020820151815460408401516060850151608086015161ffff16700100000000000000000000000000000000027fffffffffffffffffffffffffffff0000ffffffffffffffffffffffffffffffff64ffffffffff9283166b01000000000000000000000002167fffffffffffffffffffffffffffff00000000000000ffffffffffffffffffffff9383166601000000000000027fffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffffff9390961661010002929092167fffffffffffffffffffffffffffffffffffffffffff00000000000000000000ff9094169390931793909317169190911717815560a0820151600182015560c080830151600283015560e090920151600390910155860151600980546000906113c59084906139cc565b9250508190555081600860008282546113de91906139cc565b90915550506040516113f19082906138fa565b604051908190038120907f9e6e56d0de3dd1d5b1ecba216b5e45e232e331aafcec0799fe0221b2b4e0ec6790600090a25050505050505050565b6000336114398582856124da565b6114448585856125b1565b60019150505b9392505050565b604080516101008101825260008082526020808301829052828401829052606083018290526080830182905260a0830182905260c0830182905260e0830182905273ffffffffffffffffffffffffffffffffffffffff86168252600a9052919091208054839081106114c5576114c56138bd565b600091825260209091206040805161010081019091526004909202018054829060ff1660028111156114f9576114f9613638565b600281111561150a5761150a613638565b81528154610100810464ffffffffff908116602084015266010000000000008204811660408401526b0100000000000000000000008204166060830152700100000000000000000000000000000000900461ffff166080820152600182015460a0820152600282015460c082015260039091015460e0909101529392505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919061078490829086906115d29087906139b9565b611f2f565b6000806115ec6115e660075490565b846108f9565b90508061144a565b337306450dee7fd2fb8e39061434babcfc05599a6fb81461161557336110bb565b73ffffffffffffffffffffffffffffffffffffffff8216611662576040517f9fabe1c100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060000361169c576040517f836fd8a700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006116aa61271083613a0e565b905080600660008282546116be91906139b9565b909155506116ce905083826120e3565b604080518381526020810183905230917306450dee7fd2fb8e39061434babcfc05599a6fb89173ffffffffffffffffffffffffffffffffffffffff8716917fda4c370e4f539b8e19d66144cad73d70fbf440a544e56ff38e28e38ed47801a8910160405180910390a4505050565b600554421015611778576040517faa9a98df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006277f8806005544261178c91906139cc565b6117969190613a0e565b9050600654600860008282546117ac91906139b9565b909155506117bf90506277f880826139a2565b6117cc906277f8806139b9565b600560008282546117dd91906139b9565b9250508190555060006040518060800160405280600b8054905064ffffffffff1681526020014264ffffffffff168152602001600654815260200161181f3390565b73ffffffffffffffffffffffffffffffffffffffff90811690915260006006819055600b8054600181018255915282517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9600390920291820180546020808701805164ffffffffff9586167fffffffffffffffffffffffffffffffffffffffffffff000000000000000000009094168417650100000000009187169190910217909355604080880180517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba8801556060808a0180517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbb90990180547fffffffffffffffffffffffff000000000000000000000000000000000000000016998b16999099179098558251948552945190951691830191909152925192810192909252915190921690820152909150608001604051908190038120907f4d21482c1d529d00b9e27bc6452492f43bb15630fbb706690945731858edae0f90600090a25050565b6000816020015164ffffffffff164210806119d157506000825160028111156119ce576119ce613638565b14155b15611a08576040517fb0dd466e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816060015164ffffffffff16421115611a4d576040517fe3b243e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000826020015164ffffffffff1642611a6691906139cc565b9050600062015180846080015161ffff16611a8191906139a2565b90506000611aa56002611a9f611a9685612820565b6108f987612820565b9061289e565b9050805b95945050505050565b7306450dee7fd2fb8e39061434babcfc05599a6fb8639dc29fac336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff909116600482015260248101849052604401600060405180830381600087803b158015611b3a57600080fd5b505af1158015611b4e573d6000803e3d6000fd5b5050505050565b600080611b646108ff85611d99565b90506000611b746108ff85611b9e565b90506000611b94611b8d6725b946ebc0b36173846121fd565b849061230f565b9695505050505050565b6000611e61821115611bdc576040517fe44ae5b500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006115ec611bee611e615b856108f9565b670de0b6b3a7640000906121ee565b6060600480546106f39061386a565b604080516080810182526000808252602082018190529181018290526060810191909152600b8281548110611c4357611c436138bd565b6000918252602091829020604080516080810182526003909302909101805464ffffffffff808216855265010000000000909104169383019390935260018301549082015260029091015473ffffffffffffffffffffffffffffffffffffffff16606082015292915050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015611d73576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016108c9565b611d808286868403611f2f565b506001949350505050565b6000336107848185856125b1565b6000611dc660037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6139cc565b8210611dfe576040517f2d493f1300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106de6108ff611e1e611e1985670de0b6b3a76400006121ee565b6128fe565b670de0b6b3a764000090612925565b6000816020015164ffffffffff16421080611e5b5750600082516002811115611e5857611e58613638565b14155b15611e92576040517fb0dd466e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816060015164ffffffffff16421015611ed7576040517f0f3f8ebf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000826060015164ffffffffff1642611ef091906139cc565b905062ed4e00811115611f065750600092915050565b6000611f196003611a9f62ed4e00611be8565b90506000611aa5670de0b6b3a764000083612925565b73ffffffffffffffffffffffffffffffffffffffff8316611fd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108c9565b73ffffffffffffffffffffffffffffffffffffffff8216612074576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016108c9565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8216612160576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108c9565b806002600082825461217291906139b9565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600061144a6108ff84670de0b6b3a764000085612934565b600061144a6108ff83856139b9565b6000828281830361222857801561221557600061221f565b670de0b6b3a76400005b925050506106de565b670de0b6b3a7640000820361224957670de0b6b3a7640000925050506106de565b8060000361226357670de0b6b3a7640000925050506106de565b670de0b6b3a7640000810361227c5784925050506106de565b670de0b6b3a76400008211156122ad576122a66122a161229b87612a3f565b8661230f565b612ba2565b9250612307565b60006122cb6108ff846ec097ce7bc90715b34b9f1000000000613a0e565b905060006122e46122a16122de84612a3f565b8861230f565b90506123026108ff826ec097ce7bc90715b34b9f1000000000613a0e565b945050505b505092915050565b600061144a6108ff8484612c19565b73ffffffffffffffffffffffffffffffffffffffff82166123c1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016108c9565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015612477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016108c9565b73ffffffffffffffffffffffffffffffffffffffff83166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016120d6565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146125ab578181101561259e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108c9565b6125ab8484848403611f2f565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8316612654576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016108c9565b73ffffffffffffffffffffffffffffffffffffffff82166126f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016108c9565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156127ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016108c9565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36125ab565b6000612854670de0b6b3a76400007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff613a0e565b821115612890576040517f1cd951a7000000000000000000000000000000000000000000000000000000008152600481018390526024016108c9565b50670de0b6b3a76400000290565b60008281600184166128b857670de0b6b3a76400006128ba565b815b9050600184901c93505b83156128f8576128d48283612c19565b915060018416156128ec576128e98183612c19565b90505b600184901c93506128c4565b80611aa9565b60006106de826ec097ce7bc90715b34b9f100000000081612921576129216139df565b0490565b600061144a6108ff83856139cc565b600080807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8587098587029250828110838203039150508060000361298c57838281612982576129826139df565b049250505061144a565b8381106129d6576040517f63a057780000000000000000000000000000000000000000000000000000000081526004810187905260248101869052604481018590526064016108c9565b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b600081670de0b6b3a7640000811015612a87576040517f36d32ef0000000000000000000000000000000000000000000000000000000008152600481018490526024016108c9565b6000612b13670de0b6b3a7640000830460016fffffffffffffffffffffffffffffffff821160071b91821c67ffffffffffffffff811160061b90811c63ffffffff811160051b90811c61ffff811160041b90811c60ff8111600390811b91821c600f811160021b90811c918211871b91821c969096119490961792909217171791909117919091171790565b9050670de0b6b3a7640000810282821c7ffffffffffffffffffffffffffffffffffffffffffffffffff21f494c589c00008101612b535750949350505050565b671bc16d674ec800006706f05b59d3b200005b8015612b9657670de0b6b3a7640000838002049250818310612b8e579283019260019290921c915b60011c612b66565b50919695505050505050565b600081680a688906bd8affffff811115612beb576040517fb3b6ba1f000000000000000000000000000000000000000000000000000000008152600481018490526024016108c9565b6000612c03670de0b6b3a7640000604084901b613a0e565b9050612c116108ff82612d20565b949350505050565b600080807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84860984860292508281108382030391505080600003612c6b5750670de0b6b3a7640000900490506106de565b670de0b6b3a76400008110612cb6576040517f5173648d00000000000000000000000000000000000000000000000000000000815260048101869052602481018590526044016108c9565b6000670de0b6b3a7640000858709620400008185030493109091037d40000000000000000000000000000000000000000000000000000000000002919091177faccb18165bd6fe31ae1cf318dc5b51eee0e1ba569b88cd74c1773b91fac106690291505092915050565b7780000000000000000000000000000000000000000000000067ff00000000000000821615612e4157678000000000000000821615612d685768016a09e667f3bcc9090260401c5b674000000000000000821615612d87576801306fe0a31b7152df0260401c5b672000000000000000821615612da6576801172b83c7d517adce0260401c5b671000000000000000821615612dc55768010b5586cf9890f62a0260401c5b670800000000000000821615612de4576801059b0d31585743ae0260401c5b670400000000000000821615612e0357680102c9a3e778060ee70260401c5b670200000000000000821615612e225768010163da9fb33356d80260401c5b670100000000000000821615612e4157680100b1afa5abcbed610260401c5b66ff000000000000821615612f40576680000000000000821615612e6e5768010058c86da1c09ea20260401c5b6640000000000000821615612e8c576801002c605e2e8cec500260401c5b6620000000000000821615612eaa57680100162f3904051fa10260401c5b6610000000000000821615612ec8576801000b175effdc76ba0260401c5b6608000000000000821615612ee657680100058ba01fb9f96d0260401c5b6604000000000000821615612f045768010002c5cc37da94920260401c5b6602000000000000821615612f22576801000162e525ee05470260401c5b6601000000000000821615612f405768010000b17255775c040260401c5b65ff00000000008216156130365765800000000000821615612f6b576801000058b91b5bc9ae0260401c5b65400000000000821615612f8857680100002c5c89d5ec6d0260401c5b65200000000000821615612fa55768010000162e43f4f8310260401c5b65100000000000821615612fc257680100000b1721bcfc9a0260401c5b65080000000000821615612fdf5768010000058b90cf1e6e0260401c5b65040000000000821615612ffc576801000002c5c863b73f0260401c5b6502000000000082161561301957680100000162e430e5a20260401c5b65010000000000821615613036576801000000b1721835510260401c5b64ff000000008216156131235764800000000082161561305f57680100000058b90c0b490260401c5b64400000000082161561307b5768010000002c5c8601cc0260401c5b642000000000821615613097576801000000162e42fff00260401c5b6410000000008216156130b35768010000000b17217fbb0260401c5b6408000000008216156130cf576801000000058b90bfce0260401c5b6404000000008216156130eb57680100000002c5c85fe30260401c5b6402000000008216156131075768010000000162e42ff10260401c5b64010000000082161561312357680100000000b17217f80260401c5b63ff00000082161561320757638000000082161561314a5768010000000058b90bfc0260401c5b6340000000821615613165576801000000002c5c85fe0260401c5b632000000082161561318057680100000000162e42ff0260401c5b631000000082161561319b576801000000000b17217f0260401c5b63080000008216156131b657680100000000058b90c00260401c5b63040000008216156131d15768010000000002c5c8600260401c5b63020000008216156131ec576801000000000162e4300260401c5b63010000008216156132075768010000000000b172180260401c5b62ff00008216156132e2576280000082161561322c576801000000000058b90c0260401c5b6240000082161561324657680100000000002c5c860260401c5b622000008216156132605768010000000000162e430260401c5b6210000082161561327a57680100000000000b17210260401c5b620800008216156132945768010000000000058b910260401c5b620400008216156132ae576801000000000002c5c80260401c5b620200008216156132c857680100000000000162e40260401c5b620100008216156132e2576801000000000000b1720260401c5b61ff008216156133b45761800082161561330557680100000000000058b90260401c5b61400082161561331e5768010000000000002c5d0260401c5b612000821615613337576801000000000000162e0260401c5b6110008216156133505768010000000000000b170260401c5b610800821615613369576801000000000000058c0260401c5b61040082161561338257680100000000000002c60260401c5b61020082161561339b57680100000000000001630260401c5b6101008216156133b457680100000000000000b10260401c5b60ff82161561347d5760808216156133d557680100000000000000590260401c5b60408216156133ed576801000000000000002c0260401c5b602082161561340557680100000000000000160260401c5b601082161561341d576801000000000000000b0260401c5b600882161561343557680100000000000000060260401c5b600482161561344d57680100000000000000030260401c5b600282161561346557680100000000000000010260401c5b600182161561347d57680100000000000000010260401c5b670de0b6b3a76400000260409190911c60bf031c90565b6000602082840312156134a657600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461144a57600080fd5b600060208083528351808285015260005b81811015613503578581018301518582016040015282016134e7565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461356657600080fd5b919050565b6000806040838503121561357e57600080fd5b61358783613542565b946020939093013593505050565b6000602082840312156135a757600080fd5b5035919050565b600080604083850312156135c157600080fd5b50508035926020909101359150565b600080604083850312156135e357600080fd5b823591506135f360208401613542565b90509250929050565b60008060006060848603121561361157600080fd5b61361a84613542565b925061362860208501613542565b9150604084013590509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061369e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9052565b6000610100820190506136b6828451613667565b602083015164ffffffffff8082166020850152806040860151166040850152806060860151166060850152505061ffff608084015116608083015260a083015160a083015260c083015160c083015260e083015160e083015292915050565b60006020828403121561372757600080fd5b61144a82613542565b80356003811061356657600080fd5b803564ffffffffff8116811461356657600080fd5b803561ffff8116811461356657600080fd5b600061010080838503121561377a57600080fd5b6040519081019067ffffffffffffffff821181831017156137c4577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b816040526137d184613730565b81526137df6020850161373f565b60208201526137f06040850161373f565b60408201526138016060850161373f565b606082015261381260808501613754565b608082015260a084013560a082015260c084013560c082015260e084013560e0820152809250505092915050565b6000806040838503121561385357600080fd5b61385c83613542565b91506135f360208401613542565b600181811c9082168061387e57607f821691505b6020821081036138b7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602081016106de8284613667565b613905818351613667565b600064ffffffffff8060208501511660208401528060408501511660408401528060608501511660608401525061ffff608084015116608083015260a083015160a083015260c083015160c083015261396860e0830160e0850151815260200190565b505061010001919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176106de576106de613973565b808201808211156106de576106de613973565b818103818111156106de576106de613973565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082613a44577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea164736f6c6343000813000a

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102925760003560e01c8063615a89a311610160578063a457c2d7116100d8578063dd62ed3e1161008c578063e3af6d0a11610071578063e3af6d0a146105f2578063e6c2cbb11461062f578063fb802a651461064257600080fd5b8063dd62ed3e14610599578063e1e48eb3146105df57600080fd5b8063ae94d2b5116100bd578063ae94d2b514610547578063bc1d089a14610550578063d8af78fc1461059057600080fd5b8063a457c2d714610521578063a9059cbb1461053457600080fd5b80637862affa1161012f5780639159e862116101145780639159e862146104a457806395d89b41146104ad578063a1472b15146104b557600080fd5b80637862affa14610489578063790854251461049c57600080fd5b8063615a89a31461041a5780636630a05e1461042d5780636f72fd201461044057806370a082311461045357600080fd5b806323b872dd1161020e57806339509351116101c25780633ec16194116101a75780633ec16194146103ec578063543746b1146103ff5780635cdc12f81461041257600080fd5b806339509351146103d0578063397b3378146103e357600080fd5b80633027e3c7116101f35780633027e3c714610382578063313ce5671461038b57806333060d901461039a57600080fd5b806323b872dd1461034f5780632ee409081461036257600080fd5b80630da63e3f1161026557806318160ddd1161024a57806318160ddd1461032b5780631a6cef14146103335780631c3fd1671461033c57600080fd5b80630da63e3f146102fc578063128bfcae1461031857600080fd5b806301ffc9a71461029757806306fdde03146102bf578063095ea7b3146102d45780630cbe28d6146102e7575b600080fd5b6102aa6102a5366004613494565b61064b565b60405190151581526020015b60405180910390f35b6102c76106e4565b6040516102b691906134d6565b6102aa6102e236600461356b565b610776565b6102fa6102f5366004613595565b61078e565b005b61030a66397beef356e6c481565b6040519081526020016102b6565b6102fa6103263660046135ae565b610bb7565b60025461030a565b61030a61271081565b6102fa61034a3660046135d0565b610f0f565b6102aa61035d3660046135fc565b61142b565b61037561037036600461356b565b611451565b6040516102b691906136a2565b61030a60085481565b604051601281526020016102b6565b61030a6103a8366004613715565b73ffffffffffffffffffffffffffffffffffffffff166000908152600a602052604090205490565b6102aa6103de36600461356b565b61158b565b61030a60065481565b61030a6103fa366004613595565b6115d7565b6102fa61040d36600461356b565b6115f4565b6102fa61173c565b61030a610428366004613766565b6119a3565b6102fa61043b366004613595565b611ab2565b61030a61044e3660046135ae565b611b55565b61030a610461366004613715565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b61030a610497366004613595565b611b9e565b600b5461030a565b61030a611e6181565b6102c7611bfd565b6104c86104c3366004613595565b611c0c565b6040516102b69190600060808201905064ffffffffff808451168352806020850151166020840152506040830151604083015273ffffffffffffffffffffffffffffffffffffffff606084015116606083015292915050565b6102aa61052f36600461356b565b611caf565b6102aa61054236600461356b565b611d8b565b61030a60055481565b61056b7306450dee7fd2fb8e39061434babcfc05599a6fb881565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102b6565b61030a60095481565b61030a6105a7366004613840565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b61030a6105ed366004613595565b611d99565b6106197f00000000000000000000000000000000000000000000000000000000645fc30b81565b60405164ffffffffff90911681526020016102b6565b61030a61063d366004613766565b611e2d565b61030a60075481565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f543746b10000000000000000000000000000000000000000000000000000000014806106de57507fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000145b92915050565b6060600380546106f39061386a565b80601f016020809104026020016040519081016040528092919081815260200182805461071f9061386a565b801561076c5780601f106107415761010080835404028352916020019161076c565b820191906000526020600020905b81548152906001019060200180831161074f57829003601f168201915b5050505050905090565b600033610784818585611f2f565b5060019392505050565b6107988133610f0f565b336000908152600a602052604081208054839081106107b9576107b96138bd565b600091825260209091206040805161010081019091526004909202018054829060ff1660028111156107ed576107ed613638565b60028111156107fe576107fe613638565b8152815464ffffffffff61010082048116602084015266010000000000008204811660408401526b010000000000000000000000820416606083015261ffff700100000000000000000000000000000000909104166080820152600182015460a082015260028083015460c083015260039092015460e0909101529091508151600281111561088f5761088f613638565b036108d25760026040517fe04981d90000000000000000000000000000000000000000000000000000000081526004016108c991906138ec565b60405180910390fd5b6108e0338260e001516120e3565b60006109026108ff6108f38460a0015190565b60e08501515b906121d6565b90565b905060075481111561093f57600781905560405181907f371aff3c55ca45101819dbd6486bc608c1fe30cd77bd8ffef45a5429b024576090600090a25b6040805161010081019091526000908060028152602001846020015164ffffffffff168152602001846040015164ffffffffff168152602001846060015164ffffffffff168152602001846080015161ffff1681526020018460a0015181526020018460c0015181526020018460e00151815250905080600a60006109c13390565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208581548110610a0c57610a0c6138bd565b600091825260209091208251600490920201805490919082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001836002811115610a5b57610a5b613638565b0217905550602082015181546040808501516060860151608087015161ffff16700100000000000000000000000000000000027fffffffffffffffffffffffffffff0000ffffffffffffffffffffffffffffffff64ffffffffff9283166b01000000000000000000000002167fffffffffffffffffffffffffffff00000000000000ffffffffffffffffffffff9383166601000000000000027fffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffffff9390971661010002929092167fffffffffffffffffffffffffffffffffffffffffff00000000000000000000ff9095169490941794909417169290921717825560a0830151600183015560c0830151600283015560e09092015160039091015551610b819082906138fa565b604051908190038120907fd862f5fdbfa9636a4c1666d8348a7ae982c2350cc4c2894d901687f57c59c75b90600090a250505050565b81600003610bf1576040517f836fd8a700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600003610c2b576040517fb38ff31300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b426000610c3b62015180846139a2565b610c4590426139b9565b90506000610c538585611b55565b90506000610c60826115d7565b90506000610c7061016d876108f9565b90506000610ca56108ff610c9d84610c97670de0b6b3a764000066397beef356e6c46121ee565b906121fd565b8a5b9061230f565b90506000610cb66108ff8386610c9f565b90508160086000828254610cca91906139b9565b925050819055508060096000828254610ce391906139b9565b90915550506040805161010081018252600080825264ffffffffff8a8116602080850191909152838501839052908a16606084015261ffff8c16608084015260a083018d905260c0830185905260e08301829052338252600a81529281208054600180820183559183529390912082516004909402018054929384939192909183917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090911690836002811115610d9c57610d9c613638565b02179055506020820151815460408401516060850151608086015161ffff16700100000000000000000000000000000000027fffffffffffffffffffffffffffff0000ffffffffffffffffffffffffffffffff64ffffffffff9283166b01000000000000000000000002167fffffffffffffffffffffffffffff00000000000000ffffffffffffffffffffff9383166601000000000000027fffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffffff9390961661010002929092167fffffffffffffffffffffffffffffffffffffffffff00000000000000000000ff9094169390931793909317169190911717815560a0820151600182015560c0820151600282015560e090910151600390910155610ec5610ebf3390565b8b61231e565b80604051610ed391906138fa565b604051908190038120907f49735babbf75685a1d5f3d305826f3c9df6d8cc12b0f9de5867f95675ac38c3a90600090a250505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a60205260409020548210610f6d576040517fb0dd466e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a60205260408120805484908110610fa457610fa46138bd565b600091825260209091206040805161010081019091526004909202018054829060ff166002811115610fd857610fd8613638565b6002811115610fe957610fe9613638565b8152815464ffffffffff61010082048116602084015266010000000000008204811660408401526b010000000000000000000000820416606083015261ffff700100000000000000000000000000000000909104166080820152600182015460a0820152600282015460c082015260039091015460e090910152905060008151600281111561107a5761107a613638565b1461108457505050565b806060015164ffffffffff16421080156110b457503373ffffffffffffffffffffffffffffffffffffffff831614155b1561110657335b6040517f29507dbf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911660048201526024016108c9565b6000816060015164ffffffffff1642111561112e576111276108ff83611e2d565b905061113d565b61113a6108ff836119a3565b90505b600061115561114b60095490565b60c08501516108f9565b90506000611163828461230f565b905060006111776108ff83610c9f60085490565b905060006040518061010001604052806001600281111561119a5761119a613638565b8152602001876020015164ffffffffff1681526020014264ffffffffff168152602001876060015164ffffffffff168152602001876080015161ffff1681526020018760a0015181526020018760c00151815260200183815250905080600a60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208981548110611247576112476138bd565b600091825260209091208251600490920201805490919082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600183600281111561129657611296613638565b02179055506020820151815460408401516060850151608086015161ffff16700100000000000000000000000000000000027fffffffffffffffffffffffffffff0000ffffffffffffffffffffffffffffffff64ffffffffff9283166b01000000000000000000000002167fffffffffffffffffffffffffffff00000000000000ffffffffffffffffffffff9383166601000000000000027fffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffffff9390961661010002929092167fffffffffffffffffffffffffffffffffffffffffff00000000000000000000ff9094169390931793909317169190911717815560a0820151600182015560c080830151600283015560e090920151600390910155860151600980546000906113c59084906139cc565b9250508190555081600860008282546113de91906139cc565b90915550506040516113f19082906138fa565b604051908190038120907f9e6e56d0de3dd1d5b1ecba216b5e45e232e331aafcec0799fe0221b2b4e0ec6790600090a25050505050505050565b6000336114398582856124da565b6114448585856125b1565b60019150505b9392505050565b604080516101008101825260008082526020808301829052828401829052606083018290526080830182905260a0830182905260c0830182905260e0830182905273ffffffffffffffffffffffffffffffffffffffff86168252600a9052919091208054839081106114c5576114c56138bd565b600091825260209091206040805161010081019091526004909202018054829060ff1660028111156114f9576114f9613638565b600281111561150a5761150a613638565b81528154610100810464ffffffffff908116602084015266010000000000008204811660408401526b0100000000000000000000008204166060830152700100000000000000000000000000000000900461ffff166080820152600182015460a0820152600282015460c082015260039091015460e0909101529392505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919061078490829086906115d29087906139b9565b611f2f565b6000806115ec6115e660075490565b846108f9565b90508061144a565b337306450dee7fd2fb8e39061434babcfc05599a6fb81461161557336110bb565b73ffffffffffffffffffffffffffffffffffffffff8216611662576040517f9fabe1c100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060000361169c576040517f836fd8a700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006116aa61271083613a0e565b905080600660008282546116be91906139b9565b909155506116ce905083826120e3565b604080518381526020810183905230917306450dee7fd2fb8e39061434babcfc05599a6fb89173ffffffffffffffffffffffffffffffffffffffff8716917fda4c370e4f539b8e19d66144cad73d70fbf440a544e56ff38e28e38ed47801a8910160405180910390a4505050565b600554421015611778576040517faa9a98df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006277f8806005544261178c91906139cc565b6117969190613a0e565b9050600654600860008282546117ac91906139b9565b909155506117bf90506277f880826139a2565b6117cc906277f8806139b9565b600560008282546117dd91906139b9565b9250508190555060006040518060800160405280600b8054905064ffffffffff1681526020014264ffffffffff168152602001600654815260200161181f3390565b73ffffffffffffffffffffffffffffffffffffffff90811690915260006006819055600b8054600181018255915282517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9600390920291820180546020808701805164ffffffffff9586167fffffffffffffffffffffffffffffffffffffffffffff000000000000000000009094168417650100000000009187169190910217909355604080880180517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba8801556060808a0180517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbb90990180547fffffffffffffffffffffffff000000000000000000000000000000000000000016998b16999099179098558251948552945190951691830191909152925192810192909252915190921690820152909150608001604051908190038120907f4d21482c1d529d00b9e27bc6452492f43bb15630fbb706690945731858edae0f90600090a25050565b6000816020015164ffffffffff164210806119d157506000825160028111156119ce576119ce613638565b14155b15611a08576040517fb0dd466e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816060015164ffffffffff16421115611a4d576040517fe3b243e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000826020015164ffffffffff1642611a6691906139cc565b9050600062015180846080015161ffff16611a8191906139a2565b90506000611aa56002611a9f611a9685612820565b6108f987612820565b9061289e565b9050805b95945050505050565b7306450dee7fd2fb8e39061434babcfc05599a6fb8639dc29fac336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff909116600482015260248101849052604401600060405180830381600087803b158015611b3a57600080fd5b505af1158015611b4e573d6000803e3d6000fd5b5050505050565b600080611b646108ff85611d99565b90506000611b746108ff85611b9e565b90506000611b94611b8d6725b946ebc0b36173846121fd565b849061230f565b9695505050505050565b6000611e61821115611bdc576040517fe44ae5b500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006115ec611bee611e615b856108f9565b670de0b6b3a7640000906121ee565b6060600480546106f39061386a565b604080516080810182526000808252602082018190529181018290526060810191909152600b8281548110611c4357611c436138bd565b6000918252602091829020604080516080810182526003909302909101805464ffffffffff808216855265010000000000909104169383019390935260018301549082015260029091015473ffffffffffffffffffffffffffffffffffffffff16606082015292915050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015611d73576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016108c9565b611d808286868403611f2f565b506001949350505050565b6000336107848185856125b1565b6000611dc660037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6139cc565b8210611dfe576040517f2d493f1300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106de6108ff611e1e611e1985670de0b6b3a76400006121ee565b6128fe565b670de0b6b3a764000090612925565b6000816020015164ffffffffff16421080611e5b5750600082516002811115611e5857611e58613638565b14155b15611e92576040517fb0dd466e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816060015164ffffffffff16421015611ed7576040517f0f3f8ebf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000826060015164ffffffffff1642611ef091906139cc565b905062ed4e00811115611f065750600092915050565b6000611f196003611a9f62ed4e00611be8565b90506000611aa5670de0b6b3a764000083612925565b73ffffffffffffffffffffffffffffffffffffffff8316611fd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016108c9565b73ffffffffffffffffffffffffffffffffffffffff8216612074576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016108c9565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8216612160576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016108c9565b806002600082825461217291906139b9565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b600061144a6108ff84670de0b6b3a764000085612934565b600061144a6108ff83856139b9565b6000828281830361222857801561221557600061221f565b670de0b6b3a76400005b925050506106de565b670de0b6b3a7640000820361224957670de0b6b3a7640000925050506106de565b8060000361226357670de0b6b3a7640000925050506106de565b670de0b6b3a7640000810361227c5784925050506106de565b670de0b6b3a76400008211156122ad576122a66122a161229b87612a3f565b8661230f565b612ba2565b9250612307565b60006122cb6108ff846ec097ce7bc90715b34b9f1000000000613a0e565b905060006122e46122a16122de84612a3f565b8861230f565b90506123026108ff826ec097ce7bc90715b34b9f1000000000613a0e565b945050505b505092915050565b600061144a6108ff8484612c19565b73ffffffffffffffffffffffffffffffffffffffff82166123c1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016108c9565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015612477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016108c9565b73ffffffffffffffffffffffffffffffffffffffff83166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016120d6565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146125ab578181101561259e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108c9565b6125ab8484848403611f2f565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8316612654576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016108c9565b73ffffffffffffffffffffffffffffffffffffffff82166126f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016108c9565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054818110156127ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016108c9565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36125ab565b6000612854670de0b6b3a76400007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff613a0e565b821115612890576040517f1cd951a7000000000000000000000000000000000000000000000000000000008152600481018390526024016108c9565b50670de0b6b3a76400000290565b60008281600184166128b857670de0b6b3a76400006128ba565b815b9050600184901c93505b83156128f8576128d48283612c19565b915060018416156128ec576128e98183612c19565b90505b600184901c93506128c4565b80611aa9565b60006106de826ec097ce7bc90715b34b9f100000000081612921576129216139df565b0490565b600061144a6108ff83856139cc565b600080807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8587098587029250828110838203039150508060000361298c57838281612982576129826139df565b049250505061144a565b8381106129d6576040517f63a057780000000000000000000000000000000000000000000000000000000081526004810187905260248101869052604481018590526064016108c9565b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b600081670de0b6b3a7640000811015612a87576040517f36d32ef0000000000000000000000000000000000000000000000000000000008152600481018490526024016108c9565b6000612b13670de0b6b3a7640000830460016fffffffffffffffffffffffffffffffff821160071b91821c67ffffffffffffffff811160061b90811c63ffffffff811160051b90811c61ffff811160041b90811c60ff8111600390811b91821c600f811160021b90811c918211871b91821c969096119490961792909217171791909117919091171790565b9050670de0b6b3a7640000810282821c7ffffffffffffffffffffffffffffffffffffffffffffffffff21f494c589c00008101612b535750949350505050565b671bc16d674ec800006706f05b59d3b200005b8015612b9657670de0b6b3a7640000838002049250818310612b8e579283019260019290921c915b60011c612b66565b50919695505050505050565b600081680a688906bd8affffff811115612beb576040517fb3b6ba1f000000000000000000000000000000000000000000000000000000008152600481018490526024016108c9565b6000612c03670de0b6b3a7640000604084901b613a0e565b9050612c116108ff82612d20565b949350505050565b600080807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84860984860292508281108382030391505080600003612c6b5750670de0b6b3a7640000900490506106de565b670de0b6b3a76400008110612cb6576040517f5173648d00000000000000000000000000000000000000000000000000000000815260048101869052602481018590526044016108c9565b6000670de0b6b3a7640000858709620400008185030493109091037d40000000000000000000000000000000000000000000000000000000000002919091177faccb18165bd6fe31ae1cf318dc5b51eee0e1ba569b88cd74c1773b91fac106690291505092915050565b7780000000000000000000000000000000000000000000000067ff00000000000000821615612e4157678000000000000000821615612d685768016a09e667f3bcc9090260401c5b674000000000000000821615612d87576801306fe0a31b7152df0260401c5b672000000000000000821615612da6576801172b83c7d517adce0260401c5b671000000000000000821615612dc55768010b5586cf9890f62a0260401c5b670800000000000000821615612de4576801059b0d31585743ae0260401c5b670400000000000000821615612e0357680102c9a3e778060ee70260401c5b670200000000000000821615612e225768010163da9fb33356d80260401c5b670100000000000000821615612e4157680100b1afa5abcbed610260401c5b66ff000000000000821615612f40576680000000000000821615612e6e5768010058c86da1c09ea20260401c5b6640000000000000821615612e8c576801002c605e2e8cec500260401c5b6620000000000000821615612eaa57680100162f3904051fa10260401c5b6610000000000000821615612ec8576801000b175effdc76ba0260401c5b6608000000000000821615612ee657680100058ba01fb9f96d0260401c5b6604000000000000821615612f045768010002c5cc37da94920260401c5b6602000000000000821615612f22576801000162e525ee05470260401c5b6601000000000000821615612f405768010000b17255775c040260401c5b65ff00000000008216156130365765800000000000821615612f6b576801000058b91b5bc9ae0260401c5b65400000000000821615612f8857680100002c5c89d5ec6d0260401c5b65200000000000821615612fa55768010000162e43f4f8310260401c5b65100000000000821615612fc257680100000b1721bcfc9a0260401c5b65080000000000821615612fdf5768010000058b90cf1e6e0260401c5b65040000000000821615612ffc576801000002c5c863b73f0260401c5b6502000000000082161561301957680100000162e430e5a20260401c5b65010000000000821615613036576801000000b1721835510260401c5b64ff000000008216156131235764800000000082161561305f57680100000058b90c0b490260401c5b64400000000082161561307b5768010000002c5c8601cc0260401c5b642000000000821615613097576801000000162e42fff00260401c5b6410000000008216156130b35768010000000b17217fbb0260401c5b6408000000008216156130cf576801000000058b90bfce0260401c5b6404000000008216156130eb57680100000002c5c85fe30260401c5b6402000000008216156131075768010000000162e42ff10260401c5b64010000000082161561312357680100000000b17217f80260401c5b63ff00000082161561320757638000000082161561314a5768010000000058b90bfc0260401c5b6340000000821615613165576801000000002c5c85fe0260401c5b632000000082161561318057680100000000162e42ff0260401c5b631000000082161561319b576801000000000b17217f0260401c5b63080000008216156131b657680100000000058b90c00260401c5b63040000008216156131d15768010000000002c5c8600260401c5b63020000008216156131ec576801000000000162e4300260401c5b63010000008216156132075768010000000000b172180260401c5b62ff00008216156132e2576280000082161561322c576801000000000058b90c0260401c5b6240000082161561324657680100000000002c5c860260401c5b622000008216156132605768010000000000162e430260401c5b6210000082161561327a57680100000000000b17210260401c5b620800008216156132945768010000000000058b910260401c5b620400008216156132ae576801000000000002c5c80260401c5b620200008216156132c857680100000000000162e40260401c5b620100008216156132e2576801000000000000b1720260401c5b61ff008216156133b45761800082161561330557680100000000000058b90260401c5b61400082161561331e5768010000000000002c5d0260401c5b612000821615613337576801000000000000162e0260401c5b6110008216156133505768010000000000000b170260401c5b610800821615613369576801000000000000058c0260401c5b61040082161561338257680100000000000002c60260401c5b61020082161561339b57680100000000000001630260401c5b6101008216156133b457680100000000000000b10260401c5b60ff82161561347d5760808216156133d557680100000000000000590260401c5b60408216156133ed576801000000000000002c0260401c5b602082161561340557680100000000000000160260401c5b601082161561341d576801000000000000000b0260401c5b600882161561343557680100000000000000060260401c5b600482161561344d57680100000000000000030260401c5b600282161561346557680100000000000000010260401c5b600182161561347d57680100000000000000010260401c5b670de0b6b3a76400000260409190911c60bf031c90565b6000602082840312156134a657600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461144a57600080fd5b600060208083528351808285015260005b81811015613503578581018301518582016040015282016134e7565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461356657600080fd5b919050565b6000806040838503121561357e57600080fd5b61358783613542565b946020939093013593505050565b6000602082840312156135a757600080fd5b5035919050565b600080604083850312156135c157600080fd5b50508035926020909101359150565b600080604083850312156135e357600080fd5b823591506135f360208401613542565b90509250929050565b60008060006060848603121561361157600080fd5b61361a84613542565b925061362860208501613542565b9150604084013590509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061369e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b9052565b6000610100820190506136b6828451613667565b602083015164ffffffffff8082166020850152806040860151166040850152806060860151166060850152505061ffff608084015116608083015260a083015160a083015260c083015160c083015260e083015160e083015292915050565b60006020828403121561372757600080fd5b61144a82613542565b80356003811061356657600080fd5b803564ffffffffff8116811461356657600080fd5b803561ffff8116811461356657600080fd5b600061010080838503121561377a57600080fd5b6040519081019067ffffffffffffffff821181831017156137c4577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b816040526137d184613730565b81526137df6020850161373f565b60208201526137f06040850161373f565b60408201526138016060850161373f565b606082015261381260808501613754565b608082015260a084013560a082015260c084013560c082015260e084013560e0820152809250505092915050565b6000806040838503121561385357600080fd5b61385c83613542565b91506135f360208401613542565b600181811c9082168061387e57607f821691505b6020821081036138b7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602081016106de8284613667565b613905818351613667565b600064ffffffffff8060208501511660208401528060408501511660408401528060608501511660608401525061ffff608084015116608083015260a083015160a083015260c083015160c083015261396860e0830160e0850151815260200190565b505061010001919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176106de576106de613973565b808201808211156106de576106de613973565b818103818111156106de576106de613973565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082613a44577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea164736f6c6343000813000a

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.