Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MultiRoundCheckout
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 400 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.17;
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20PermitUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "./IVotable.sol";
import "./IDAIPermit.sol";
import "./IAllo.sol";
error VotesNotEqualRoundsLength();
error AmountsNotEqualRoundsLength();
error ExcessAmountSent();
error INVALID_INPUT();
contract MultiRoundCheckout is OwnableUpgradeable, PausableUpgradeable, ReentrancyGuardUpgradeable {
modifier validateNativeBalance() {
uint256 initialBalance = address(this).balance;
_;
if (address(this).balance != initialBalance - msg.value) {
revert ExcessAmountSent();
}
}
modifier validateErc20Balance(address token) {
uint256 initialBalance = IERC20Upgradeable(token).balanceOf(address(this));
_;
if (IERC20Upgradeable(token).balanceOf(address(this)) != initialBalance) {
revert ExcessAmountSent();
}
}
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {
_disableInitializers();
_pause();
}
function initialize(address _allo) public reinitializer(4) {
__Ownable_init();
__Pausable_init();
__ReentrancyGuard_init();
allo = IAllo(_allo);
}
function pause() public onlyOwner {
_pause();
}
function unpause() public onlyOwner {
_unpause();
}
/**
* vote: votes for multiple rounds at once with ETH.
* votes is a 2d array. first index is the index of the round address in the second param.
*/
function vote(bytes[][] memory votes, address[] memory rounds, uint256[] memory amounts)
public
payable
nonReentrant
whenNotPaused
validateNativeBalance
{
_validateV1Input(votes, rounds, amounts);
uint256 roundsLength = rounds.length;
for (uint256 i = 0; i < roundsLength;) {
IVotable round = IVotable(payable(rounds[i]));
round.vote{value: amounts[i]}(votes[i]);
unchecked {
++i;
}
}
}
/**
* voteERC20Permit: votes for multiple rounds at once with ERC20Permit tokens.
*/
function voteERC20Permit(
bytes[][] memory votes,
address[] memory rounds,
uint256[] memory amounts,
uint256 totalAmount,
address token,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) public nonReentrant whenNotPaused validateErc20Balance(token) {
_validateV1Input(votes, rounds, amounts);
_checkERC20Allowance(token, totalAmount, deadline, v, r, s);
_handleVote(votes, rounds, amounts, totalAmount, token);
}
/**
* voteDAIPermit: votes for multiple rounds at once with DAI.
*/
function voteDAIPermit(
bytes[][] memory votes,
address[] memory rounds,
uint256[] memory amounts,
uint256 totalAmount,
address token,
uint256 deadline,
uint256 nonce,
uint8 v,
bytes32 r,
bytes32 s
) public nonReentrant whenNotPaused validateErc20Balance(token) {
_validateV1Input(votes, rounds, amounts);
_checkDAIAllowance(token, totalAmount, deadline, nonce, v, r, s);
_handleVote(votes, rounds, amounts, totalAmount, token);
}
function _handleVote(
bytes[][] memory votes,
address[] memory rounds,
uint256[] memory amounts,
uint256 totalAmount,
address token
) internal {
_transferToken(token, totalAmount);
uint256 roundsLength = rounds.length;
for (uint256 i = 0; i < roundsLength;) {
IVotable round = IVotable(rounds[i]);
IERC20Upgradeable(token).approve(address(round.votingStrategy()), amounts[i]);
round.vote(votes[i]);
unchecked {
++i;
}
}
}
function _checkERC20Allowance(address token, uint256 totalAmount, uint256 deadline, uint8 v, bytes32 r, bytes32 s)
internal
{
try IERC20PermitUpgradeable(token).permit(msg.sender, address(this), totalAmount, deadline, v, r, s) {}
catch Error(string memory reason) {
if (IERC20Upgradeable(token).allowance(msg.sender, address(this)) < totalAmount) {
revert(reason);
}
} catch (bytes memory reason) {
if (IERC20Upgradeable(token).allowance(msg.sender, address(this)) < totalAmount) {
revert(string(reason));
}
}
}
function _checkDAIAllowance(
address token,
uint256 totalAmount,
uint256 deadline,
uint256 nonce,
uint8 v,
bytes32 r,
bytes32 s
) internal {
try IDAIPermit(token).permit(msg.sender, address(this), nonce, deadline, true, v, r, s) {}
catch Error(string memory reason) {
if (IERC20Upgradeable(token).allowance(msg.sender, address(this)) < totalAmount) {
revert(reason);
}
} catch (bytes memory reason) {
if (IERC20Upgradeable(token).allowance(msg.sender, address(this)) < totalAmount) {
revert(string(reason));
}
}
}
function _transferToken(address token, uint256 totalAmount) internal {
IERC20Upgradeable(token).transferFrom(msg.sender, address(this), totalAmount);
}
function _validateV1Input(bytes[][] memory votes, address[] memory rounds, uint256[] memory amounts)
internal
pure
{
if (votes.length != rounds.length) {
revert VotesNotEqualRoundsLength();
}
if (amounts.length != rounds.length) {
revert AmountsNotEqualRoundsLength();
}
}
/**
*
* Allo V2
*
*/
struct Allocations {
address token;
uint256 totalAmount;
uint256[] poolIds;
uint256[] amounts;
bytes[] data;
}
IAllo public allo;
/**
* allocate: allocate donations for multiple rounds at once with ETH.
* @param _poolIds Allo-v2 Pool Id to which to allocate the funds
* @param _amounts Amounts to allocate to each pool
* @param _data Encoded data to be passed to the Allo-v2 pool
*/
function allocate(uint256[] memory _poolIds, uint256[] memory _amounts, bytes[] memory _data)
public
payable
nonReentrant
whenNotPaused
validateNativeBalance
{
_validateV2Input(_poolIds, _amounts, _data);
uint256 poolLength = _poolIds.length;
for (uint256 i = 0; i < poolLength;) {
allo.allocate{value: _amounts[i]}(_poolIds[i], _data[i]);
unchecked {
++i;
}
}
}
/**
* allocateERC20Permit: allocate donations for multiple rounds at once with ERC20Permit tokens.
*/
function allocateERC20Permit(
bytes[] memory _data,
uint256[] memory _poolIds,
uint256[] memory _amounts,
uint256 totalAmount,
address token,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) public nonReentrant whenNotPaused validateErc20Balance(token) {
_checkERC20Allowance(token, totalAmount, deadline, v, r, s);
_handleAllocate(Allocations(token, totalAmount, _poolIds, _amounts, _data));
}
/**
* allocateDAIPermit: _data for multiple rounds at once with DAI.
*/
function allocateDAIPermit(
bytes[] memory _data,
uint256[] memory _poolIds,
uint256[] memory _amounts,
uint256 totalAmount,
address token,
uint256 deadline,
uint256 nonce,
uint8 v,
bytes32 r,
bytes32 s
) public nonReentrant whenNotPaused validateErc20Balance(token) {
_checkDAIAllowance(token, totalAmount, deadline, nonce, v, r, s);
_handleAllocate(Allocations(token, totalAmount, _poolIds, _amounts, _data));
}
function updateAllo(address _allo) public onlyOwner {
allo = IAllo(_allo);
}
function _handleAllocate(Allocations memory _params) internal {
_validateV2Input(_params.poolIds, _params.amounts, _params.data);
_transferToken(_params.token, _params.totalAmount);
uint256 poolIdsLength = _params.poolIds.length;
for (uint256 i = 0; i < poolIdsLength;) {
uint256 poolId = _params.poolIds[i];
IERC20Upgradeable(_params.token).approve(address(allo.getStrategy(poolId)), _params.amounts[i]);
IAllo(allo).allocate(poolId, _params.data[i]);
unchecked {
++i;
}
}
}
function _validateV2Input(uint256[] memory _poolIds, uint256[] memory _amounts, bytes[] memory _data)
internal
pure
{
if (_poolIds.length != _data.length || _poolIds.length != _amounts.length) {
revert INVALID_INPUT();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init() internal onlyInitializing {
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal onlyInitializing {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.2;
import "../../utils/AddressUpgradeable.sol";
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```solidity
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
*
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
* @custom:oz-retyped-from bool
*/
uint8 private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint8 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts.
*
* Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
* constructor.
*
* Emits an {Initialized} event.
*/
modifier initializer() {
bool isTopLevelCall = !_initializing;
require(
(isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
"Initializable: contract is already initialized"
);
_initialized = 1;
if (isTopLevelCall) {
_initializing = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* A reinitializer may be used after the original initialization step. This is essential to configure modules that
* are added through upgrades and that require initialization.
*
* When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
* cannot be nested. If one is invoked in the context of another, execution will revert.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*
* WARNING: setting the version to 255 will prevent any future reinitialization.
*
* Emits an {Initialized} event.
*/
modifier reinitializer(uint8 version) {
require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
_initialized = version;
_initializing = true;
_;
_initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*
* Emits an {Initialized} event the first time it is successfully executed.
*/
function _disableInitializers() internal virtual {
require(!_initializing, "Initializable: contract is initializing");
if (_initialized != type(uint8).max) {
_initialized = type(uint8).max;
emit Initialized(type(uint8).max);
}
}
/**
* @dev Returns the highest version that has been initialized. See {reinitializer}.
*/
function _getInitializedVersion() internal view returns (uint8) {
return _initialized;
}
/**
* @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
*/
function _isInitializing() internal view returns (bool) {
return _initializing;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
function __Pausable_init() internal onlyInitializing {
__Pausable_init_unchained();
}
function __Pausable_init_unchained() internal onlyInitializing {
_paused = false;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
require(!paused(), "Pausable: paused");
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
require(paused(), "Pausable: not paused");
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuardUpgradeable is Initializable {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
function __ReentrancyGuard_init() internal onlyInitializing {
__ReentrancyGuard_init_unchained();
}
function __ReentrancyGuard_init_unchained() internal onlyInitializing {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
interface IERC20PermitUpgradeable {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20Upgradeable {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
/**
* @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 ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.17;
abstract contract IAllo {
function getStrategy(uint256 _poolId) external view virtual returns (address);
function allocate(uint256 _poolId, bytes memory _data) external payable virtual;
}// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.17;
interface IDAIPermit {
function permit(
address holder,
address spender,
uint256 nonce,
uint256 expiry,
bool allowed,
uint8 v,
bytes32 r,
bytes32 s
) external;
}// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.17;
abstract contract IVotable {
address public votingStrategy;
function vote(bytes[] memory data) external payable virtual;
}{
"optimizer": {
"enabled": true,
"runs": 400
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AmountsNotEqualRoundsLength","type":"error"},{"inputs":[],"name":"ExcessAmountSent","type":"error"},{"inputs":[],"name":"INVALID_INPUT","type":"error"},{"inputs":[],"name":"VotesNotEqualRoundsLength","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"allo","outputs":[{"internalType":"contract IAllo","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_poolIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"bytes[]","name":"_data","type":"bytes[]"}],"name":"allocate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"_data","type":"bytes[]"},{"internalType":"uint256[]","name":"_poolIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"allocateDAIPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"_data","type":"bytes[]"},{"internalType":"uint256[]","name":"_poolIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"allocateERC20Permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_allo","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_allo","type":"address"}],"name":"updateAllo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[][]","name":"votes","type":"bytes[][]"},{"internalType":"address[]","name":"rounds","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"vote","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes[][]","name":"votes","type":"bytes[][]"},{"internalType":"address[]","name":"rounds","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"voteDAIPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[][]","name":"votes","type":"bytes[][]"},{"internalType":"address[]","name":"rounds","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"voteERC20Permit","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b506200001c6200002c565b62000026620000ef565b62000190565b600054610100900460ff16156200009a5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b60648201526084015b60405180910390fd5b60005460ff90811614620000ed576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498906020015b60405180910390a15b565b620000f962000148565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200012f3390565b6040516001600160a01b039091168152602001620000e4565b60655460ff1615620000ed5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640162000091565b611f3980620001a06000396000f3fe6080604052600436106100e85760003560e01c80638da5cb5b1161008a578063c7b8896b11610059578063c7b8896b1461023b578063d6d8428d1461024e578063e31739691461026e578063f2fde38b1461028e57600080fd5b80638da5cb5b146101b6578063a710f56a146101e8578063aea64c3814610208578063c4d66de81461021b57600080fd5b80636ae048b5116100c65780636ae048b51461014c578063715018a61461016c5780637449b8ee146101815780638456cb59146101a157600080fd5b8063356abb5d146100ed5780633f4ba83a1461010f5780635c975abb14610124575b600080fd5b3480156100f957600080fd5b5061010d610108366004611805565b6102ae565b005b34801561011b57600080fd5b5061010d610414565b34801561013057600080fd5b5060655460ff1660405190151581526020015b60405180910390f35b34801561015857600080fd5b5061010d6101673660046118e1565b610426565b34801561017857600080fd5b5061010d610450565b34801561018d57600080fd5b5061010d61019c366004611905565b610462565b3480156101ad57600080fd5b5061010d6105c6565b3480156101c257600080fd5b506033546001600160a01b03165b6040516001600160a01b039091168152602001610143565b3480156101f457600080fd5b5061010d610203366004611ad0565b6105d6565b61010d610216366004611b35565b61067b565b34801561022757600080fd5b5061010d6102363660046118e1565b61079b565b61010d610249366004611bbd565b6108b1565b34801561025a57600080fd5b5060c9546101d0906001600160a01b031681565b34801561027a57600080fd5b5061010d610289366004611c3b565b610999565b34801561029a57600080fd5b5061010d6102a93660046118e1565b610a3f565b6102b6610ab8565b6102be610b11565b6040516370a0823160e01b815230600482015286906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610307573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032b9190611ca1565b905061033c888a8989898989610b57565b6103746040518060a001604052808a6001600160a01b031681526020018b81526020018d81526020018c81526020018e815250610d0d565b6040516370a0823160e01b815230600482015281906001600160a01b038416906370a0823190602401602060405180830381865afa1580156103ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103de9190611ca1565b146103fc576040516367832fe760e01b815260040160405180910390fd5b50506104086001609755565b50505050505050505050565b61041c610f11565b610424610f6b565b565b61042e610f11565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b610458610f11565b6104246000610fbd565b61046a610ab8565b610472610b11565b6040516370a0823160e01b815230600482015285906000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156104bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104df9190611ca1565b90506104ef87898888888861100f565b6105276040518060a00160405280896001600160a01b031681526020018a81526020018c81526020018b81526020018d815250610d0d565b6040516370a0823160e01b815230600482015281906001600160a01b038416906370a0823190602401602060405180830381865afa15801561056d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105919190611ca1565b146105af576040516367832fe760e01b815260040160405180910390fd5b50506105bb6001609755565b505050505050505050565b6105ce610f11565b6104246111bc565b6105de610ab8565b6105e6610b11565b6040516370a0823160e01b815230600482015285906000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561062f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106539190611ca1565b90506106608b8b8b6111f9565b61066e87898888888861100f565b6105278b8b8b8b8b61123d565b610683610ab8565b61068b610b11565b476106978484846111f9565b825160005b8181101561075f5760008582815181106106b8576106b8611cba565b60200260200101519050806001600160a01b0316637aa54b688684815181106106e3576106e3611cba565b60200260200101518985815181106106fd576106fd611cba565b60200260200101516040518363ffffffff1660e01b81526004016107219190611d16565b6000604051808303818588803b15801561073a57600080fd5b505af115801561074e573d6000803e3d6000fd5b50505050508160010191505061069c565b5061076c90503482611d78565b471461078b576040516367832fe760e01b815260040160405180910390fd5b506107966001609755565b505050565b600054600490610100900460ff161580156107bd575060005460ff8083169116105b6108255760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6000805461ffff191660ff8316176101001790556108416113f5565b610849611424565b610851611453565b60c980546001600160a01b0319166001600160a01b0384161790556000805461ff001916905560405160ff821681527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b6108b9610ab8565b6108c1610b11565b476108cd848484611482565b835160005b8181101561075f5760c95485516001600160a01b0390911690632ec381889087908490811061090357610903611cba565b602002602001015188848151811061091d5761091d611cba565b602002602001015187858151811061093757610937611cba565b60200260200101516040518463ffffffff1660e01b815260040161095c929190611d9f565b6000604051808303818588803b15801561097557600080fd5b505af1158015610989573d6000803e3d6000fd5b50505050508060010190506108d2565b6109a1610ab8565b6109a9610b11565b6040516370a0823160e01b815230600482015286906000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156109f2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a169190611ca1565b9050610a238c8c8c6111f9565b610a32888a8989898989610b57565b6103748c8c8c8c8c61123d565b610a47610f11565b6001600160a01b038116610aac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161081c565b610ab581610fbd565b50565b600260975403610b0a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161081c565b6002609755565b60655460ff16156104245760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161081c565b6040516323f2ebc360e21b815233600482015230602482015260448101859052606481018690526001608482015260ff841660a482015260c4810183905260e481018290526001600160a01b03881690638fcbaf0c9061010401600060405180830381600087803b158015610bcb57600080fd5b505af1925050508015610bdc575060015b610d0457610be8611dc0565b806308c379a003610c9e5750610bfc611ddc565b80610c075750610ca0565b604051636eb1769f60e11b815233600482015230602482015287906001600160a01b038a169063dd62ed3e906044015b602060405180830381865afa158015610c54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c789190611ca1565b1015610c98578060405162461bcd60e51b815260040161081c9190611e66565b50610d04565b505b3d808015610cca576040519150601f19603f3d011682016040523d82523d6000602084013e610ccf565b606091505b50604051636eb1769f60e11b815233600482015230602482015287906001600160a01b038a169063dd62ed3e90604401610c37565b50505050505050565b610d24816040015182606001518360800151611482565b610d36816000015182602001516114b3565b60408101515160005b8181101561079657600083604001518281518110610d5f57610d5f611cba565b6020908102919091010151845160c9546040516333f0330d60e21b8152600481018490529293506001600160a01b039182169263095ea7b3929091169063cfc0cc3490602401602060405180830381865afa158015610dc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de69190611e79565b86606001518581518110610dfc57610dfc611cba565b60200260200101516040518363ffffffff1660e01b8152600401610e359291906001600160a01b03929092168252602082015260400190565b6020604051808303816000875af1158015610e54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e789190611e96565b5060c954608085015180516001600160a01b0390921691632ec3818891849186908110610ea757610ea7611cba565b60200260200101516040518363ffffffff1660e01b8152600401610ecc929190611d9f565b600060405180830381600087803b158015610ee657600080fd5b505af1158015610efa573d6000803e3d6000fd5b5050505081600101915050610d3f565b6001609755565b6033546001600160a01b031633146104245760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161081c565b610f7361152a565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60405163d505accf60e01b8152336004820152306024820152604481018690526064810185905260ff8416608482015260a4810183905260c481018290526001600160a01b0387169063d505accf9060e401600060405180830381600087803b15801561107b57600080fd5b505af192505050801561108c575060015b6111b457611098611dc0565b806308c379a00361114e57506110ac611ddc565b806110b75750611150565b604051636eb1769f60e11b815233600482015230602482015286906001600160a01b0389169063dd62ed3e906044015b602060405180830381865afa158015611104573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111289190611ca1565b1015611148578060405162461bcd60e51b815260040161081c9190611e66565b506111b4565b505b3d80801561117a576040519150601f19603f3d011682016040523d82523d6000602084013e61117f565b606091505b50604051636eb1769f60e11b815233600482015230602482015286906001600160a01b0389169063dd62ed3e906044016110e7565b505050505050565b6111c4610b11565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610fa03390565b815183511461121b57604051630977d6c560e11b815260040160405180910390fd5b815181511461079657604051631c9449e160e01b815260040160405180910390fd5b61124781836114b3565b835160005b81811015610d0457600086828151811061126857611268611cba565b60200260200101519050836001600160a01b031663095ea7b3826001600160a01b031663fb5c8bfd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e39190611e79565b8885815181106112f5576112f5611cba565b60200260200101516040518363ffffffff1660e01b815260040161132e9291906001600160a01b03929092168252602082015260400190565b6020604051808303816000875af115801561134d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113719190611e96565b50806001600160a01b0316637aa54b6889848151811061139357611393611cba565b60200260200101516040518263ffffffff1660e01b81526004016113b79190611d16565b600060405180830381600087803b1580156113d157600080fd5b505af11580156113e5573d6000803e3d6000fd5b505050508160010191505061124c565b600054610100900460ff1661141c5760405162461bcd60e51b815260040161081c90611eb8565b61042461157c565b600054610100900460ff1661144b5760405162461bcd60e51b815260040161081c90611eb8565b6104246115ac565b600054610100900460ff1661147a5760405162461bcd60e51b815260040161081c90611eb8565b6104246115df565b8051835114158061149557508151835114155b156107965760405163b68600c760e01b815260040160405180910390fd5b6040516323b872dd60e01b8152336004820152306024820152604481018290526001600160a01b038316906323b872dd906064016020604051808303816000875af1158015611506573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107969190611e96565b60655460ff166104245760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161081c565b600054610100900460ff166115a35760405162461bcd60e51b815260040161081c90611eb8565b61042433610fbd565b600054610100900460ff166115d35760405162461bcd60e51b815260040161081c90611eb8565b6065805460ff19169055565b600054610100900460ff16610f0a5760405162461bcd60e51b815260040161081c90611eb8565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561164257611642611606565b6040525050565b600067ffffffffffffffff82111561166357611663611606565b5060051b60200190565b6000601f838184011261167f57600080fd5b8235602061168c82611649565b6040805161169a838261161c565b84815260059490941b87018301938381019250888511156116ba57600080fd5b8388015b8581101561175157803567ffffffffffffffff808211156116df5760008081fd5b818b0191508b603f8301126116f45760008081fd5b868201358181111561170857611708611606565b8551915061171e818b01601f191689018361161c565b8082528c868285010111156117335760008081fd5b808684018984013760009082018801528552509284019284016116be565b5098975050505050505050565b600082601f83011261176f57600080fd5b8135602061177c82611649565b604051611789828261161c565b83815260059390931b85018201928281019150868411156117a957600080fd5b8286015b848110156117c457803583529183019183016117ad565b509695505050505050565b6001600160a01b0381168114610ab557600080fd5b80356117ef816117cf565b919050565b803560ff811681146117ef57600080fd5b6000806000806000806000806000806101408b8d03121561182557600080fd5b8a3567ffffffffffffffff8082111561183d57600080fd5b6118498e838f0161166d565b9b5060208d013591508082111561185f57600080fd5b61186b8e838f0161175e565b9a5060408d013591508082111561188157600080fd5b5061188e8d828e0161175e565b98505060608b013596506118a460808c016117e4565b955060a08b0135945060c08b013593506118c060e08c016117f4565b92506101008b013591506101208b013590509295989b9194979a5092959850565b6000602082840312156118f357600080fd5b81356118fe816117cf565b9392505050565b60008060008060008060008060006101208a8c03121561192457600080fd5b893567ffffffffffffffff8082111561193c57600080fd5b6119488d838e0161166d565b9a5060208c013591508082111561195e57600080fd5b61196a8d838e0161175e565b995060408c013591508082111561198057600080fd5b5061198d8c828d0161175e565b97505060608a013595506119a360808b016117e4565b945060a08a013593506119b860c08b016117f4565b925060e08a013591506101008a013590509295985092959850929598565b600082601f8301126119e757600080fd5b813560206119f482611649565b604051611a01828261161c565b83815260059390931b8501820192828101915086841115611a2157600080fd5b8286015b848110156117c457803567ffffffffffffffff811115611a455760008081fd5b611a538986838b010161166d565b845250918301918301611a25565b600082601f830112611a7257600080fd5b81356020611a7f82611649565b604051611a8c828261161c565b83815260059390931b8501820192828101915086841115611aac57600080fd5b8286015b848110156117c4578035611ac3816117cf565b8352918301918301611ab0565b60008060008060008060008060006101208a8c031215611aef57600080fd5b893567ffffffffffffffff80821115611b0757600080fd5b611b138d838e016119d6565b9a5060208c0135915080821115611b2957600080fd5b61196a8d838e01611a61565b600080600060608486031215611b4a57600080fd5b833567ffffffffffffffff80821115611b6257600080fd5b611b6e878388016119d6565b94506020860135915080821115611b8457600080fd5b611b9087838801611a61565b93506040860135915080821115611ba657600080fd5b50611bb38682870161175e565b9150509250925092565b600080600060608486031215611bd257600080fd5b833567ffffffffffffffff80821115611bea57600080fd5b611bf68783880161175e565b94506020860135915080821115611c0c57600080fd5b611c188783880161175e565b93506040860135915080821115611c2e57600080fd5b50611bb38682870161166d565b6000806000806000806000806000806101408b8d031215611c5b57600080fd5b8a3567ffffffffffffffff80821115611c7357600080fd5b611c7f8e838f016119d6565b9b5060208d0135915080821115611c9557600080fd5b61186b8e838f01611a61565b600060208284031215611cb357600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000815180845260005b81811015611cf657602081850181015186830182015201611cda565b506000602082860101526020601f19601f83011685010191505092915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015611d6b57603f19888603018452611d59858351611cd0565b94509285019290850190600101611d3d565b5092979650505050505050565b81810381811115611d9957634e487b7160e01b600052601160045260246000fd5b92915050565b828152604060208201526000611db86040830184611cd0565b949350505050565b600060033d1115611dd95760046000803e5060005160e01c5b90565b600060443d1015611dea5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715611e1a57505050505090565b8285019150815181811115611e325750505050505090565b843d8701016020828501011115611e4c5750505050505090565b611e5b6020828601018761161c565b509095945050505050565b6020815260006118fe6020830184611cd0565b600060208284031215611e8b57600080fd5b81516118fe816117cf565b600060208284031215611ea857600080fd5b815180151581146118fe57600080fd5b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220daf415f250b12d2642be983c88120f0c2b0fcfff180db49199cddc195f13f41264736f6c63430008140033
Deployed Bytecode
0x6080604052600436106100e85760003560e01c80638da5cb5b1161008a578063c7b8896b11610059578063c7b8896b1461023b578063d6d8428d1461024e578063e31739691461026e578063f2fde38b1461028e57600080fd5b80638da5cb5b146101b6578063a710f56a146101e8578063aea64c3814610208578063c4d66de81461021b57600080fd5b80636ae048b5116100c65780636ae048b51461014c578063715018a61461016c5780637449b8ee146101815780638456cb59146101a157600080fd5b8063356abb5d146100ed5780633f4ba83a1461010f5780635c975abb14610124575b600080fd5b3480156100f957600080fd5b5061010d610108366004611805565b6102ae565b005b34801561011b57600080fd5b5061010d610414565b34801561013057600080fd5b5060655460ff1660405190151581526020015b60405180910390f35b34801561015857600080fd5b5061010d6101673660046118e1565b610426565b34801561017857600080fd5b5061010d610450565b34801561018d57600080fd5b5061010d61019c366004611905565b610462565b3480156101ad57600080fd5b5061010d6105c6565b3480156101c257600080fd5b506033546001600160a01b03165b6040516001600160a01b039091168152602001610143565b3480156101f457600080fd5b5061010d610203366004611ad0565b6105d6565b61010d610216366004611b35565b61067b565b34801561022757600080fd5b5061010d6102363660046118e1565b61079b565b61010d610249366004611bbd565b6108b1565b34801561025a57600080fd5b5060c9546101d0906001600160a01b031681565b34801561027a57600080fd5b5061010d610289366004611c3b565b610999565b34801561029a57600080fd5b5061010d6102a93660046118e1565b610a3f565b6102b6610ab8565b6102be610b11565b6040516370a0823160e01b815230600482015286906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610307573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032b9190611ca1565b905061033c888a8989898989610b57565b6103746040518060a001604052808a6001600160a01b031681526020018b81526020018d81526020018c81526020018e815250610d0d565b6040516370a0823160e01b815230600482015281906001600160a01b038416906370a0823190602401602060405180830381865afa1580156103ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103de9190611ca1565b146103fc576040516367832fe760e01b815260040160405180910390fd5b50506104086001609755565b50505050505050505050565b61041c610f11565b610424610f6b565b565b61042e610f11565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b610458610f11565b6104246000610fbd565b61046a610ab8565b610472610b11565b6040516370a0823160e01b815230600482015285906000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156104bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104df9190611ca1565b90506104ef87898888888861100f565b6105276040518060a00160405280896001600160a01b031681526020018a81526020018c81526020018b81526020018d815250610d0d565b6040516370a0823160e01b815230600482015281906001600160a01b038416906370a0823190602401602060405180830381865afa15801561056d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105919190611ca1565b146105af576040516367832fe760e01b815260040160405180910390fd5b50506105bb6001609755565b505050505050505050565b6105ce610f11565b6104246111bc565b6105de610ab8565b6105e6610b11565b6040516370a0823160e01b815230600482015285906000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561062f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106539190611ca1565b90506106608b8b8b6111f9565b61066e87898888888861100f565b6105278b8b8b8b8b61123d565b610683610ab8565b61068b610b11565b476106978484846111f9565b825160005b8181101561075f5760008582815181106106b8576106b8611cba565b60200260200101519050806001600160a01b0316637aa54b688684815181106106e3576106e3611cba565b60200260200101518985815181106106fd576106fd611cba565b60200260200101516040518363ffffffff1660e01b81526004016107219190611d16565b6000604051808303818588803b15801561073a57600080fd5b505af115801561074e573d6000803e3d6000fd5b50505050508160010191505061069c565b5061076c90503482611d78565b471461078b576040516367832fe760e01b815260040160405180910390fd5b506107966001609755565b505050565b600054600490610100900460ff161580156107bd575060005460ff8083169116105b6108255760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6000805461ffff191660ff8316176101001790556108416113f5565b610849611424565b610851611453565b60c980546001600160a01b0319166001600160a01b0384161790556000805461ff001916905560405160ff821681527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b6108b9610ab8565b6108c1610b11565b476108cd848484611482565b835160005b8181101561075f5760c95485516001600160a01b0390911690632ec381889087908490811061090357610903611cba565b602002602001015188848151811061091d5761091d611cba565b602002602001015187858151811061093757610937611cba565b60200260200101516040518463ffffffff1660e01b815260040161095c929190611d9f565b6000604051808303818588803b15801561097557600080fd5b505af1158015610989573d6000803e3d6000fd5b50505050508060010190506108d2565b6109a1610ab8565b6109a9610b11565b6040516370a0823160e01b815230600482015286906000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156109f2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a169190611ca1565b9050610a238c8c8c6111f9565b610a32888a8989898989610b57565b6103748c8c8c8c8c61123d565b610a47610f11565b6001600160a01b038116610aac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161081c565b610ab581610fbd565b50565b600260975403610b0a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161081c565b6002609755565b60655460ff16156104245760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161081c565b6040516323f2ebc360e21b815233600482015230602482015260448101859052606481018690526001608482015260ff841660a482015260c4810183905260e481018290526001600160a01b03881690638fcbaf0c9061010401600060405180830381600087803b158015610bcb57600080fd5b505af1925050508015610bdc575060015b610d0457610be8611dc0565b806308c379a003610c9e5750610bfc611ddc565b80610c075750610ca0565b604051636eb1769f60e11b815233600482015230602482015287906001600160a01b038a169063dd62ed3e906044015b602060405180830381865afa158015610c54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c789190611ca1565b1015610c98578060405162461bcd60e51b815260040161081c9190611e66565b50610d04565b505b3d808015610cca576040519150601f19603f3d011682016040523d82523d6000602084013e610ccf565b606091505b50604051636eb1769f60e11b815233600482015230602482015287906001600160a01b038a169063dd62ed3e90604401610c37565b50505050505050565b610d24816040015182606001518360800151611482565b610d36816000015182602001516114b3565b60408101515160005b8181101561079657600083604001518281518110610d5f57610d5f611cba565b6020908102919091010151845160c9546040516333f0330d60e21b8152600481018490529293506001600160a01b039182169263095ea7b3929091169063cfc0cc3490602401602060405180830381865afa158015610dc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de69190611e79565b86606001518581518110610dfc57610dfc611cba565b60200260200101516040518363ffffffff1660e01b8152600401610e359291906001600160a01b03929092168252602082015260400190565b6020604051808303816000875af1158015610e54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e789190611e96565b5060c954608085015180516001600160a01b0390921691632ec3818891849186908110610ea757610ea7611cba565b60200260200101516040518363ffffffff1660e01b8152600401610ecc929190611d9f565b600060405180830381600087803b158015610ee657600080fd5b505af1158015610efa573d6000803e3d6000fd5b5050505081600101915050610d3f565b6001609755565b6033546001600160a01b031633146104245760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161081c565b610f7361152a565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60405163d505accf60e01b8152336004820152306024820152604481018690526064810185905260ff8416608482015260a4810183905260c481018290526001600160a01b0387169063d505accf9060e401600060405180830381600087803b15801561107b57600080fd5b505af192505050801561108c575060015b6111b457611098611dc0565b806308c379a00361114e57506110ac611ddc565b806110b75750611150565b604051636eb1769f60e11b815233600482015230602482015286906001600160a01b0389169063dd62ed3e906044015b602060405180830381865afa158015611104573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111289190611ca1565b1015611148578060405162461bcd60e51b815260040161081c9190611e66565b506111b4565b505b3d80801561117a576040519150601f19603f3d011682016040523d82523d6000602084013e61117f565b606091505b50604051636eb1769f60e11b815233600482015230602482015286906001600160a01b0389169063dd62ed3e906044016110e7565b505050505050565b6111c4610b11565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610fa03390565b815183511461121b57604051630977d6c560e11b815260040160405180910390fd5b815181511461079657604051631c9449e160e01b815260040160405180910390fd5b61124781836114b3565b835160005b81811015610d0457600086828151811061126857611268611cba565b60200260200101519050836001600160a01b031663095ea7b3826001600160a01b031663fb5c8bfd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e39190611e79565b8885815181106112f5576112f5611cba565b60200260200101516040518363ffffffff1660e01b815260040161132e9291906001600160a01b03929092168252602082015260400190565b6020604051808303816000875af115801561134d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113719190611e96565b50806001600160a01b0316637aa54b6889848151811061139357611393611cba565b60200260200101516040518263ffffffff1660e01b81526004016113b79190611d16565b600060405180830381600087803b1580156113d157600080fd5b505af11580156113e5573d6000803e3d6000fd5b505050508160010191505061124c565b600054610100900460ff1661141c5760405162461bcd60e51b815260040161081c90611eb8565b61042461157c565b600054610100900460ff1661144b5760405162461bcd60e51b815260040161081c90611eb8565b6104246115ac565b600054610100900460ff1661147a5760405162461bcd60e51b815260040161081c90611eb8565b6104246115df565b8051835114158061149557508151835114155b156107965760405163b68600c760e01b815260040160405180910390fd5b6040516323b872dd60e01b8152336004820152306024820152604481018290526001600160a01b038316906323b872dd906064016020604051808303816000875af1158015611506573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107969190611e96565b60655460ff166104245760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161081c565b600054610100900460ff166115a35760405162461bcd60e51b815260040161081c90611eb8565b61042433610fbd565b600054610100900460ff166115d35760405162461bcd60e51b815260040161081c90611eb8565b6065805460ff19169055565b600054610100900460ff16610f0a5760405162461bcd60e51b815260040161081c90611eb8565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561164257611642611606565b6040525050565b600067ffffffffffffffff82111561166357611663611606565b5060051b60200190565b6000601f838184011261167f57600080fd5b8235602061168c82611649565b6040805161169a838261161c565b84815260059490941b87018301938381019250888511156116ba57600080fd5b8388015b8581101561175157803567ffffffffffffffff808211156116df5760008081fd5b818b0191508b603f8301126116f45760008081fd5b868201358181111561170857611708611606565b8551915061171e818b01601f191689018361161c565b8082528c868285010111156117335760008081fd5b808684018984013760009082018801528552509284019284016116be565b5098975050505050505050565b600082601f83011261176f57600080fd5b8135602061177c82611649565b604051611789828261161c565b83815260059390931b85018201928281019150868411156117a957600080fd5b8286015b848110156117c457803583529183019183016117ad565b509695505050505050565b6001600160a01b0381168114610ab557600080fd5b80356117ef816117cf565b919050565b803560ff811681146117ef57600080fd5b6000806000806000806000806000806101408b8d03121561182557600080fd5b8a3567ffffffffffffffff8082111561183d57600080fd5b6118498e838f0161166d565b9b5060208d013591508082111561185f57600080fd5b61186b8e838f0161175e565b9a5060408d013591508082111561188157600080fd5b5061188e8d828e0161175e565b98505060608b013596506118a460808c016117e4565b955060a08b0135945060c08b013593506118c060e08c016117f4565b92506101008b013591506101208b013590509295989b9194979a5092959850565b6000602082840312156118f357600080fd5b81356118fe816117cf565b9392505050565b60008060008060008060008060006101208a8c03121561192457600080fd5b893567ffffffffffffffff8082111561193c57600080fd5b6119488d838e0161166d565b9a5060208c013591508082111561195e57600080fd5b61196a8d838e0161175e565b995060408c013591508082111561198057600080fd5b5061198d8c828d0161175e565b97505060608a013595506119a360808b016117e4565b945060a08a013593506119b860c08b016117f4565b925060e08a013591506101008a013590509295985092959850929598565b600082601f8301126119e757600080fd5b813560206119f482611649565b604051611a01828261161c565b83815260059390931b8501820192828101915086841115611a2157600080fd5b8286015b848110156117c457803567ffffffffffffffff811115611a455760008081fd5b611a538986838b010161166d565b845250918301918301611a25565b600082601f830112611a7257600080fd5b81356020611a7f82611649565b604051611a8c828261161c565b83815260059390931b8501820192828101915086841115611aac57600080fd5b8286015b848110156117c4578035611ac3816117cf565b8352918301918301611ab0565b60008060008060008060008060006101208a8c031215611aef57600080fd5b893567ffffffffffffffff80821115611b0757600080fd5b611b138d838e016119d6565b9a5060208c0135915080821115611b2957600080fd5b61196a8d838e01611a61565b600080600060608486031215611b4a57600080fd5b833567ffffffffffffffff80821115611b6257600080fd5b611b6e878388016119d6565b94506020860135915080821115611b8457600080fd5b611b9087838801611a61565b93506040860135915080821115611ba657600080fd5b50611bb38682870161175e565b9150509250925092565b600080600060608486031215611bd257600080fd5b833567ffffffffffffffff80821115611bea57600080fd5b611bf68783880161175e565b94506020860135915080821115611c0c57600080fd5b611c188783880161175e565b93506040860135915080821115611c2e57600080fd5b50611bb38682870161166d565b6000806000806000806000806000806101408b8d031215611c5b57600080fd5b8a3567ffffffffffffffff80821115611c7357600080fd5b611c7f8e838f016119d6565b9b5060208d0135915080821115611c9557600080fd5b61186b8e838f01611a61565b600060208284031215611cb357600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000815180845260005b81811015611cf657602081850181015186830182015201611cda565b506000602082860101526020601f19601f83011685010191505092915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015611d6b57603f19888603018452611d59858351611cd0565b94509285019290850190600101611d3d565b5092979650505050505050565b81810381811115611d9957634e487b7160e01b600052601160045260246000fd5b92915050565b828152604060208201526000611db86040830184611cd0565b949350505050565b600060033d1115611dd95760046000803e5060005160e01c5b90565b600060443d1015611dea5790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715611e1a57505050505090565b8285019150815181811115611e325750505050505090565b843d8701016020828501011115611e4c5750505050505090565b611e5b6020828601018761161c565b509095945050505050565b6020815260006118fe6020830184611cd0565b600060208284031215611e8b57600080fd5b81516118fe816117cf565b600060208284031215611ea857600080fd5b815180151581146118fe57600080fd5b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220daf415f250b12d2642be983c88120f0c2b0fcfff180db49199cddc195f13f41264736f6c63430008140033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.