More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 909 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Poke | 21896984 | 8 days ago | IN | 0 ETH | 0.00027744 | ||||
Poke | 21856254 | 14 days ago | IN | 0 ETH | 0.00012529 | ||||
Withdraw | 21629061 | 46 days ago | IN | 0 ETH | 0.00059772 | ||||
Withdraw | 21305602 | 91 days ago | IN | 0 ETH | 0.00130828 | ||||
Withdraw | 21228991 | 102 days ago | IN | 0 ETH | 0.00224754 | ||||
Poke | 21155673 | 112 days ago | IN | 0 ETH | 0.00112259 | ||||
Withdraw | 21152379 | 112 days ago | IN | 0 ETH | 0.00153523 | ||||
Withdraw | 21152372 | 112 days ago | IN | 0 ETH | 0.00220991 | ||||
Poke | 21034219 | 129 days ago | IN | 0 ETH | 0.00079389 | ||||
Poke | 21034203 | 129 days ago | IN | 0 ETH | 0.00131242 | ||||
Poke | 20995702 | 134 days ago | IN | 0 ETH | 0.00092493 | ||||
Poke | 20995622 | 134 days ago | IN | 0 ETH | 0.00156787 | ||||
Withdraw | 20862754 | 153 days ago | IN | 0 ETH | 0.00135686 | ||||
Poke | 20862749 | 153 days ago | IN | 0 ETH | 0.00176567 | ||||
Withdraw | 20740074 | 170 days ago | IN | 0 ETH | 0.00023493 | ||||
Poke | 20740068 | 170 days ago | IN | 0 ETH | 0.0001945 | ||||
Deposit | 20739170 | 170 days ago | IN | 0 ETH | 0.00019974 | ||||
Deposit | 20728086 | 171 days ago | IN | 0 ETH | 0.00128913 | ||||
Withdraw | 20711474 | 174 days ago | IN | 0 ETH | 0.0002367 | ||||
Withdraw | 20601343 | 189 days ago | IN | 0 ETH | 0.00013238 | ||||
Withdraw | 20601324 | 189 days ago | IN | 0 ETH | 0.0001658 | ||||
Poke | 20601304 | 189 days ago | IN | 0 ETH | 0.00020028 | ||||
Poke | 20566055 | 194 days ago | IN | 0 ETH | 0.00011682 | ||||
Poke | 20565931 | 194 days ago | IN | 0 ETH | 0.00013893 | ||||
Withdraw | 20529178 | 199 days ago | IN | 0 ETH | 0.00093364 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
catinaboxcdp
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; /* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@ @@@@@ @@@@@ @@@@@@ @@@@ @@@@@ @@@@@@@ @@@@@ @@@ @@@@@@@@@@@ @@@@@ @@@@@@ @@@@@@@@@@@@@@@ @@@@@ @@@@@@@@@@@@@@@@@@@@ @@@@ @@@@@ @@@@@@@@@@@@@@@ @@ @@@@@@ @@@@@ @@@@@@@@@@ @@@ @@@@@@@ @@@@@ @@@@@ @@ @@@@@@@@@@@@ @@@@@ @@@@ @@@@@@@@@@@ @@@@@ @@@@@@@@@@@@@@@@@@@@@ @@@@@ @@@@@@@@@@@@@@@@@@@@@@@ @@@@@ @@@@@ @@@@@@@@@ @@@@@ @@@@@@@@@@ @@@@@ @@@@@@@@@@@@ @@@@@ @@@@@@@@@@@@@ @@@@@@ @@@@@@@@@@@@@@@ @@@@@@ @@@@@@@@@@@@@@@@ @@@@@@@ @@@@@@@@@@@@@@@@@@ @@@@@@@@@ @@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */ import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {Multicall} from "@openzeppelin/contracts/utils/Multicall.sol"; import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol"; interface IERC20Extended { function mint(address account, uint256 amount) external; function burnFrom(address account, uint256 amount) external; } contract catinaboxcdp is Multicall, AccessControl { using SafeERC20 for IERC20; bytes32 public constant ADMIN_ROLE = keccak256("ADMIN"); address public synthetic; IERC20 public collateral; address public feeSplitAddress; address public psm; mapping(address => uint256) public deposited; mapping(address => uint256) public debt; mapping(address => uint256) public lastPoints; mapping(address => bool) public enableRepaying; uint256 public ltv; // expressed in 10000 points uint256 public totaldeposits; uint256 public idleFee; // expressed in 100 points // allocation logic for depositors uint256 public pointMultiplier = 10e18; uint256 public totalPoints; uint256 public unclaimed; uint256 public totalDebt; function Owing(address _depositor) public view returns(uint256) { uint256 newPoints = totalPoints - lastPoints[_depositor]; uint256 weight = deposited[_depositor] - debt[_depositor]; return (weight * newPoints) / pointMultiplier; } modifier fetch(address _depositor) { uint256 owing = Owing(_depositor); if (owing > 0) { unclaimed = unclaimed - owing; if (debt[_depositor] < owing) { deposited[_depositor] += owing; } if (enableRepaying[_depositor] && debt[_depositor] >= owing) { collateral.transfer(psm, owing); totaldeposits -= owing; debt[_depositor] -= owing; totalDebt -= owing; } if (!enableRepaying[_depositor] && debt[_depositor] >= owing) { deposited[_depositor] += owing; } } lastPoints[_depositor] = totalPoints; _; } modifier sync() { uint256 excess; if (collateral.balanceOf(address(this)) > totaldeposits) { excess = collateral.balanceOf(address(this)) - totaldeposits; } if (excess > 100) { // 1% of yield + 1/4 yield * total debt / total deposits uint256 protocolFees = excess * idleFee / 100 + excess * totalDebt / (totaldeposits * 4 + 1); uint256 value = excess - protocolFees; uint256 totalWeight = totaldeposits - totalDebt; totalPoints = totalPoints + (value * pointMultiplier / totalWeight); unclaimed += value; totaldeposits += value; // send amount to staking module collateral.transfer(feeSplitAddress, protocolFees); } _; } constructor(address _synthetic, IERC20 _collateral, uint256 _ltv, address _feeSplitAddress, address _psm) { _setupRole(ADMIN_ROLE, _msgSender()); _setRoleAdmin(ADMIN_ROLE, ADMIN_ROLE); synthetic = _synthetic; collateral = _collateral; feeSplitAddress = _feeSplitAddress; psm = _psm; ltv = _ltv; idleFee = 1; } function deposit(uint256 amount) external sync() fetch(msg.sender) { collateral.safeTransferFrom(msg.sender, address(this), amount); deposited[msg.sender] += amount; totaldeposits += amount; emit _deposit(msg.sender, amount); } function withdraw(uint256 amount) external sync() fetch(msg.sender) { // health check require(amount <= deposited[msg.sender] - debt[msg.sender] * 10000 / ltv); deposited[msg.sender] -= amount; totaldeposits -= amount; collateral.safeTransfer(msg.sender, amount); emit _withdrawal(msg.sender, amount); } function mint(uint256 amount) external sync() fetch(msg.sender) { require(amount <= deposited[msg.sender] * ltv / 10000 - debt[msg.sender]); debt[msg.sender] += amount; totalDebt += amount; IERC20Extended(synthetic).mint(msg.sender, amount); emit _mint(msg.sender, amount); } function repay(uint256 amount) external sync() fetch(msg.sender) { if (amount > debt[msg.sender]) { amount = debt[msg.sender]; } IERC20Extended(synthetic).burnFrom(msg.sender, amount); debt[msg.sender] -= amount; totalDebt -= amount; emit _repay(msg.sender, amount); } function liquidate(uint256 amount) external sync() fetch(msg.sender) { // no more than the debt can be liquidated if (amount > debt[msg.sender]) { amount = debt[msg.sender]; } totaldeposits -= amount; debt[msg.sender] -= amount; totalDebt -= amount; deposited[msg.sender] -= amount; collateral.transfer(psm, amount); emit _liquidate(msg.sender, amount); } function setRepayFlag(bool flag) external sync() fetch(msg.sender) { enableRepaying[msg.sender] = flag; emit _flagset(msg.sender, flag); } function stabilisePeg(uint256 amount, address _depositor) external sync() fetch(_depositor) { // limit the amount to 25% of the debt uint256 maxRedeemable = debt[_depositor] / 4; if (amount > maxRedeemable){ amount = maxRedeemable; } uint256 redemptionFrictionfee = amount / 10 - amount / 10 * debt[_depositor] / deposited[_depositor]; IERC20(synthetic).safeTransferFrom(msg.sender, psm, redemptionFrictionfee); IERC20Extended(synthetic).burnFrom(msg.sender, amount); deposited[_depositor] -= amount; debt[_depositor] -= amount; totalDebt -= amount; totaldeposits -= amount; collateral.safeTransfer(msg.sender, amount); emit _stabilisePeg(_depositor, amount, redemptionFrictionfee); } function poke(address _depositor) external sync() fetch(_depositor) { // the purpose of this function is to trigger the modifiers } function setFee(uint256 _fee) external onlyRole(ADMIN_ROLE) { require(_fee <= 75, "the fees are too damn high"); idleFee = _fee; } event _deposit(address indexed user, uint256 indexed amount); event _withdrawal(address indexed user, uint256 indexed amount); event _mint(address indexed user, uint256 indexed amount); event _repay(address indexed user, uint256 indexed amount); event _liquidate(address indexed user, uint256 indexed amount); event _flagset(address indexed user, bool indexed amount); event _stabilisePeg(address indexed user, uint256 indexed amount, uint256 indexed fee); function resolvingFeePerToken(address _depositor) public view returns(uint256) { uint256 _amount = 1 ether / 10 - 1 ether / 10 * debt[_depositor] / deposited[_depositor]; return (_amount); } function resolvingFeePerTokenAfterMoreDebt(address _depositor, uint256 _additionalDebt) public view returns(uint256) { uint256 _amount = 1 ether / 10 - 1 ether / 10 * (debt[_depositor] + _additionalDebt) / deposited[_depositor]; return (_amount) ; } }
// 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. */ 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.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Multicall.sol) pragma solidity ^0.8.0; import "./Address.sol"; /** * @dev Provides a function to batch together multiple calls in a single external call. * * _Available since v4.1._ */ abstract contract Multicall { /** * @dev Receives and executes a batch of function calls on this contract. */ function multicall(bytes[] calldata data) external virtual returns (bytes[] memory results) { results = new bytes[](data.length); for (uint256 i = 0; i < data.length; i++) { results[i] = Address.functionDelegateCall(address(this), data[i]); } return results; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-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 IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ 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.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [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://diligence.consensys.net/posts/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.5.11/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 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "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":[{"internalType":"address","name":"_synthetic","type":"address"},{"internalType":"contract IERC20","name":"_collateral","type":"address"},{"internalType":"uint256","name":"_ltv","type":"uint256"},{"internalType":"address","name":"_feeSplitAddress","type":"address"},{"internalType":"address","name":"_psm","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"_deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"bool","name":"amount","type":"bool"}],"name":"_flagset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"_liquidate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"_mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"_repay","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"_stabilisePeg","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"_withdrawal","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_depositor","type":"address"}],"name":"Owing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collateral","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"debt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"deposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"enableRepaying","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeSplitAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"idleFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"liquidate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ltv","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pointMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_depositor","type":"address"}],"name":"poke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"psm","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"repay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_depositor","type":"address"}],"name":"resolvingFeePerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_depositor","type":"address"},{"internalType":"uint256","name":"_additionalDebt","type":"uint256"}],"name":"resolvingFeePerTokenAfterMoreDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"flag","type":"bool"}],"name":"setRepayFlag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"_depositor","type":"address"}],"name":"stabilisePeg","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":"synthetic","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totaldeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unclaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052678ac7230489e80000600c553480156200001d57600080fd5b50604051620042de380380620042de8339810160408190526200004091620001e4565b6200005b600080516020620042be83398151915233620000d0565b62000076600080516020620042be83398151915280620000e0565b600180546001600160a01b03199081166001600160a01b03978816178255600280548216968816969096179095556003805486169387169390931790925560048054909416941693909317909155600955600b5562000258565b620000dc82826200012b565b5050565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620000dc576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001873390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6001600160a01b0381168114620001e157600080fd5b50565b600080600080600060a08688031215620001fd57600080fd5b85516200020a81620001cb565b60208701519095506200021d81620001cb565b6040870151606088015191955093506200023781620001cb565b60808701519092506200024a81620001cb565b809150509295509295909350565b61405680620002686000396000f3fe608060405234801561001057600080fd5b506004361061025c5760003560e01c80636b31fe5711610145578063ac9650d8116100bd578063cb13cddb1161008c578063d8dfeb4511610071578063d8dfeb4514610556578063fa1fa58e14610569578063fc7b9c181461057c57600080fd5b8063cb13cddb14610523578063d547741f1461054357600080fd5b8063ac9650d8146104ca578063afe1f9a4146104ea578063b1a997ac146104fd578063b6b55f251461051057600080fd5b8063941075b211610114578063a0712d68116100f9578063a0712d681461049c578063a217fddf146104af578063a7b0a154146104b757600080fd5b8063941075b2146104695780639b6c56ec1461047c57600080fd5b80636b31fe57146103ef5780636fb49d731461040257806375b238fc1461040b57806391d148541461043257600080fd5b806336568abe116101d8578063567142be116101a7578063658b98a91161018c578063658b98a9146103ca578063669416b8146103d357806369fe0e2d146103dc57600080fd5b8063567142be146103b85780635e07b869146103c157600080fd5b806336568abe14610376578063371fd8e61461038957806338b3cde11461039c578063415f1240146103a557600080fd5b80630e86853d1161022f5780632e1a7d4d116102145780632e1a7d4d1461033d5780632f2ff15d1461035057806334a7e3d31461036357600080fd5b80630e86853d146102ec578063248a9ca31461031a57600080fd5b806301ffc9a71461026157806304bda2621461028957806308526780146102b45780630d4cf01e146102d7575b600080fd5b61027461026f366004613bd2565b610585565b60405190151581526020015b60405180910390f35b60045461029c906001600160a01b031681565b6040516001600160a01b039091168152602001610280565b6102746102c2366004613c18565b60086020526000908152604090205460ff1681565b6102ea6102e5366004613c33565b6105ee565b005b61030c6102fa366004613c18565b60076020526000908152604090205481565b604051908152602001610280565b61030c610328366004613c5f565b60009081526020819052604090206001015490565b6102ea61034b366004613c5f565b610c54565b6102ea61035e366004613c33565b6111a1565b61030c610371366004613c18565b6111cb565b6102ea610384366004613c33565b611227565b6102ea610397366004613c5f565b6112b8565b61030c600b5481565b6102ea6103b3366004613c5f565b61182b565b61030c600d5481565b61030c600a5481565b61030c600c5481565b61030c600e5481565b6102ea6103ea366004613c5f565b611df2565b60035461029c906001600160a01b031681565b61030c60095481565b61030c7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b610274610440366004613c33565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6102ea610477366004613c86565b611e73565b61030c61048a366004613c18565b60066020526000908152604090205481565b6102ea6104aa366004613c5f565b612336565b61030c600081565b61030c6104c5366004613ca3565b6128e3565b6104dd6104d8366004613ccd565b61294b565b6040516102809190613d92565b60015461029c906001600160a01b031681565b6102ea61050b366004613c18565b612a40565b6102ea61051e366004613c5f565b612ebb565b61030c610531366004613c18565b60056020526000908152604090205481565b6102ea610551366004613c33565b6133b4565b60025461029c906001600160a01b031681565b61030c610577366004613c18565b6133d9565b61030c600f5481565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806105e857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa15801561063b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065f9190613df4565b11156106e157600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156106b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d49190613df4565b6106de9190613e23565b90505b606481111561083f576000600a5460046106fb9190613e36565b610706906001613e4d565b600f546107139084613e36565b61071d9190613e60565b6064600b548461072d9190613e36565b6107379190613e60565b6107419190613e4d565b9050600061074f8284613e23565b90506000600f54600a546107639190613e23565b905080600c54836107749190613e36565b61077e9190613e60565b600d5461078b9190613e4d565b600d8190555081600e60008282546107a39190613e4d565b9250508190555081600a60008282546107bc9190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af1158015610816573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083a9190613e82565b505050505b81600061084b826133d9565b90508015610a475780600e546108619190613e23565b600e556001600160a01b0382166000908152600660205260409020548111156108b2576001600160a01b038216600090815260056020526040812080548392906108ac908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff1680156108f257506001600160a01b0382166000908152600660205260409020548111155b156109d3576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af1158015610950573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109749190613e82565b5080600a60008282546109879190613e23565b90915550506001600160a01b038216600090815260066020526040812080548392906109b4908490613e23565b9250508190555080600f60008282546109cd9190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff16158015610a1457506001600160a01b0382166000908152600660205260409020548111155b15610a47576001600160a01b03821660009081526005602052604081208054839290610a41908490613e4d565b90915550505b600d546001600160a01b038084166000908152600760209081526040808320949094559187168152600690915290812054610a8490600490613e60565b905080861115610a92578095505b6001600160a01b0385166000908152600560209081526040808320546006909252822054610ac1600a8a613e60565b610acb9190613e36565b610ad59190613e60565b610ae0600a89613e60565b610aea9190613e23565b600454600154919250610b0c916001600160a01b03908116913391168461344d565b60015460405163079cc67960e41b8152336004820152602481018990526001600160a01b03909116906379cc679090604401600060405180830381600087803b158015610b5857600080fd5b505af1158015610b6c573d6000803e3d6000fd5b505050506001600160a01b03861660009081526005602052604081208054899290610b98908490613e23565b90915550506001600160a01b03861660009081526006602052604081208054899290610bc5908490613e23565b9250508190555086600f6000828254610bde9190613e23565b9250508190555086600a6000828254610bf79190613e23565b9091555050600254610c13906001600160a01b031633896134ec565b8087876001600160a01b03167f5751b5f3cc794b20ca3696dc55780ee5d1d424a659bc109e97fa87402562a8e760405160405180910390a450505050505050565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa158015610ca1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc59190613df4565b1115610d4757600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3a9190613df4565b610d449190613e23565b90505b6064811115610ea5576000600a546004610d619190613e36565b610d6c906001613e4d565b600f54610d799084613e36565b610d839190613e60565b6064600b5484610d939190613e36565b610d9d9190613e60565b610da79190613e4d565b90506000610db58284613e23565b90506000600f54600a54610dc99190613e23565b905080600c5483610dda9190613e36565b610de49190613e60565b600d54610df19190613e4d565b600d8190555081600e6000828254610e099190613e4d565b9250508190555081600a6000828254610e229190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af1158015610e7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea09190613e82565b505050505b336000610eb1826133d9565b905080156110ad5780600e54610ec79190613e23565b600e556001600160a01b038216600090815260066020526040902054811115610f18576001600160a01b03821660009081526005602052604081208054839290610f12908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff168015610f5857506001600160a01b0382166000908152600660205260409020548111155b15611039576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af1158015610fb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fda9190613e82565b5080600a6000828254610fed9190613e23565b90915550506001600160a01b0382166000908152600660205260408120805483929061101a908490613e23565b9250508190555080600f60008282546110339190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff1615801561107a57506001600160a01b0382166000908152600660205260409020548111155b156110ad576001600160a01b038216600090815260056020526040812080548392906110a7908490613e4d565b90915550505b600d546001600160a01b0383166000908152600760209081526040808320939093556009543383526006909152919020546110ea90612710613e36565b6110f49190613e60565b3360009081526005602052604090205461110e9190613e23565b84111561111a57600080fd5b3360009081526005602052604081208054869290611139908490613e23565b9250508190555083600a60008282546111529190613e23565b909155505060025461116e906001600160a01b031633866134ec565b604051849033907f88e5ac70e9098f9301eb01ed012de050d71fbb15a4ca8849ea39b6cd9967fb1590600090a350505050565b6000828152602081905260409020600101546111bc8161351c565b6111c68383613529565b505050565b6001600160a01b03811660009081526005602090815260408083205460069092528220548291906112049067016345785d8a0000613e36565b61120e9190613e60565b6112209067016345785d8a0000613e23565b9392505050565b6001600160a01b03811633146112aa5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6112b482826135c7565b5050565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa158015611305573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113299190613df4565b11156113ab57600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561137a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139e9190613df4565b6113a89190613e23565b90505b6064811115611509576000600a5460046113c59190613e36565b6113d0906001613e4d565b600f546113dd9084613e36565b6113e79190613e60565b6064600b54846113f79190613e36565b6114019190613e60565b61140b9190613e4d565b905060006114198284613e23565b90506000600f54600a5461142d9190613e23565b905080600c548361143e9190613e36565b6114489190613e60565b600d546114559190613e4d565b600d8190555081600e600082825461146d9190613e4d565b9250508190555081600a60008282546114869190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af11580156114e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115049190613e82565b505050505b336000611515826133d9565b905080156117115780600e5461152b9190613e23565b600e556001600160a01b03821660009081526006602052604090205481111561157c576001600160a01b03821660009081526005602052604081208054839290611576908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff1680156115bc57506001600160a01b0382166000908152600660205260409020548111155b1561169d576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af115801561161a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163e9190613e82565b5080600a60008282546116519190613e23565b90915550506001600160a01b0382166000908152600660205260408120805483929061167e908490613e23565b9250508190555080600f60008282546116979190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff161580156116de57506001600160a01b0382166000908152600660205260409020548111155b15611711576001600160a01b0382166000908152600560205260408120805483929061170b908490613e4d565b90915550505b600d546001600160a01b038316600090815260076020908152604080832093909355338252600690522054841115611756573360009081526006602052604090205493505b60015460405163079cc67960e41b8152336004820152602481018690526001600160a01b03909116906379cc679090604401600060405180830381600087803b1580156117a257600080fd5b505af11580156117b6573d6000803e3d6000fd5b505033600090815260066020526040812080548894509092506117da908490613e23565b9250508190555083600f60008282546117f39190613e23565b9091555050604051849033907f75708102661b224f589553859758a9aa2f23c5b535123e24c1fb71b3a251415090600090a350505050565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa158015611878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189c9190613df4565b111561191e57600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156118ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119119190613df4565b61191b9190613e23565b90505b6064811115611a7c576000600a5460046119389190613e36565b611943906001613e4d565b600f546119509084613e36565b61195a9190613e60565b6064600b548461196a9190613e36565b6119749190613e60565b61197e9190613e4d565b9050600061198c8284613e23565b90506000600f54600a546119a09190613e23565b905080600c54836119b19190613e36565b6119bb9190613e60565b600d546119c89190613e4d565b600d8190555081600e60008282546119e09190613e4d565b9250508190555081600a60008282546119f99190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af1158015611a53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a779190613e82565b505050505b336000611a88826133d9565b90508015611c845780600e54611a9e9190613e23565b600e556001600160a01b038216600090815260066020526040902054811115611aef576001600160a01b03821660009081526005602052604081208054839290611ae9908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff168015611b2f57506001600160a01b0382166000908152600660205260409020548111155b15611c10576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af1158015611b8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb19190613e82565b5080600a6000828254611bc49190613e23565b90915550506001600160a01b03821660009081526006602052604081208054839290611bf1908490613e23565b9250508190555080600f6000828254611c0a9190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff16158015611c5157506001600160a01b0382166000908152600660205260409020548111155b15611c84576001600160a01b03821660009081526005602052604081208054839290611c7e908490613e4d565b90915550505b600d546001600160a01b038316600090815260076020908152604080832093909355338252600690522054841115611cc9573360009081526006602052604090205493505b83600a6000828254611cdb9190613e23565b90915550503360009081526006602052604081208054869290611cff908490613e23565b9250508190555083600f6000828254611d189190613e23565b90915550503360009081526005602052604081208054869290611d3c908490613e23565b90915550506002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018790529091169063a9059cbb906044016020604051808303816000875af1158015611d9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dbe9190613e82565b50604051849033907f123474edf59004399ee06e11583a4daa254b4d4390ff2cc58b7a35d2598fbbee90600090a350505050565b7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42611e1c8161351c565b604b821115611e6d5760405162461bcd60e51b815260206004820152601a60248201527f74686520666565732061726520746f6f2064616d6e206869676800000000000060448201526064016112a1565b50600b55565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa158015611ec0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee49190613df4565b1115611f6657600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611f35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f599190613df4565b611f639190613e23565b90505b60648111156120c4576000600a546004611f809190613e36565b611f8b906001613e4d565b600f54611f989084613e36565b611fa29190613e60565b6064600b5484611fb29190613e36565b611fbc9190613e60565b611fc69190613e4d565b90506000611fd48284613e23565b90506000600f54600a54611fe89190613e23565b905080600c5483611ff99190613e36565b6120039190613e60565b600d546120109190613e4d565b600d8190555081600e60008282546120289190613e4d565b9250508190555081600a60008282546120419190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af115801561209b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120bf9190613e82565b505050505b3360006120d0826133d9565b905080156122cc5780600e546120e69190613e23565b600e556001600160a01b038216600090815260066020526040902054811115612137576001600160a01b03821660009081526005602052604081208054839290612131908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff16801561217757506001600160a01b0382166000908152600660205260409020548111155b15612258576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af11580156121d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121f99190613e82565b5080600a600082825461220c9190613e23565b90915550506001600160a01b03821660009081526006602052604081208054839290612239908490613e23565b9250508190555080600f60008282546122529190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff1615801561229957506001600160a01b0382166000908152600660205260409020548111155b156122cc576001600160a01b038216600090815260056020526040812080548392906122c6908490613e4d565b90915550505b600d546001600160a01b038316600090815260076020908152604080832093909355338083526008909152828220805460ff1916881515908117909155925190917f807ef32df55d28183834e02e7e2eab62bffb9ef8ba0c2527bde03d9738230e2f91a350505050565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa158015612383573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123a79190613df4565b111561242957600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156123f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241c9190613df4565b6124269190613e23565b90505b6064811115612587576000600a5460046124439190613e36565b61244e906001613e4d565b600f5461245b9084613e36565b6124659190613e60565b6064600b54846124759190613e36565b61247f9190613e60565b6124899190613e4d565b905060006124978284613e23565b90506000600f54600a546124ab9190613e23565b905080600c54836124bc9190613e36565b6124c69190613e60565b600d546124d39190613e4d565b600d8190555081600e60008282546124eb9190613e4d565b9250508190555081600a60008282546125049190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af115801561255e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125829190613e82565b505050505b336000612593826133d9565b9050801561278f5780600e546125a99190613e23565b600e556001600160a01b0382166000908152600660205260409020548111156125fa576001600160a01b038216600090815260056020526040812080548392906125f4908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff16801561263a57506001600160a01b0382166000908152600660205260409020548111155b1561271b576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af1158015612698573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126bc9190613e82565b5080600a60008282546126cf9190613e23565b90915550506001600160a01b038216600090815260066020526040812080548392906126fc908490613e23565b9250508190555080600f60008282546127159190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff1615801561275c57506001600160a01b0382166000908152600660205260409020548111155b1561278f576001600160a01b03821660009081526005602052604081208054839290612789908490613e4d565b90915550505b600d546001600160a01b038316600090815260076020908152604080832093909355338252600681528282205460095460059092529290912054612710916127d691613e36565b6127e09190613e60565b6127ea9190613e23565b8411156127f657600080fd5b3360009081526006602052604081208054869290612815908490613e4d565b9250508190555083600f600082825461282e9190613e4d565b90915550506001546040517f40c10f19000000000000000000000000000000000000000000000000000000008152336004820152602481018690526001600160a01b03909116906340c10f1990604401600060405180830381600087803b15801561289857600080fd5b505af11580156128ac573d6000803e3d6000fd5b50506040518692503391507f4e6ec2477b215d44bbbdd0f5815b8827188f1eb827c01cc00f7f983582322afa90600090a350505050565b6001600160a01b0382166000908152600560209081526040808320546006909252822054829190612915908590613e4d565b6129279067016345785d8a0000613e36565b6129319190613e60565b6129439067016345785d8a0000613e23565b949350505050565b60608167ffffffffffffffff81111561296657612966613e9f565b60405190808252806020026020018201604052801561299957816020015b60608152602001906001900390816129845790505b50905060005b82811015612a3957612a09308585848181106129bd576129bd613eb5565b90506020028101906129cf9190613ecb565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061364692505050565b828281518110612a1b57612a1b613eb5565b60200260200101819052508080612a3190613f19565b91505061299f565b5092915050565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa158015612a8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab19190613df4565b1115612b3357600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612b02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b269190613df4565b612b309190613e23565b90505b6064811115612c91576000600a546004612b4d9190613e36565b612b58906001613e4d565b600f54612b659084613e36565b612b6f9190613e60565b6064600b5484612b7f9190613e36565b612b899190613e60565b612b939190613e4d565b90506000612ba18284613e23565b90506000600f54600a54612bb59190613e23565b905080600c5483612bc69190613e36565b612bd09190613e60565b600d54612bdd9190613e4d565b600d8190555081600e6000828254612bf59190613e4d565b9250508190555081600a6000828254612c0e9190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af1158015612c68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8c9190613e82565b505050505b816000612c9d826133d9565b90508015612e995780600e54612cb39190613e23565b600e556001600160a01b038216600090815260066020526040902054811115612d04576001600160a01b03821660009081526005602052604081208054839290612cfe908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff168015612d4457506001600160a01b0382166000908152600660205260409020548111155b15612e25576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af1158015612da2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dc69190613e82565b5080600a6000828254612dd99190613e23565b90915550506001600160a01b03821660009081526006602052604081208054839290612e06908490613e23565b9250508190555080600f6000828254612e1f9190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff16158015612e6657506001600160a01b0382166000908152600660205260409020548111155b15612e99576001600160a01b03821660009081526005602052604081208054839290612e93908490613e4d565b90915550505b50600d546001600160a01b039091166000908152600760205260409020555050565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa158015612f08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f2c9190613df4565b1115612fae57600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612f7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fa19190613df4565b612fab9190613e23565b90505b606481111561310c576000600a546004612fc89190613e36565b612fd3906001613e4d565b600f54612fe09084613e36565b612fea9190613e60565b6064600b5484612ffa9190613e36565b6130049190613e60565b61300e9190613e4d565b9050600061301c8284613e23565b90506000600f54600a546130309190613e23565b905080600c54836130419190613e36565b61304b9190613e60565b600d546130589190613e4d565b600d8190555081600e60008282546130709190613e4d565b9250508190555081600a60008282546130899190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af11580156130e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131079190613e82565b505050505b336000613118826133d9565b905080156133145780600e5461312e9190613e23565b600e556001600160a01b03821660009081526006602052604090205481111561317f576001600160a01b03821660009081526005602052604081208054839290613179908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff1680156131bf57506001600160a01b0382166000908152600660205260409020548111155b156132a0576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af115801561321d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132419190613e82565b5080600a60008282546132549190613e23565b90915550506001600160a01b03821660009081526006602052604081208054839290613281908490613e23565b9250508190555080600f600082825461329a9190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff161580156132e157506001600160a01b0382166000908152600660205260409020548111155b15613314576001600160a01b0382166000908152600560205260408120805483929061330e908490613e4d565b90915550505b600d546001600160a01b03808416600090815260076020526040902091909155600254613344911633308761344d565b3360009081526005602052604081208054869290613363908490613e4d565b9250508190555083600a600082825461337c9190613e4d565b9091555050604051849033907f6da1339ceea6e3dbf7ead04517d05e02f98ab75cd4698142e7eeaa32ea1714b790600090a350505050565b6000828152602081905260409020600101546133cf8161351c565b6111c683836135c7565b6001600160a01b038116600090815260076020526040812054600d54829161340091613e23565b6001600160a01b038416600090815260066020908152604080832054600590925282205492935090916134339190613e23565b600c549091506134438383613e36565b6129439190613e60565b6040516001600160a01b03808516602483015283166044820152606481018290526134e69085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915261366b565b50505050565b6040516001600160a01b0383166024820152604481018290526111c690849063a9059cbb60e01b9060640161349a565b6135268133613750565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166112b4576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556135833390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16156112b4576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60606112208383604051806060016040528060278152602001613ffa602791396137c3565b60006136c0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661383b9092919063ffffffff16565b8051909150156111c657808060200190518101906136de9190613e82565b6111c65760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016112a1565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166112b4576137818161384a565b61378c83602061385c565b60405160200161379d929190613f32565b60408051601f198184030181529082905262461bcd60e51b82526112a191600401613fb3565b6060600080856001600160a01b0316856040516137e09190613fc6565b600060405180830381855af49150503d806000811461381b576040519150601f19603f3d011682016040523d82523d6000602084013e613820565b606091505b509150915061383186838387613a3d565b9695505050505050565b60606129438484600085613ab6565b60606105e86001600160a01b03831660145b6060600061386b836002613e36565b613876906002613e4d565b67ffffffffffffffff81111561388e5761388e613e9f565b6040519080825280601f01601f1916602001820160405280156138b8576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106138ef576138ef613eb5565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061393a5761393a613eb5565b60200101906001600160f81b031916908160001a905350600061395e846002613e36565b613969906001613e4d565b90505b60018111156139ee577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106139aa576139aa613eb5565b1a60f81b8282815181106139c0576139c0613eb5565b60200101906001600160f81b031916908160001a90535060049490941c936139e781613fe2565b905061396c565b5083156112205760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016112a1565b60608315613aac578251600003613aa5576001600160a01b0385163b613aa55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016112a1565b5081612943565b6129438383613ba8565b606082471015613b2e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016112a1565b600080866001600160a01b03168587604051613b4a9190613fc6565b60006040518083038185875af1925050503d8060008114613b87576040519150601f19603f3d011682016040523d82523d6000602084013e613b8c565b606091505b5091509150613b9d87838387613a3d565b979650505050505050565b815115613bb85781518083602001fd5b8060405162461bcd60e51b81526004016112a19190613fb3565b600060208284031215613be457600080fd5b81356001600160e01b03198116811461122057600080fd5b80356001600160a01b0381168114613c1357600080fd5b919050565b600060208284031215613c2a57600080fd5b61122082613bfc565b60008060408385031215613c4657600080fd5b82359150613c5660208401613bfc565b90509250929050565b600060208284031215613c7157600080fd5b5035919050565b801515811461352657600080fd5b600060208284031215613c9857600080fd5b813561122081613c78565b60008060408385031215613cb657600080fd5b613cbf83613bfc565b946020939093013593505050565b60008060208385031215613ce057600080fd5b823567ffffffffffffffff80821115613cf857600080fd5b818501915085601f830112613d0c57600080fd5b813581811115613d1b57600080fd5b8660208260051b8501011115613d3057600080fd5b60209290920196919550909350505050565b60005b83811015613d5d578181015183820152602001613d45565b50506000910152565b60008151808452613d7e816020860160208601613d42565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015613de757603f19888603018452613dd5858351613d66565b94509285019290850190600101613db9565b5092979650505050505050565b600060208284031215613e0657600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156105e8576105e8613e0d565b80820281158282048414176105e8576105e8613e0d565b808201808211156105e8576105e8613e0d565b600082613e7d57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215613e9457600080fd5b815161122081613c78565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112613ee257600080fd5b83018035915067ffffffffffffffff821115613efd57600080fd5b602001915036819003821315613f1257600080fd5b9250929050565b600060018201613f2b57613f2b613e0d565b5060010190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613f6a816017850160208801613d42565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613fa7816028840160208801613d42565b01602801949350505050565b6020815260006112206020830184613d66565b60008251613fd8818460208701613d42565b9190910192915050565b600081613ff157613ff1613e0d565b50600019019056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212201c8fcf081967afb78a4ef2a0955acc10934f9e05ac473278f4e1c6edce614c0564736f6c63430008110033df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec420000000000000000000000007690202e2c2297bcd03664e31116d1dffe7e3b73000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8400000000000000000000000000000000000000000000000000000000000026ac000000000000000000000000320c871b6f7721083604ffdd8070e64c1d3c5d7c00000000000000000000000024146d1b3339cf76b455dc42e71ea5cdff4ae0d7
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061025c5760003560e01c80636b31fe5711610145578063ac9650d8116100bd578063cb13cddb1161008c578063d8dfeb4511610071578063d8dfeb4514610556578063fa1fa58e14610569578063fc7b9c181461057c57600080fd5b8063cb13cddb14610523578063d547741f1461054357600080fd5b8063ac9650d8146104ca578063afe1f9a4146104ea578063b1a997ac146104fd578063b6b55f251461051057600080fd5b8063941075b211610114578063a0712d68116100f9578063a0712d681461049c578063a217fddf146104af578063a7b0a154146104b757600080fd5b8063941075b2146104695780639b6c56ec1461047c57600080fd5b80636b31fe57146103ef5780636fb49d731461040257806375b238fc1461040b57806391d148541461043257600080fd5b806336568abe116101d8578063567142be116101a7578063658b98a91161018c578063658b98a9146103ca578063669416b8146103d357806369fe0e2d146103dc57600080fd5b8063567142be146103b85780635e07b869146103c157600080fd5b806336568abe14610376578063371fd8e61461038957806338b3cde11461039c578063415f1240146103a557600080fd5b80630e86853d1161022f5780632e1a7d4d116102145780632e1a7d4d1461033d5780632f2ff15d1461035057806334a7e3d31461036357600080fd5b80630e86853d146102ec578063248a9ca31461031a57600080fd5b806301ffc9a71461026157806304bda2621461028957806308526780146102b45780630d4cf01e146102d7575b600080fd5b61027461026f366004613bd2565b610585565b60405190151581526020015b60405180910390f35b60045461029c906001600160a01b031681565b6040516001600160a01b039091168152602001610280565b6102746102c2366004613c18565b60086020526000908152604090205460ff1681565b6102ea6102e5366004613c33565b6105ee565b005b61030c6102fa366004613c18565b60076020526000908152604090205481565b604051908152602001610280565b61030c610328366004613c5f565b60009081526020819052604090206001015490565b6102ea61034b366004613c5f565b610c54565b6102ea61035e366004613c33565b6111a1565b61030c610371366004613c18565b6111cb565b6102ea610384366004613c33565b611227565b6102ea610397366004613c5f565b6112b8565b61030c600b5481565b6102ea6103b3366004613c5f565b61182b565b61030c600d5481565b61030c600a5481565b61030c600c5481565b61030c600e5481565b6102ea6103ea366004613c5f565b611df2565b60035461029c906001600160a01b031681565b61030c60095481565b61030c7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b610274610440366004613c33565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6102ea610477366004613c86565b611e73565b61030c61048a366004613c18565b60066020526000908152604090205481565b6102ea6104aa366004613c5f565b612336565b61030c600081565b61030c6104c5366004613ca3565b6128e3565b6104dd6104d8366004613ccd565b61294b565b6040516102809190613d92565b60015461029c906001600160a01b031681565b6102ea61050b366004613c18565b612a40565b6102ea61051e366004613c5f565b612ebb565b61030c610531366004613c18565b60056020526000908152604090205481565b6102ea610551366004613c33565b6133b4565b60025461029c906001600160a01b031681565b61030c610577366004613c18565b6133d9565b61030c600f5481565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806105e857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa15801561063b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065f9190613df4565b11156106e157600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156106b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d49190613df4565b6106de9190613e23565b90505b606481111561083f576000600a5460046106fb9190613e36565b610706906001613e4d565b600f546107139084613e36565b61071d9190613e60565b6064600b548461072d9190613e36565b6107379190613e60565b6107419190613e4d565b9050600061074f8284613e23565b90506000600f54600a546107639190613e23565b905080600c54836107749190613e36565b61077e9190613e60565b600d5461078b9190613e4d565b600d8190555081600e60008282546107a39190613e4d565b9250508190555081600a60008282546107bc9190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af1158015610816573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083a9190613e82565b505050505b81600061084b826133d9565b90508015610a475780600e546108619190613e23565b600e556001600160a01b0382166000908152600660205260409020548111156108b2576001600160a01b038216600090815260056020526040812080548392906108ac908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff1680156108f257506001600160a01b0382166000908152600660205260409020548111155b156109d3576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af1158015610950573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109749190613e82565b5080600a60008282546109879190613e23565b90915550506001600160a01b038216600090815260066020526040812080548392906109b4908490613e23565b9250508190555080600f60008282546109cd9190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff16158015610a1457506001600160a01b0382166000908152600660205260409020548111155b15610a47576001600160a01b03821660009081526005602052604081208054839290610a41908490613e4d565b90915550505b600d546001600160a01b038084166000908152600760209081526040808320949094559187168152600690915290812054610a8490600490613e60565b905080861115610a92578095505b6001600160a01b0385166000908152600560209081526040808320546006909252822054610ac1600a8a613e60565b610acb9190613e36565b610ad59190613e60565b610ae0600a89613e60565b610aea9190613e23565b600454600154919250610b0c916001600160a01b03908116913391168461344d565b60015460405163079cc67960e41b8152336004820152602481018990526001600160a01b03909116906379cc679090604401600060405180830381600087803b158015610b5857600080fd5b505af1158015610b6c573d6000803e3d6000fd5b505050506001600160a01b03861660009081526005602052604081208054899290610b98908490613e23565b90915550506001600160a01b03861660009081526006602052604081208054899290610bc5908490613e23565b9250508190555086600f6000828254610bde9190613e23565b9250508190555086600a6000828254610bf79190613e23565b9091555050600254610c13906001600160a01b031633896134ec565b8087876001600160a01b03167f5751b5f3cc794b20ca3696dc55780ee5d1d424a659bc109e97fa87402562a8e760405160405180910390a450505050505050565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa158015610ca1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc59190613df4565b1115610d4757600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610d16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3a9190613df4565b610d449190613e23565b90505b6064811115610ea5576000600a546004610d619190613e36565b610d6c906001613e4d565b600f54610d799084613e36565b610d839190613e60565b6064600b5484610d939190613e36565b610d9d9190613e60565b610da79190613e4d565b90506000610db58284613e23565b90506000600f54600a54610dc99190613e23565b905080600c5483610dda9190613e36565b610de49190613e60565b600d54610df19190613e4d565b600d8190555081600e6000828254610e099190613e4d565b9250508190555081600a6000828254610e229190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af1158015610e7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea09190613e82565b505050505b336000610eb1826133d9565b905080156110ad5780600e54610ec79190613e23565b600e556001600160a01b038216600090815260066020526040902054811115610f18576001600160a01b03821660009081526005602052604081208054839290610f12908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff168015610f5857506001600160a01b0382166000908152600660205260409020548111155b15611039576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af1158015610fb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fda9190613e82565b5080600a6000828254610fed9190613e23565b90915550506001600160a01b0382166000908152600660205260408120805483929061101a908490613e23565b9250508190555080600f60008282546110339190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff1615801561107a57506001600160a01b0382166000908152600660205260409020548111155b156110ad576001600160a01b038216600090815260056020526040812080548392906110a7908490613e4d565b90915550505b600d546001600160a01b0383166000908152600760209081526040808320939093556009543383526006909152919020546110ea90612710613e36565b6110f49190613e60565b3360009081526005602052604090205461110e9190613e23565b84111561111a57600080fd5b3360009081526005602052604081208054869290611139908490613e23565b9250508190555083600a60008282546111529190613e23565b909155505060025461116e906001600160a01b031633866134ec565b604051849033907f88e5ac70e9098f9301eb01ed012de050d71fbb15a4ca8849ea39b6cd9967fb1590600090a350505050565b6000828152602081905260409020600101546111bc8161351c565b6111c68383613529565b505050565b6001600160a01b03811660009081526005602090815260408083205460069092528220548291906112049067016345785d8a0000613e36565b61120e9190613e60565b6112209067016345785d8a0000613e23565b9392505050565b6001600160a01b03811633146112aa5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6112b482826135c7565b5050565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa158015611305573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113299190613df4565b11156113ab57600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561137a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139e9190613df4565b6113a89190613e23565b90505b6064811115611509576000600a5460046113c59190613e36565b6113d0906001613e4d565b600f546113dd9084613e36565b6113e79190613e60565b6064600b54846113f79190613e36565b6114019190613e60565b61140b9190613e4d565b905060006114198284613e23565b90506000600f54600a5461142d9190613e23565b905080600c548361143e9190613e36565b6114489190613e60565b600d546114559190613e4d565b600d8190555081600e600082825461146d9190613e4d565b9250508190555081600a60008282546114869190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af11580156114e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115049190613e82565b505050505b336000611515826133d9565b905080156117115780600e5461152b9190613e23565b600e556001600160a01b03821660009081526006602052604090205481111561157c576001600160a01b03821660009081526005602052604081208054839290611576908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff1680156115bc57506001600160a01b0382166000908152600660205260409020548111155b1561169d576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af115801561161a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163e9190613e82565b5080600a60008282546116519190613e23565b90915550506001600160a01b0382166000908152600660205260408120805483929061167e908490613e23565b9250508190555080600f60008282546116979190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff161580156116de57506001600160a01b0382166000908152600660205260409020548111155b15611711576001600160a01b0382166000908152600560205260408120805483929061170b908490613e4d565b90915550505b600d546001600160a01b038316600090815260076020908152604080832093909355338252600690522054841115611756573360009081526006602052604090205493505b60015460405163079cc67960e41b8152336004820152602481018690526001600160a01b03909116906379cc679090604401600060405180830381600087803b1580156117a257600080fd5b505af11580156117b6573d6000803e3d6000fd5b505033600090815260066020526040812080548894509092506117da908490613e23565b9250508190555083600f60008282546117f39190613e23565b9091555050604051849033907f75708102661b224f589553859758a9aa2f23c5b535123e24c1fb71b3a251415090600090a350505050565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa158015611878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189c9190613df4565b111561191e57600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156118ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119119190613df4565b61191b9190613e23565b90505b6064811115611a7c576000600a5460046119389190613e36565b611943906001613e4d565b600f546119509084613e36565b61195a9190613e60565b6064600b548461196a9190613e36565b6119749190613e60565b61197e9190613e4d565b9050600061198c8284613e23565b90506000600f54600a546119a09190613e23565b905080600c54836119b19190613e36565b6119bb9190613e60565b600d546119c89190613e4d565b600d8190555081600e60008282546119e09190613e4d565b9250508190555081600a60008282546119f99190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af1158015611a53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a779190613e82565b505050505b336000611a88826133d9565b90508015611c845780600e54611a9e9190613e23565b600e556001600160a01b038216600090815260066020526040902054811115611aef576001600160a01b03821660009081526005602052604081208054839290611ae9908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff168015611b2f57506001600160a01b0382166000908152600660205260409020548111155b15611c10576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af1158015611b8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb19190613e82565b5080600a6000828254611bc49190613e23565b90915550506001600160a01b03821660009081526006602052604081208054839290611bf1908490613e23565b9250508190555080600f6000828254611c0a9190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff16158015611c5157506001600160a01b0382166000908152600660205260409020548111155b15611c84576001600160a01b03821660009081526005602052604081208054839290611c7e908490613e4d565b90915550505b600d546001600160a01b038316600090815260076020908152604080832093909355338252600690522054841115611cc9573360009081526006602052604090205493505b83600a6000828254611cdb9190613e23565b90915550503360009081526006602052604081208054869290611cff908490613e23565b9250508190555083600f6000828254611d189190613e23565b90915550503360009081526005602052604081208054869290611d3c908490613e23565b90915550506002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018790529091169063a9059cbb906044016020604051808303816000875af1158015611d9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dbe9190613e82565b50604051849033907f123474edf59004399ee06e11583a4daa254b4d4390ff2cc58b7a35d2598fbbee90600090a350505050565b7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42611e1c8161351c565b604b821115611e6d5760405162461bcd60e51b815260206004820152601a60248201527f74686520666565732061726520746f6f2064616d6e206869676800000000000060448201526064016112a1565b50600b55565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa158015611ec0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee49190613df4565b1115611f6657600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611f35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f599190613df4565b611f639190613e23565b90505b60648111156120c4576000600a546004611f809190613e36565b611f8b906001613e4d565b600f54611f989084613e36565b611fa29190613e60565b6064600b5484611fb29190613e36565b611fbc9190613e60565b611fc69190613e4d565b90506000611fd48284613e23565b90506000600f54600a54611fe89190613e23565b905080600c5483611ff99190613e36565b6120039190613e60565b600d546120109190613e4d565b600d8190555081600e60008282546120289190613e4d565b9250508190555081600a60008282546120419190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af115801561209b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120bf9190613e82565b505050505b3360006120d0826133d9565b905080156122cc5780600e546120e69190613e23565b600e556001600160a01b038216600090815260066020526040902054811115612137576001600160a01b03821660009081526005602052604081208054839290612131908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff16801561217757506001600160a01b0382166000908152600660205260409020548111155b15612258576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af11580156121d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121f99190613e82565b5080600a600082825461220c9190613e23565b90915550506001600160a01b03821660009081526006602052604081208054839290612239908490613e23565b9250508190555080600f60008282546122529190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff1615801561229957506001600160a01b0382166000908152600660205260409020548111155b156122cc576001600160a01b038216600090815260056020526040812080548392906122c6908490613e4d565b90915550505b600d546001600160a01b038316600090815260076020908152604080832093909355338083526008909152828220805460ff1916881515908117909155925190917f807ef32df55d28183834e02e7e2eab62bffb9ef8ba0c2527bde03d9738230e2f91a350505050565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa158015612383573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123a79190613df4565b111561242957600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156123f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241c9190613df4565b6124269190613e23565b90505b6064811115612587576000600a5460046124439190613e36565b61244e906001613e4d565b600f5461245b9084613e36565b6124659190613e60565b6064600b54846124759190613e36565b61247f9190613e60565b6124899190613e4d565b905060006124978284613e23565b90506000600f54600a546124ab9190613e23565b905080600c54836124bc9190613e36565b6124c69190613e60565b600d546124d39190613e4d565b600d8190555081600e60008282546124eb9190613e4d565b9250508190555081600a60008282546125049190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af115801561255e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125829190613e82565b505050505b336000612593826133d9565b9050801561278f5780600e546125a99190613e23565b600e556001600160a01b0382166000908152600660205260409020548111156125fa576001600160a01b038216600090815260056020526040812080548392906125f4908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff16801561263a57506001600160a01b0382166000908152600660205260409020548111155b1561271b576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af1158015612698573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126bc9190613e82565b5080600a60008282546126cf9190613e23565b90915550506001600160a01b038216600090815260066020526040812080548392906126fc908490613e23565b9250508190555080600f60008282546127159190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff1615801561275c57506001600160a01b0382166000908152600660205260409020548111155b1561278f576001600160a01b03821660009081526005602052604081208054839290612789908490613e4d565b90915550505b600d546001600160a01b038316600090815260076020908152604080832093909355338252600681528282205460095460059092529290912054612710916127d691613e36565b6127e09190613e60565b6127ea9190613e23565b8411156127f657600080fd5b3360009081526006602052604081208054869290612815908490613e4d565b9250508190555083600f600082825461282e9190613e4d565b90915550506001546040517f40c10f19000000000000000000000000000000000000000000000000000000008152336004820152602481018690526001600160a01b03909116906340c10f1990604401600060405180830381600087803b15801561289857600080fd5b505af11580156128ac573d6000803e3d6000fd5b50506040518692503391507f4e6ec2477b215d44bbbdd0f5815b8827188f1eb827c01cc00f7f983582322afa90600090a350505050565b6001600160a01b0382166000908152600560209081526040808320546006909252822054829190612915908590613e4d565b6129279067016345785d8a0000613e36565b6129319190613e60565b6129439067016345785d8a0000613e23565b949350505050565b60608167ffffffffffffffff81111561296657612966613e9f565b60405190808252806020026020018201604052801561299957816020015b60608152602001906001900390816129845790505b50905060005b82811015612a3957612a09308585848181106129bd576129bd613eb5565b90506020028101906129cf9190613ecb565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061364692505050565b828281518110612a1b57612a1b613eb5565b60200260200101819052508080612a3190613f19565b91505061299f565b5092915050565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa158015612a8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab19190613df4565b1115612b3357600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612b02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b269190613df4565b612b309190613e23565b90505b6064811115612c91576000600a546004612b4d9190613e36565b612b58906001613e4d565b600f54612b659084613e36565b612b6f9190613e60565b6064600b5484612b7f9190613e36565b612b899190613e60565b612b939190613e4d565b90506000612ba18284613e23565b90506000600f54600a54612bb59190613e23565b905080600c5483612bc69190613e36565b612bd09190613e60565b600d54612bdd9190613e4d565b600d8190555081600e6000828254612bf59190613e4d565b9250508190555081600a6000828254612c0e9190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af1158015612c68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8c9190613e82565b505050505b816000612c9d826133d9565b90508015612e995780600e54612cb39190613e23565b600e556001600160a01b038216600090815260066020526040902054811115612d04576001600160a01b03821660009081526005602052604081208054839290612cfe908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff168015612d4457506001600160a01b0382166000908152600660205260409020548111155b15612e25576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af1158015612da2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dc69190613e82565b5080600a6000828254612dd99190613e23565b90915550506001600160a01b03821660009081526006602052604081208054839290612e06908490613e23565b9250508190555080600f6000828254612e1f9190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff16158015612e6657506001600160a01b0382166000908152600660205260409020548111155b15612e99576001600160a01b03821660009081526005602052604081208054839290612e93908490613e4d565b90915550505b50600d546001600160a01b039091166000908152600760205260409020555050565b600a546002546040516370a0823160e01b8152306004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa158015612f08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f2c9190613df4565b1115612fae57600a546002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612f7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fa19190613df4565b612fab9190613e23565b90505b606481111561310c576000600a546004612fc89190613e36565b612fd3906001613e4d565b600f54612fe09084613e36565b612fea9190613e60565b6064600b5484612ffa9190613e36565b6130049190613e60565b61300e9190613e4d565b9050600061301c8284613e23565b90506000600f54600a546130309190613e23565b905080600c54836130419190613e36565b61304b9190613e60565b600d546130589190613e4d565b600d8190555081600e60008282546130709190613e4d565b9250508190555081600a60008282546130899190613e4d565b909155505060025460035460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810186905291169063a9059cbb906044016020604051808303816000875af11580156130e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131079190613e82565b505050505b336000613118826133d9565b905080156133145780600e5461312e9190613e23565b600e556001600160a01b03821660009081526006602052604090205481111561317f576001600160a01b03821660009081526005602052604081208054839290613179908490613e4d565b90915550505b6001600160a01b03821660009081526008602052604090205460ff1680156131bf57506001600160a01b0382166000908152600660205260409020548111155b156132a0576002546004805460405163a9059cbb60e01b81526001600160a01b0391821692810192909252602482018490529091169063a9059cbb906044016020604051808303816000875af115801561321d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132419190613e82565b5080600a60008282546132549190613e23565b90915550506001600160a01b03821660009081526006602052604081208054839290613281908490613e23565b9250508190555080600f600082825461329a9190613e23565b90915550505b6001600160a01b03821660009081526008602052604090205460ff161580156132e157506001600160a01b0382166000908152600660205260409020548111155b15613314576001600160a01b0382166000908152600560205260408120805483929061330e908490613e4d565b90915550505b600d546001600160a01b03808416600090815260076020526040902091909155600254613344911633308761344d565b3360009081526005602052604081208054869290613363908490613e4d565b9250508190555083600a600082825461337c9190613e4d565b9091555050604051849033907f6da1339ceea6e3dbf7ead04517d05e02f98ab75cd4698142e7eeaa32ea1714b790600090a350505050565b6000828152602081905260409020600101546133cf8161351c565b6111c683836135c7565b6001600160a01b038116600090815260076020526040812054600d54829161340091613e23565b6001600160a01b038416600090815260066020908152604080832054600590925282205492935090916134339190613e23565b600c549091506134438383613e36565b6129439190613e60565b6040516001600160a01b03808516602483015283166044820152606481018290526134e69085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915261366b565b50505050565b6040516001600160a01b0383166024820152604481018290526111c690849063a9059cbb60e01b9060640161349a565b6135268133613750565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166112b4576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556135833390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16156112b4576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60606112208383604051806060016040528060278152602001613ffa602791396137c3565b60006136c0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661383b9092919063ffffffff16565b8051909150156111c657808060200190518101906136de9190613e82565b6111c65760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016112a1565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166112b4576137818161384a565b61378c83602061385c565b60405160200161379d929190613f32565b60408051601f198184030181529082905262461bcd60e51b82526112a191600401613fb3565b6060600080856001600160a01b0316856040516137e09190613fc6565b600060405180830381855af49150503d806000811461381b576040519150601f19603f3d011682016040523d82523d6000602084013e613820565b606091505b509150915061383186838387613a3d565b9695505050505050565b60606129438484600085613ab6565b60606105e86001600160a01b03831660145b6060600061386b836002613e36565b613876906002613e4d565b67ffffffffffffffff81111561388e5761388e613e9f565b6040519080825280601f01601f1916602001820160405280156138b8576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106138ef576138ef613eb5565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061393a5761393a613eb5565b60200101906001600160f81b031916908160001a905350600061395e846002613e36565b613969906001613e4d565b90505b60018111156139ee577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106139aa576139aa613eb5565b1a60f81b8282815181106139c0576139c0613eb5565b60200101906001600160f81b031916908160001a90535060049490941c936139e781613fe2565b905061396c565b5083156112205760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016112a1565b60608315613aac578251600003613aa5576001600160a01b0385163b613aa55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016112a1565b5081612943565b6129438383613ba8565b606082471015613b2e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016112a1565b600080866001600160a01b03168587604051613b4a9190613fc6565b60006040518083038185875af1925050503d8060008114613b87576040519150601f19603f3d011682016040523d82523d6000602084013e613b8c565b606091505b5091509150613b9d87838387613a3d565b979650505050505050565b815115613bb85781518083602001fd5b8060405162461bcd60e51b81526004016112a19190613fb3565b600060208284031215613be457600080fd5b81356001600160e01b03198116811461122057600080fd5b80356001600160a01b0381168114613c1357600080fd5b919050565b600060208284031215613c2a57600080fd5b61122082613bfc565b60008060408385031215613c4657600080fd5b82359150613c5660208401613bfc565b90509250929050565b600060208284031215613c7157600080fd5b5035919050565b801515811461352657600080fd5b600060208284031215613c9857600080fd5b813561122081613c78565b60008060408385031215613cb657600080fd5b613cbf83613bfc565b946020939093013593505050565b60008060208385031215613ce057600080fd5b823567ffffffffffffffff80821115613cf857600080fd5b818501915085601f830112613d0c57600080fd5b813581811115613d1b57600080fd5b8660208260051b8501011115613d3057600080fd5b60209290920196919550909350505050565b60005b83811015613d5d578181015183820152602001613d45565b50506000910152565b60008151808452613d7e816020860160208601613d42565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015613de757603f19888603018452613dd5858351613d66565b94509285019290850190600101613db9565b5092979650505050505050565b600060208284031215613e0657600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156105e8576105e8613e0d565b80820281158282048414176105e8576105e8613e0d565b808201808211156105e8576105e8613e0d565b600082613e7d57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215613e9457600080fd5b815161122081613c78565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112613ee257600080fd5b83018035915067ffffffffffffffff821115613efd57600080fd5b602001915036819003821315613f1257600080fd5b9250929050565b600060018201613f2b57613f2b613e0d565b5060010190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613f6a816017850160208801613d42565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351613fa7816028840160208801613d42565b01602801949350505050565b6020815260006112206020830184613d66565b60008251613fd8818460208701613d42565b9190910192915050565b600081613ff157613ff1613e0d565b50600019019056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212201c8fcf081967afb78a4ef2a0955acc10934f9e05ac473278f4e1c6edce614c0564736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007690202e2c2297bcd03664e31116d1dffe7e3b73000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe8400000000000000000000000000000000000000000000000000000000000026ac000000000000000000000000320c871b6f7721083604ffdd8070e64c1d3c5d7c00000000000000000000000024146d1b3339cf76b455dc42e71ea5cdff4ae0d7
-----Decoded View---------------
Arg [0] : _synthetic (address): 0x7690202e2C2297bcD03664e31116d1dFfE7e3B73
Arg [1] : _collateral (address): 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84
Arg [2] : _ltv (uint256): 9900
Arg [3] : _feeSplitAddress (address): 0x320c871b6f7721083604FfdD8070E64c1d3c5d7C
Arg [4] : _psm (address): 0x24146D1B3339Cf76b455dC42e71Ea5Cdff4aE0d7
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000007690202e2c2297bcd03664e31116d1dffe7e3b73
Arg [1] : 000000000000000000000000ae7ab96520de3a18e5e111b5eaab095312d7fe84
Arg [2] : 00000000000000000000000000000000000000000000000000000000000026ac
Arg [3] : 000000000000000000000000320c871b6f7721083604ffdd8070e64c1d3c5d7c
Arg [4] : 00000000000000000000000024146d1b3339cf76b455dc42e71ea5cdff4ae0d7
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,230.09 | 223.1449 | $497,633.12 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.