More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 135 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Swap Info | 303171602 | 76 days ago | IN | 0 ETH | 0.00000192 | ||||
Set Swap Info | 303171524 | 76 days ago | IN | 0 ETH | 0.00000255 | ||||
Set Swap Info | 301164825 | 82 days ago | IN | 0 ETH | 0.00000958 | ||||
Set Swap Info | 291117740 | 111 days ago | IN | 0 ETH | 0.00001363 | ||||
Set Swap Info | 291116652 | 111 days ago | IN | 0 ETH | 0.00001339 | ||||
Set Swap Info | 291115640 | 111 days ago | IN | 0 ETH | 0.00001765 | ||||
Set Swap Info | 286339691 | 125 days ago | IN | 0 ETH | 0.00000788 | ||||
Set Swap Info | 285324855 | 128 days ago | IN | 0 ETH | 0.00000515 | ||||
Set Swap Info | 277038862 | 152 days ago | IN | 0 ETH | 0.00000694 | ||||
Set Swap Info | 276087938 | 155 days ago | IN | 0 ETH | 0.00000385 | ||||
Set Swap Info | 276084351 | 155 days ago | IN | 0 ETH | 0.00000346 | ||||
Set Swap Info | 276082941 | 155 days ago | IN | 0 ETH | 0.00000765 | ||||
Set Swap Info | 273288352 | 163 days ago | IN | 0 ETH | 0.00000912 | ||||
Set Swap Info | 273287452 | 163 days ago | IN | 0 ETH | 0.00000676 | ||||
Set Swap Info | 273284976 | 163 days ago | IN | 0 ETH | 0.00001165 | ||||
Set Swap Info | 270934883 | 170 days ago | IN | 0 ETH | 0.00000798 | ||||
Set Swap Info | 270916613 | 170 days ago | IN | 0 ETH | 0.00000648 | ||||
Set Swap Info | 270909321 | 170 days ago | IN | 0 ETH | 0.00000639 | ||||
Set Swap Info | 269507718 | 174 days ago | IN | 0 ETH | 0.00000275 | ||||
Set Swap Info | 269505602 | 174 days ago | IN | 0 ETH | 0.00000304 | ||||
Set Swap Info | 264694333 | 188 days ago | IN | 0 ETH | 0.00001154 | ||||
Set Swap Info | 264693049 | 188 days ago | IN | 0 ETH | 0.0000081 | ||||
Set Swap Info | 264692339 | 188 days ago | IN | 0 ETH | 0.00000807 | ||||
Set Swap Info | 262729838 | 193 days ago | IN | 0 ETH | 0.00001202 | ||||
Set Swap Info | 261294652 | 198 days ago | IN | 0 ETH | 0.00000297 |
Loading...
Loading
Contract Name:
SimpleSwapper
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at Arbiscan.io on 2023-12-20 */ // SPDX-License-Identifier: MIT // File: @openzeppelin-4/contracts/token/ERC20/IERC20.sol // 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); } // File: @openzeppelin-4/contracts/token/ERC20/extensions/draft-IERC20Permit.sol // 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); } // File: @openzeppelin-4/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.7.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 functionCall(target, data, "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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(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) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // 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); } } } } // File: @openzeppelin-4/contracts/token/ERC20/utils/SafeERC20.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @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"); } } } // File: contracts/BIFI/utils/BytesLib.sol /* * @title Solidity Bytes Arrays Utils * @author Gonçalo Sá <[email protected]> * * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity. * The library lets you concatenate, slice and type cast bytes arrays both in memory and storage. */ pragma solidity >=0.8.0 <0.9.0; library BytesLib { function concat( bytes memory _preBytes, bytes memory _postBytes ) internal pure returns (bytes memory) { bytes memory tempBytes; assembly { // Get a location of some free memory and store it in tempBytes as // Solidity does for memory variables. tempBytes := mload(0x40) // Store the length of the first bytes array at the beginning of // the memory for tempBytes. let length := mload(_preBytes) mstore(tempBytes, length) // Maintain a memory counter for the current write location in the // temp bytes array by adding the 32 bytes for the array length to // the starting location. let mc := add(tempBytes, 0x20) // Stop copying when the memory counter reaches the length of the // first bytes array. let end := add(mc, length) for { // Initialize a copy counter to the start of the _preBytes data, // 32 bytes into its memory. let cc := add(_preBytes, 0x20) } lt(mc, end) { // Increase both counters by 32 bytes each iteration. mc := add(mc, 0x20) cc := add(cc, 0x20) } { // Write the _preBytes data into the tempBytes memory 32 bytes // at a time. mstore(mc, mload(cc)) } // Add the length of _postBytes to the current length of tempBytes // and store it as the new length in the first 32 bytes of the // tempBytes memory. length := mload(_postBytes) mstore(tempBytes, add(length, mload(tempBytes))) // Move the memory counter back from a multiple of 0x20 to the // actual end of the _preBytes data. mc := end // Stop copying when the memory counter reaches the new combined // length of the arrays. end := add(mc, length) for { let cc := add(_postBytes, 0x20) } lt(mc, end) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { mstore(mc, mload(cc)) } // Update the free-memory pointer by padding our last write location // to 32 bytes: add 31 bytes to the end of tempBytes to move to the // next 32 byte block, then round down to the nearest multiple of // 32. If the sum of the length of the two arrays is zero then add // one before rounding down to leave a blank 32 bytes (the length block with 0). mstore(0x40, and( add(add(end, iszero(add(length, mload(_preBytes)))), 31), not(31) // Round down to the nearest 32 bytes. )) } return tempBytes; } function concatStorage(bytes storage _preBytes, bytes memory _postBytes) internal { assembly { // Read the first 32 bytes of _preBytes storage, which is the length // of the array. (We don't need to use the offset into the slot // because arrays use the entire slot.) let fslot := sload(_preBytes.slot) // Arrays of 31 bytes or less have an even value in their slot, // while longer arrays have an odd value. The actual length is // the slot divided by two for odd values, and the lowest order // byte divided by two for even values. // If the slot is even, bitwise and the slot with 255 and divide by // two to get the length. If the slot is odd, bitwise and the slot // with -1 and divide by two. let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2) let mlength := mload(_postBytes) let newlength := add(slength, mlength) // slength can contain both the length and contents of the array // if length < 32 bytes so let's prepare for that // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage switch add(lt(slength, 32), lt(newlength, 32)) case 2 { // Since the new array still fits in the slot, we just need to // update the contents of the slot. // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length sstore( _preBytes.slot, // all the modifications to the slot are inside this // next block add( // we can just add to the slot contents because the // bytes we want to change are the LSBs fslot, add( mul( div( // load the bytes from memory mload(add(_postBytes, 0x20)), // zero all bytes to the right exp(0x100, sub(32, mlength)) ), // and now shift left the number of bytes to // leave space for the length in the slot exp(0x100, sub(32, newlength)) ), // increase length by the double of the memory // bytes length mul(mlength, 2) ) ) ) } case 1 { // The stored value fits in the slot, but the combined value // will exceed it. // get the keccak hash to get the contents of the array mstore(0x0, _preBytes.slot) let sc := add(keccak256(0x0, 0x20), div(slength, 32)) // save new length sstore(_preBytes.slot, add(mul(newlength, 2), 1)) // The contents of the _postBytes array start 32 bytes into // the structure. Our first read should obtain the `submod` // bytes that can fit into the unused space in the last word // of the stored array. To get this, we read 32 bytes starting // from `submod`, so the data we read overlaps with the array // contents by `submod` bytes. Masking the lowest-order // `submod` bytes allows us to add that value directly to the // stored value. let submod := sub(32, slength) let mc := add(_postBytes, submod) let end := add(_postBytes, mlength) let mask := sub(exp(0x100, submod), 1) sstore( sc, add( and( fslot, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00 ), and(mload(mc), mask) ) ) for { mc := add(mc, 0x20) sc := add(sc, 1) } lt(mc, end) { sc := add(sc, 1) mc := add(mc, 0x20) } { sstore(sc, mload(mc)) } mask := exp(0x100, sub(mc, end)) sstore(sc, mul(div(mload(mc), mask), mask)) } default { // get the keccak hash to get the contents of the array mstore(0x0, _preBytes.slot) // Start copying to the last used word of the stored array. let sc := add(keccak256(0x0, 0x20), div(slength, 32)) // save new length sstore(_preBytes.slot, add(mul(newlength, 2), 1)) // Copy over the first `submod` bytes of the new data as in // case 1 above. let slengthmod := mod(slength, 32) let mlengthmod := mod(mlength, 32) let submod := sub(32, slengthmod) let mc := add(_postBytes, submod) let end := add(_postBytes, mlength) let mask := sub(exp(0x100, submod), 1) sstore(sc, add(sload(sc), and(mload(mc), mask))) for { sc := add(sc, 1) mc := add(mc, 0x20) } lt(mc, end) { sc := add(sc, 1) mc := add(mc, 0x20) } { sstore(sc, mload(mc)) } mask := exp(0x100, sub(mc, end)) sstore(sc, mul(div(mload(mc), mask), mask)) } } } function slice( bytes memory _bytes, uint256 _start, uint256 _length ) internal pure returns (bytes memory) { require(_length + 31 >= _length, "slice_overflow"); require(_bytes.length >= _start + _length, "slice_outOfBounds"); bytes memory tempBytes; assembly { switch iszero(_length) case 0 { // Get a location of some free memory and store it in tempBytes as // Solidity does for memory variables. tempBytes := mload(0x40) // The first word of the slice result is potentially a partial // word read from the original array. To read it, we calculate // the length of that partial word and start copying that many // bytes into the array. The first word we copy will start with // data we don't care about, but the last `lengthmod` bytes will // land at the beginning of the contents of the new array. When // we're done copying, we overwrite the full first word with // the actual length of the slice. let lengthmod := and(_length, 31) // The multiplication in the next line is necessary // because when slicing multiples of 32 bytes (lengthmod == 0) // the following copy loop was copying the origin's length // and then ending prematurely not copying everything it should. let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod))) let end := add(mc, _length) for { // The multiplication in the next line has the same exact purpose // as the one above. let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start) } lt(mc, end) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { mstore(mc, mload(cc)) } mstore(tempBytes, _length) //update free-memory pointer //allocating the array padded to 32 bytes like the compiler does now mstore(0x40, and(add(mc, 31), not(31))) } //if we want a zero-length slice let's just return a zero-length array default { tempBytes := mload(0x40) //zero out the 32 bytes slice we are about to return //we need to do it because Solidity does not garbage collect mstore(tempBytes, 0) mstore(0x40, add(tempBytes, 0x20)) } } return tempBytes; } function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address) { require(_bytes.length >= _start + 20, "toAddress_outOfBounds"); address tempAddress; assembly { tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000) } return tempAddress; } function toUint8(bytes memory _bytes, uint256 _start) internal pure returns (uint8) { require(_bytes.length >= _start + 1 , "toUint8_outOfBounds"); uint8 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x1), _start)) } return tempUint; } function toUint16(bytes memory _bytes, uint256 _start) internal pure returns (uint16) { require(_bytes.length >= _start + 2, "toUint16_outOfBounds"); uint16 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x2), _start)) } return tempUint; } function toUint24(bytes memory _bytes, uint256 _start) internal pure returns (uint24) { require(_start + 3 >= _start, 'toUint24_overflow'); require(_bytes.length >= _start + 3, 'toUint24_outOfBounds'); uint24 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x3), _start)) } return tempUint; } function toUint32(bytes memory _bytes, uint256 _start) internal pure returns (uint32) { require(_bytes.length >= _start + 4, "toUint32_outOfBounds"); uint32 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x4), _start)) } return tempUint; } function toUint64(bytes memory _bytes, uint256 _start) internal pure returns (uint64) { require(_bytes.length >= _start + 8, "toUint64_outOfBounds"); uint64 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x8), _start)) } return tempUint; } function toUint96(bytes memory _bytes, uint256 _start) internal pure returns (uint96) { require(_bytes.length >= _start + 12, "toUint96_outOfBounds"); uint96 tempUint; assembly { tempUint := mload(add(add(_bytes, 0xc), _start)) } return tempUint; } function toUint128(bytes memory _bytes, uint256 _start) internal pure returns (uint128) { require(_bytes.length >= _start + 16, "toUint128_outOfBounds"); uint128 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x10), _start)) } return tempUint; } function toUint256(bytes memory _bytes, uint256 _start) internal pure returns (uint256) { require(_bytes.length >= _start + 32, "toUint256_outOfBounds"); uint256 tempUint; assembly { tempUint := mload(add(add(_bytes, 0x20), _start)) } return tempUint; } function toBytes32(bytes memory _bytes, uint256 _start) internal pure returns (bytes32) { require(_bytes.length >= _start + 32, "toBytes32_outOfBounds"); bytes32 tempBytes32; assembly { tempBytes32 := mload(add(add(_bytes, 0x20), _start)) } return tempBytes32; } function equal(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) { bool success = true; assembly { let length := mload(_preBytes) // if lengths don't match the arrays are not equal switch eq(length, mload(_postBytes)) case 1 { // cb is a circuit breaker in the for loop since there's // no said feature for inline assembly loops // cb = 1 - don't breaker // cb = 0 - break let cb := 1 let mc := add(_preBytes, 0x20) let end := add(mc, length) for { let cc := add(_postBytes, 0x20) // the next line is the loop condition: // while(uint256(mc < end) + cb == 2) } eq(add(lt(mc, end), cb), 2) { mc := add(mc, 0x20) cc := add(cc, 0x20) } { // if any of these checks fails then arrays are not equal if iszero(eq(mload(mc), mload(cc))) { // unsuccess: success := 0 cb := 0 } } } default { // unsuccess: success := 0 } } return success; } function equalStorage( bytes storage _preBytes, bytes memory _postBytes ) internal view returns (bool) { bool success = true; assembly { // we know _preBytes_offset is 0 let fslot := sload(_preBytes.slot) // Decode the length of the stored array like in concatStorage(). let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2) let mlength := mload(_postBytes) // if lengths don't match the arrays are not equal switch eq(slength, mlength) case 1 { // slength can contain both the length and contents of the array // if length < 32 bytes so let's prepare for that // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage if iszero(iszero(slength)) { switch lt(slength, 32) case 1 { // blank the last byte which is the length fslot := mul(div(fslot, 0x100), 0x100) if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) { // unsuccess: success := 0 } } default { // cb is a circuit breaker in the for loop since there's // no said feature for inline assembly loops // cb = 1 - don't breaker // cb = 0 - break let cb := 1 // get the keccak hash to get the contents of the array mstore(0x0, _preBytes.slot) let sc := keccak256(0x0, 0x20) let mc := add(_postBytes, 0x20) let end := add(mc, mlength) // the next line is the loop condition: // while(uint256(mc < end) + cb == 2) for {} eq(add(lt(mc, end), cb), 2) { sc := add(sc, 1) mc := add(mc, 0x20) } { if iszero(eq(sload(sc), mload(mc))) { // unsuccess: success := 0 cb := 0 } } } } } default { // unsuccess: success := 0 } } return success; } } // File: contracts/BIFI/infra/SimpleSwapper.sol pragma solidity 0.8.19; contract SimpleSwapper { using SafeERC20 for IERC20; using BytesLib for bytes; struct SwapInfo { address router; bytes data; uint256 amountIndex; } mapping(address => mapping(address => SwapInfo)) public swapInfo; address public native; address public keeper; address public deployer; constructor(address _native, address _keeper) { native = _native; keeper = _keeper; deployer = msg.sender; } modifier onlyManager() { require(msg.sender == deployer || msg.sender == keeper, "!manager"); _; } error NoSwapData(address fromToken, address toToken); error SwapFailed(address router, bytes data); event Swap(address indexed caller, address indexed fromToken, address indexed toToken, uint256 amountIn, uint256 amountOut); event SetSwapInfo(address indexed fromToken, address indexed toToken, SwapInfo swapInfo); function swap(address _fromToken, address _toToken, uint256 _amountIn) external returns (uint256 amountOut) { IERC20(_fromToken).safeTransferFrom(msg.sender, address(this), _amountIn); _executeSwap(_fromToken, _toToken, _amountIn); amountOut = IERC20(_toToken).balanceOf(address(this)); IERC20(_toToken).safeTransfer(msg.sender, amountOut); emit Swap(msg.sender, _fromToken, _toToken, _amountIn, amountOut); } function _executeSwap(address _fromToken, address _toToken, uint256 _amountIn) private { SwapInfo memory swapData = swapInfo[_fromToken][_toToken]; address router = swapData.router; if (router == address(0)) revert NoSwapData(_fromToken, _toToken); bytes memory data = swapData.data; data = _insertData(data, swapData.amountIndex, abi.encode(_amountIn)); _approveTokenIfNeeded(_fromToken, router); (bool success,) = router.call(data); if (!success) revert SwapFailed(router, data); } function _insertData(bytes memory _data, uint256 _index, bytes memory _newData) private pure returns (bytes memory data) { data = bytes.concat( bytes.concat( _data.slice(0, _index), _newData ), _data.slice(_index + 32, _data.length - (_index + 32)) ); } function setSwapInfo(address _fromToken, address _toToken, SwapInfo calldata _swapInfo) external onlyManager { swapInfo[_fromToken][_toToken] = _swapInfo; emit SetSwapInfo(_fromToken, _toToken, _swapInfo); } function setSwapInfos(address[] calldata _fromTokens, address[] calldata _toTokens, SwapInfo[] calldata _swapInfos) external onlyManager { uint256 tokenLength = _fromTokens.length; for (uint i; i < tokenLength;) { swapInfo[_fromTokens[i]][_toTokens[i]] = _swapInfos[i]; emit SetSwapInfo(_fromTokens[i], _toTokens[i], _swapInfos[i]); unchecked {++i;} } } function _approveTokenIfNeeded(address token, address spender) private { if (IERC20(token).allowance(address(this), spender) == 0) { IERC20(token).safeApprove(spender, type(uint256).max); } } function fromNative(address _token) external view returns (address router, bytes memory data, uint256 amountIndex) { router = swapInfo[native][_token].router; data = swapInfo[native][_token].data; amountIndex = swapInfo[native][_token].amountIndex; } function toNative(address _token) external view returns (address router, bytes memory data, uint256 amountIndex) { router = swapInfo[_token][native].router; data = swapInfo[_token][native].data; amountIndex = swapInfo[_token][native].amountIndex; } function setKeeper(address _keeper) external onlyManager { keeper = _keeper; } function renounceDeployer() public onlyManager { deployer = address(0); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_native","type":"address"},{"internalType":"address","name":"_keeper","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"address","name":"toToken","type":"address"}],"name":"NoSwapData","type":"error"},{"inputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"SwapFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fromToken","type":"address"},{"indexed":true,"internalType":"address","name":"toToken","type":"address"},{"components":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"amountIndex","type":"uint256"}],"indexed":false,"internalType":"struct SimpleSwapper.SwapInfo","name":"swapInfo","type":"tuple"}],"name":"SetSwapInfo","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"fromToken","type":"address"},{"indexed":true,"internalType":"address","name":"toToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"Swap","type":"event"},{"inputs":[],"name":"deployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"fromNative","outputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"amountIndex","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"native","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceDeployer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fromToken","type":"address"},{"internalType":"address","name":"_toToken","type":"address"},{"components":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"amountIndex","type":"uint256"}],"internalType":"struct SimpleSwapper.SwapInfo","name":"_swapInfo","type":"tuple"}],"name":"setSwapInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_fromTokens","type":"address[]"},{"internalType":"address[]","name":"_toTokens","type":"address[]"},{"components":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"amountIndex","type":"uint256"}],"internalType":"struct SimpleSwapper.SwapInfo[]","name":"_swapInfos","type":"tuple[]"}],"name":"setSwapInfos","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fromToken","type":"address"},{"internalType":"address","name":"_toToken","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"}],"name":"swap","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"swapInfo","outputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"amountIndex","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"toNative","outputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"amountIndex","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051620017df380380620017df8339810160408190526100319161008e565b600180546001600160a01b039384166001600160a01b03199182161790915560028054929093169181169190911790915560038054909116331790556100c1565b80516001600160a01b038116811461008957600080fd5b919050565b600080604083850312156100a157600080fd5b6100aa83610072565b91506100b860208401610072565b90509250929050565b61170e80620000d16000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c806384aad7fd1161007157806384aad7fd1461013f578063aced166114610152578063bf6f00d814610165578063d5f394881461016d578063df791e5014610180578063e0146c8e146101a157600080fd5b80631147e140146100ae57806311b0b42d146100d9578063336748a2146101045780633c8f579014610119578063748747e61461012c575b600080fd5b6100c16100bc3660046110d0565b6101b4565b6040516100d09392919061113d565b60405180910390f35b6001546100ec906001600160a01b031681565b6040516001600160a01b0390911681526020016100d0565b6101176101123660046111bd565b6102aa565b005b6100c16101273660046110d0565b610487565b61011761013a3660046110d0565b610579565b61011761014d366004611257565b6105da565b6002546100ec906001600160a01b031681565b61011761069b565b6003546100ec906001600160a01b031681565b61019361018e3660046112c0565b6106ec565b6040519081526020016100d0565b6100c16101af366004611301565b6107de565b600180546001600160a01b03908116600090815260208181526040808320868516845290915281208054930180549390921692606092906101f49061133a565b80601f01602080910402602001604051908101604052809291908181526020018280546102209061133a565b801561026d5780601f106102425761010080835404028352916020019161026d565b820191906000526020600020905b81548152906001019060200180831161025057829003601f168201915b50506001546001600160a01b039081166000908152602081815260408083209b909316825299909952909720600201549597929650919350505050565b6003546001600160a01b03163314806102cd57506002546001600160a01b031633145b6102f25760405162461bcd60e51b81526004016102e990611374565b60405180910390fd5b8460005b8181101561047d5783838281811061031057610310611396565b905060200281019061032291906113ac565b6000808a8a8581811061033757610337611396565b905060200201602081019061034c91906110d0565b6001600160a01b03166001600160a01b03168152602001908152602001600020600088888581811061038057610380611396565b905060200201602081019061039591906110d0565b6001600160a01b0316815260208101919091526040016000206103b8828261141a565b9050508585828181106103cd576103cd611396565b90506020020160208101906103e291906110d0565b6001600160a01b03168888838181106103fd576103fd611396565b905060200201602081019061041291906110d0565b6001600160a01b03167fce356dc68ba93633de7c8929e481a61ef7301124ddecd06f9e326896f5e43d4b86868581811061044e5761044e611396565b905060200281019061046091906113ac565b60405161046d9190611540565b60405180910390a36001016102f6565b5050505050505050565b6001600160a01b038181166000908152602081815260408083206001805486168552925282208054910180549190931692606092916104c59061133a565b80601f01602080910402602001604051908101604052809291908181526020018280546104f19061133a565b801561053e5780601f106105135761010080835404028352916020019161053e565b820191906000526020600020905b81548152906001019060200180831161052157829003601f168201915b505050506001600160a01b03958616600090815260208181526040808320600154909916835297905295909520600201549395909450915050565b6003546001600160a01b031633148061059c57506002546001600160a01b031633145b6105b85760405162461bcd60e51b81526004016102e990611374565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03163314806105fd57506002546001600160a01b031633145b6106195760405162461bcd60e51b81526004016102e990611374565b6001600160a01b038084166000908152602081815260408083209386168352929052208190610648828261141a565b905050816001600160a01b0316836001600160a01b03167fce356dc68ba93633de7c8929e481a61ef7301124ddecd06f9e326896f5e43d4b8360405161068e9190611540565b60405180910390a3505050565b6003546001600160a01b03163314806106be57506002546001600160a01b031633145b6106da5760405162461bcd60e51b81526004016102e990611374565b600380546001600160a01b0319169055565b60006107036001600160a01b03851633308561089b565b61070e84848461090c565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015610752573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077691906115e3565b905061078c6001600160a01b0384163383610af5565b60408051838152602081018390526001600160a01b03808616929087169133917fcd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e46062910160405180910390a49392505050565b6000602081815292815260408082209093529081522080546001820180546001600160a01b0390921692916108129061133a565b80601f016020809104026020016040519081016040528092919081815260200182805461083e9061133a565b801561088b5780601f106108605761010080835404028352916020019161088b565b820191906000526020600020905b81548152906001019060200180831161086e57829003601f168201915b5050505050908060020154905083565b6040516001600160a01b03808516602483015283166044820152606481018290526109069085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610b2a565b50505050565b6001600160a01b0380841660009081526020818152604080832086851684528252808320815160608101909252805490941681526001840180549394919391928401916109589061133a565b80601f01602080910402602001604051908101604052809291908181526020018280546109849061133a565b80156109d15780601f106109a6576101008083540402835291602001916109d1565b820191906000526020600020905b8154815290600101906020018083116109b457829003601f168201915b50505091835250506002919091015460209091015280519091506001600160a01b038116610a255760405163661af8a960e11b81526001600160a01b038087166004830152851660248201526044016102e9565b600082602001519050610a5e81846040015186604051602001610a4a91815260200190565b604051602081830303815290604052610bfc565b9050610a6a8683610c82565b6000826001600160a01b031682604051610a8491906115fc565b6000604051808303816000865af19150503d8060008114610ac1576040519150601f19603f3d011682016040523d82523d6000602084013e610ac6565b606091505b5050905080610aec578282604051630de816ad60e31b81526004016102e992919061160e565b50505050505050565b6040516001600160a01b038316602482015260448101829052610b2590849063a9059cbb60e01b906064016108cf565b505050565b6000610b7f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d139092919063ffffffff16565b805190915015610b255780806020019051810190610b9d9190611632565b610b255760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102e9565b6060610c0a84600085610d2c565b82604051602001610c1c929190611654565b60408051601f19818403018152919052610c59610c3a856020611699565b610c45866020611699565b8751610c5191906116b2565b879190610d2c565b604051602001610c6a929190611654565b60405160208183030381529060405290509392505050565b604051636eb1769f60e11b81523060048201526001600160a01b03828116602483015283169063dd62ed3e90604401602060405180830381865afa158015610cce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf291906115e3565b600003610d0f57610d0f6001600160a01b03831682600019610e39565b5050565b6060610d228484600085610f4e565b90505b9392505050565b606081610d3a81601f611699565b1015610d795760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016102e9565b610d838284611699565b84511015610dc75760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016102e9565b606082158015610de65760405191506000825260208201604052610e30565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015610e1f578051835260209283019201610e07565b5050858452601f01601f1916604052505b50949350505050565b801580610eb35750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610e8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb191906115e3565b155b610f1e5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016102e9565b6040516001600160a01b038316602482015260448101829052610b2590849063095ea7b360e01b906064016108cf565b606082471015610faf5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102e9565b6001600160a01b0385163b6110065760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102e9565b600080866001600160a01b0316858760405161102291906115fc565b60006040518083038185875af1925050503d806000811461105f576040519150601f19603f3d011682016040523d82523d6000602084013e611064565b606091505b509150915061107482828661107f565b979650505050505050565b6060831561108e575081610d25565b82511561109e5782518084602001fd5b8160405162461bcd60e51b81526004016102e991906116c5565b6001600160a01b03811681146110cd57600080fd5b50565b6000602082840312156110e257600080fd5b8135610d25816110b8565b60005b838110156111085781810151838201526020016110f0565b50506000910152565b600081518084526111298160208601602086016110ed565b601f01601f19169290920160200192915050565b6001600160a01b038416815260606020820181905260009061116190830185611111565b9050826040830152949350505050565b60008083601f84011261118357600080fd5b50813567ffffffffffffffff81111561119b57600080fd5b6020830191508360208260051b85010111156111b657600080fd5b9250929050565b600080600080600080606087890312156111d657600080fd5b863567ffffffffffffffff808211156111ee57600080fd5b6111fa8a838b01611171565b9098509650602089013591508082111561121357600080fd5b61121f8a838b01611171565b9096509450604089013591508082111561123857600080fd5b5061124589828a01611171565b979a9699509497509295939492505050565b60008060006060848603121561126c57600080fd5b8335611277816110b8565b92506020840135611287816110b8565b9150604084013567ffffffffffffffff8111156112a357600080fd5b8401606081870312156112b557600080fd5b809150509250925092565b6000806000606084860312156112d557600080fd5b83356112e0816110b8565b925060208401356112f0816110b8565b929592945050506040919091013590565b6000806040838503121561131457600080fd5b823561131f816110b8565b9150602083013561132f816110b8565b809150509250929050565b600181811c9082168061134e57607f821691505b60208210810361136e57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526008908201526710b6b0b730b3b2b960c11b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60008235605e198336030181126113c257600080fd5b9190910192915050565b601f821115610b2557600081815260208120601f850160051c810160208610156113f35750805b601f850160051c820191505b81811015611412578281556001016113ff565b505050505050565b8135611425816110b8565b81546001600160a01b0319166001600160a01b0391909116178155600181810160208481013536869003601e1901811261145e57600080fd5b8501803567ffffffffffffffff81111561147757600080fd5b803603838301131561148857600080fd5b61149c81611496865461133a565b866113cc565b6000601f8211600181146114d257600083156114ba57508382018501355b600019600385901b1c1916600184901b17865561152b565b600086815260209020601f19841690835b82811015611502578685018801358255938701939089019087016114e3565b50848210156115215760001960f88660031b161c198785880101351681555b50508683881b0186555b50505050505050604082013560028201555050565b6020815260008235611551816110b8565b6001600160a01b031660208381019190915283013536849003601e1901811261157957600080fd5b830160208101903567ffffffffffffffff81111561159657600080fd5b8036038213156115a557600080fd5b60606040850152806080850152808260a0860137600060a082860101526040850135606085015260a0601f19601f8301168501019250505092915050565b6000602082840312156115f557600080fd5b5051919050565b600082516113c28184602087016110ed565b6001600160a01b0383168152604060208201819052600090610d2290830184611111565b60006020828403121561164457600080fd5b81518015158114610d2557600080fd5b600083516116668184602088016110ed565b83519083019061167a8183602088016110ed565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156116ac576116ac611683565b92915050565b818103818111156116ac576116ac611683565b602081526000610d25602083018461111156fea26469706673582212209023a0dc9d4005ba44da866c5df84317757367259120dd8fc360d58a78c6411a64736f6c6343000813003300000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000004fed5491693007f0cd49f4614ffc38ab6a04b619
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100a95760003560e01c806384aad7fd1161007157806384aad7fd1461013f578063aced166114610152578063bf6f00d814610165578063d5f394881461016d578063df791e5014610180578063e0146c8e146101a157600080fd5b80631147e140146100ae57806311b0b42d146100d9578063336748a2146101045780633c8f579014610119578063748747e61461012c575b600080fd5b6100c16100bc3660046110d0565b6101b4565b6040516100d09392919061113d565b60405180910390f35b6001546100ec906001600160a01b031681565b6040516001600160a01b0390911681526020016100d0565b6101176101123660046111bd565b6102aa565b005b6100c16101273660046110d0565b610487565b61011761013a3660046110d0565b610579565b61011761014d366004611257565b6105da565b6002546100ec906001600160a01b031681565b61011761069b565b6003546100ec906001600160a01b031681565b61019361018e3660046112c0565b6106ec565b6040519081526020016100d0565b6100c16101af366004611301565b6107de565b600180546001600160a01b03908116600090815260208181526040808320868516845290915281208054930180549390921692606092906101f49061133a565b80601f01602080910402602001604051908101604052809291908181526020018280546102209061133a565b801561026d5780601f106102425761010080835404028352916020019161026d565b820191906000526020600020905b81548152906001019060200180831161025057829003601f168201915b50506001546001600160a01b039081166000908152602081815260408083209b909316825299909952909720600201549597929650919350505050565b6003546001600160a01b03163314806102cd57506002546001600160a01b031633145b6102f25760405162461bcd60e51b81526004016102e990611374565b60405180910390fd5b8460005b8181101561047d5783838281811061031057610310611396565b905060200281019061032291906113ac565b6000808a8a8581811061033757610337611396565b905060200201602081019061034c91906110d0565b6001600160a01b03166001600160a01b03168152602001908152602001600020600088888581811061038057610380611396565b905060200201602081019061039591906110d0565b6001600160a01b0316815260208101919091526040016000206103b8828261141a565b9050508585828181106103cd576103cd611396565b90506020020160208101906103e291906110d0565b6001600160a01b03168888838181106103fd576103fd611396565b905060200201602081019061041291906110d0565b6001600160a01b03167fce356dc68ba93633de7c8929e481a61ef7301124ddecd06f9e326896f5e43d4b86868581811061044e5761044e611396565b905060200281019061046091906113ac565b60405161046d9190611540565b60405180910390a36001016102f6565b5050505050505050565b6001600160a01b038181166000908152602081815260408083206001805486168552925282208054910180549190931692606092916104c59061133a565b80601f01602080910402602001604051908101604052809291908181526020018280546104f19061133a565b801561053e5780601f106105135761010080835404028352916020019161053e565b820191906000526020600020905b81548152906001019060200180831161052157829003601f168201915b505050506001600160a01b03958616600090815260208181526040808320600154909916835297905295909520600201549395909450915050565b6003546001600160a01b031633148061059c57506002546001600160a01b031633145b6105b85760405162461bcd60e51b81526004016102e990611374565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03163314806105fd57506002546001600160a01b031633145b6106195760405162461bcd60e51b81526004016102e990611374565b6001600160a01b038084166000908152602081815260408083209386168352929052208190610648828261141a565b905050816001600160a01b0316836001600160a01b03167fce356dc68ba93633de7c8929e481a61ef7301124ddecd06f9e326896f5e43d4b8360405161068e9190611540565b60405180910390a3505050565b6003546001600160a01b03163314806106be57506002546001600160a01b031633145b6106da5760405162461bcd60e51b81526004016102e990611374565b600380546001600160a01b0319169055565b60006107036001600160a01b03851633308561089b565b61070e84848461090c565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015610752573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077691906115e3565b905061078c6001600160a01b0384163383610af5565b60408051838152602081018390526001600160a01b03808616929087169133917fcd3829a3813dc3cdd188fd3d01dcf3268c16be2fdd2dd21d0665418816e46062910160405180910390a49392505050565b6000602081815292815260408082209093529081522080546001820180546001600160a01b0390921692916108129061133a565b80601f016020809104026020016040519081016040528092919081815260200182805461083e9061133a565b801561088b5780601f106108605761010080835404028352916020019161088b565b820191906000526020600020905b81548152906001019060200180831161086e57829003601f168201915b5050505050908060020154905083565b6040516001600160a01b03808516602483015283166044820152606481018290526109069085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610b2a565b50505050565b6001600160a01b0380841660009081526020818152604080832086851684528252808320815160608101909252805490941681526001840180549394919391928401916109589061133a565b80601f01602080910402602001604051908101604052809291908181526020018280546109849061133a565b80156109d15780601f106109a6576101008083540402835291602001916109d1565b820191906000526020600020905b8154815290600101906020018083116109b457829003601f168201915b50505091835250506002919091015460209091015280519091506001600160a01b038116610a255760405163661af8a960e11b81526001600160a01b038087166004830152851660248201526044016102e9565b600082602001519050610a5e81846040015186604051602001610a4a91815260200190565b604051602081830303815290604052610bfc565b9050610a6a8683610c82565b6000826001600160a01b031682604051610a8491906115fc565b6000604051808303816000865af19150503d8060008114610ac1576040519150601f19603f3d011682016040523d82523d6000602084013e610ac6565b606091505b5050905080610aec578282604051630de816ad60e31b81526004016102e992919061160e565b50505050505050565b6040516001600160a01b038316602482015260448101829052610b2590849063a9059cbb60e01b906064016108cf565b505050565b6000610b7f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d139092919063ffffffff16565b805190915015610b255780806020019051810190610b9d9190611632565b610b255760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102e9565b6060610c0a84600085610d2c565b82604051602001610c1c929190611654565b60408051601f19818403018152919052610c59610c3a856020611699565b610c45866020611699565b8751610c5191906116b2565b879190610d2c565b604051602001610c6a929190611654565b60405160208183030381529060405290509392505050565b604051636eb1769f60e11b81523060048201526001600160a01b03828116602483015283169063dd62ed3e90604401602060405180830381865afa158015610cce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf291906115e3565b600003610d0f57610d0f6001600160a01b03831682600019610e39565b5050565b6060610d228484600085610f4e565b90505b9392505050565b606081610d3a81601f611699565b1015610d795760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b60448201526064016102e9565b610d838284611699565b84511015610dc75760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016102e9565b606082158015610de65760405191506000825260208201604052610e30565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015610e1f578051835260209283019201610e07565b5050858452601f01601f1916604052505b50949350505050565b801580610eb35750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015610e8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb191906115e3565b155b610f1e5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016102e9565b6040516001600160a01b038316602482015260448101829052610b2590849063095ea7b360e01b906064016108cf565b606082471015610faf5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102e9565b6001600160a01b0385163b6110065760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102e9565b600080866001600160a01b0316858760405161102291906115fc565b60006040518083038185875af1925050503d806000811461105f576040519150601f19603f3d011682016040523d82523d6000602084013e611064565b606091505b509150915061107482828661107f565b979650505050505050565b6060831561108e575081610d25565b82511561109e5782518084602001fd5b8160405162461bcd60e51b81526004016102e991906116c5565b6001600160a01b03811681146110cd57600080fd5b50565b6000602082840312156110e257600080fd5b8135610d25816110b8565b60005b838110156111085781810151838201526020016110f0565b50506000910152565b600081518084526111298160208601602086016110ed565b601f01601f19169290920160200192915050565b6001600160a01b038416815260606020820181905260009061116190830185611111565b9050826040830152949350505050565b60008083601f84011261118357600080fd5b50813567ffffffffffffffff81111561119b57600080fd5b6020830191508360208260051b85010111156111b657600080fd5b9250929050565b600080600080600080606087890312156111d657600080fd5b863567ffffffffffffffff808211156111ee57600080fd5b6111fa8a838b01611171565b9098509650602089013591508082111561121357600080fd5b61121f8a838b01611171565b9096509450604089013591508082111561123857600080fd5b5061124589828a01611171565b979a9699509497509295939492505050565b60008060006060848603121561126c57600080fd5b8335611277816110b8565b92506020840135611287816110b8565b9150604084013567ffffffffffffffff8111156112a357600080fd5b8401606081870312156112b557600080fd5b809150509250925092565b6000806000606084860312156112d557600080fd5b83356112e0816110b8565b925060208401356112f0816110b8565b929592945050506040919091013590565b6000806040838503121561131457600080fd5b823561131f816110b8565b9150602083013561132f816110b8565b809150509250929050565b600181811c9082168061134e57607f821691505b60208210810361136e57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526008908201526710b6b0b730b3b2b960c11b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60008235605e198336030181126113c257600080fd5b9190910192915050565b601f821115610b2557600081815260208120601f850160051c810160208610156113f35750805b601f850160051c820191505b81811015611412578281556001016113ff565b505050505050565b8135611425816110b8565b81546001600160a01b0319166001600160a01b0391909116178155600181810160208481013536869003601e1901811261145e57600080fd5b8501803567ffffffffffffffff81111561147757600080fd5b803603838301131561148857600080fd5b61149c81611496865461133a565b866113cc565b6000601f8211600181146114d257600083156114ba57508382018501355b600019600385901b1c1916600184901b17865561152b565b600086815260209020601f19841690835b82811015611502578685018801358255938701939089019087016114e3565b50848210156115215760001960f88660031b161c198785880101351681555b50508683881b0186555b50505050505050604082013560028201555050565b6020815260008235611551816110b8565b6001600160a01b031660208381019190915283013536849003601e1901811261157957600080fd5b830160208101903567ffffffffffffffff81111561159657600080fd5b8036038213156115a557600080fd5b60606040850152806080850152808260a0860137600060a082860101526040850135606085015260a0601f19601f8301168501019250505092915050565b6000602082840312156115f557600080fd5b5051919050565b600082516113c28184602087016110ed565b6001600160a01b0383168152604060208201819052600090610d2290830184611111565b60006020828403121561164457600080fd5b81518015158114610d2557600080fd5b600083516116668184602088016110ed565b83519083019061167a8183602088016110ed565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156116ac576116ac611683565b92915050565b818103818111156116ac576116ac611683565b602081526000610d25602083018461111156fea26469706673582212209023a0dc9d4005ba44da866c5df84317757367259120dd8fc360d58a78c6411a64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000004fed5491693007f0cd49f4614ffc38ab6a04b619
-----Decoded View---------------
Arg [0] : _native (address): 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1
Arg [1] : _keeper (address): 0x4fED5491693007f0CD49f4614FFC38Ab6A04B619
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1
Arg [1] : 0000000000000000000000004fed5491693007f0cd49f4614ffc38ab6a04b619
Deployed Bytecode Sourcemap
37795:4050:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41077:282;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;38072:21;;;;;-1:-1:-1;;;;;38072:21:0;;;;;;-1:-1:-1;;;;;1486:32:1;;;1468:51;;1456:2;1441:18;38072:21:0;1322:203:1;40410:424:0;;;;;;:::i;:::-;;:::i;:::-;;41367:280;;;;;;:::i;:::-;;:::i;41655:92::-;;;;;;:::i;:::-;;:::i;40172:230::-;;;;;;:::i;:::-;;:::i;38100:21::-;;;;;-1:-1:-1;;;;;38100:21:0;;;41755:87;;;:::i;38128:23::-;;;;;-1:-1:-1;;;;;38128:23:0;;;38776:459;;;;;;:::i;:::-;;:::i;:::-;;;4298:25:1;;;4286:2;4271:18;38776:459:0;4152:177:1;37999:64:0;;;;;;:::i;:::-;;:::i;41077:282::-;41221:6;;;-1:-1:-1;;;;;41221:6:0;;;41136:14;41212:16;;;;;;;;;;;:24;;;;;;;;;;:31;;41261:29;;41254:36;;41212:31;;;;;41152:17;;41261:29;41254:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;41324:6:0;;-1:-1:-1;;;;;41324:6:0;;;41315:8;:16;;;;;;;;;;;:24;;;;;;;;;;;;;:36;;;41077:282;;41254:36;;-1:-1:-1;41077:282:0;;-1:-1:-1;;;;41077:282:0:o;40410:424::-;38364:8;;-1:-1:-1;;;;;38364:8:0;38350:10;:22;;:46;;-1:-1:-1;38390:6:0;;-1:-1:-1;;;;;38390:6:0;38376:10;:20;38350:46;38342:67;;;;-1:-1:-1;;;38342:67:0;;;;;;;:::i;:::-;;;;;;;;;40580:11;40558:19:::1;40609:218;40626:11;40622:1;:15;40609:218;;;40696:10;;40707:1;40696:13;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;40655:8;:24:::0;40664:11:::1;;40676:1;40664:14;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;40655:24:0::1;-1:-1:-1::0;;;;;40655:24:0::1;;;;;;;;;;;;:38;40680:9;;40690:1;40680:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;40655:38:0::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;40655:38:0;:54:::1;::::0;:38;:54:::1;:::i;:::-;;;;40757:9;;40767:1;40757:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;40729:56:0::1;40741:11;;40753:1;40741:14;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;40729:56:0::1;;40771:10;;40782:1;40771:13;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;40729:56;;;;;;:::i;:::-;;;;;;;;40811:3;;40609:218;;;;40547:287;40410:424:::0;;;;;;:::o;41367:280::-;-1:-1:-1;;;;;41500:16:0;;;41424:14;41500:16;;;;;;;;;;;41517:6;;;;;41500:24;;;;;;:31;;41549:29;;41542:36;;41500:31;;;;;41440:17;;41424:14;41542:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;41603:16:0;;;:8;:16;;;;;;;;;;;41620:6;;;;;41603:24;;;;;;;;;:36;;;41367:280;;41542:36;;-1:-1:-1;41367:280:0;-1:-1:-1;;41367:280:0:o;41655:92::-;38364:8;;-1:-1:-1;;;;;38364:8:0;38350:10;:22;;:46;;-1:-1:-1;38390:6:0;;-1:-1:-1;;;;;38390:6:0;38376:10;:20;38350:46;38342:67;;;;-1:-1:-1;;;38342:67:0;;;;;;;:::i;:::-;41723:6:::1;:16:::0;;-1:-1:-1;;;;;;41723:16:0::1;-1:-1:-1::0;;;;;41723:16:0;;;::::1;::::0;;;::::1;::::0;;41655:92::o;40172:230::-;38364:8;;-1:-1:-1;;;;;38364:8:0;38350:10;:22;;:46;;-1:-1:-1;38390:6:0;;-1:-1:-1;;;;;38390:6:0;38376:10;:20;38350:46;38342:67;;;;-1:-1:-1;;;38342:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;40292:20:0;;::::1;:8;:20:::0;;;::::1;::::0;;;;;;;:30;;::::1;::::0;;;;;;40325:9;;40292:42:::1;40325:9:::0;40292:30;:42:::1;:::i;:::-;;;;40374:8;-1:-1:-1::0;;;;;40350:44:0::1;40362:10;-1:-1:-1::0;;;;;40350:44:0::1;;40384:9;40350:44;;;;;;:::i;:::-;;;;;;;;40172:230:::0;;;:::o;41755:87::-;38364:8;;-1:-1:-1;;;;;38364:8:0;38350:10;:22;;:46;;-1:-1:-1;38390:6:0;;-1:-1:-1;;;;;38390:6:0;38376:10;:20;38350:46;38342:67;;;;-1:-1:-1;;;38342:67:0;;;;;;;:::i;:::-;41813:8:::1;:21:::0;;-1:-1:-1;;;;;;41813:21:0::1;::::0;;41755:87::o;38776:459::-;38865:17;38895:73;-1:-1:-1;;;;;38895:35:0;;38931:10;38951:4;38958:9;38895:35;:73::i;:::-;38979:45;38992:10;39004:8;39014:9;38979:12;:45::i;:::-;39047:41;;-1:-1:-1;;;39047:41:0;;39082:4;39047:41;;;1468:51:1;-1:-1:-1;;;;;39047:26:0;;;;;1441:18:1;;39047:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;39035:53;-1:-1:-1;39099:52:0;-1:-1:-1;;;;;39099:29:0;;39129:10;39035:53;39099:29;:52::i;:::-;39167:60;;;10231:25:1;;;10287:2;10272:18;;10265:34;;;-1:-1:-1;;;;;39167:60:0;;;;;;;;39172:10;;39167:60;;10204:18:1;39167:60:0;;;;;;;38776:459;;;;;:::o;37999:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;37999:64:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14761:248::-;14932:68;;-1:-1:-1;;;;;10568:15:1;;;14932:68:0;;;10550:34:1;10620:15;;10600:18;;;10593:43;10652:18;;;10645:34;;;14905:96:0;;14925:5;;-1:-1:-1;;;14955:27:0;10485:18:1;;14932:68:0;;;;-1:-1:-1;;14932:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;14932:68:0;-1:-1:-1;;;;;;14932:68:0;;;;;;;;;;14905:19;:96::i;:::-;14761:248;;;;:::o;39243:564::-;-1:-1:-1;;;;;39368:20:0;;;39341:24;39368:20;;;;;;;;;;;:30;;;;;;;;;;39341:57;;;;;;;;;;;;;;;;;;;;:24;;:57;;39368:30;;39341:57;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;39341:57:0;;;-1:-1:-1;;39341:57:0;;;;;;;;;;;39426:15;;39341:57;;-1:-1:-1;;;;;;39456:20:0;;39452:65;;39485:32;;-1:-1:-1;;;39485:32:0;;-1:-1:-1;;;;;10920:15:1;;;39485:32:0;;;10902:34:1;10972:15;;10952:18;;;10945:43;10837:18;;39485:32:0;10690:304:1;39452:65:0;39528:17;39548:8;:13;;;39528:33;;39581:62;39593:4;39599:8;:20;;;39632:9;39621:21;;;;;;4298:25:1;;4286:2;4271:18;;4152:177;39621:21:0;;;;;;;;;;;;;39581:11;:62::i;:::-;39574:69;;39656:41;39678:10;39690:6;39656:21;:41::i;:::-;39709:12;39726:6;-1:-1:-1;;;;;39726:11:0;39738:4;39726:17;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39708:35;;;39759:7;39754:45;;39786:6;39794:4;39775:24;;-1:-1:-1;;;39775:24:0;;;;;;;;;:::i;39754:45::-;39330:477;;;;39243:564;;;:::o;14542:211::-;14686:58;;-1:-1:-1;;;;;11802:32:1;;14686:58:0;;;11784:51:1;11851:18;;;11844:34;;;14659:86:0;;14679:5;;-1:-1:-1;;;14709:23:0;11757:18:1;;14686:58:0;11610:274:1;14659:86:0;14542:211;;;:::o;17609:716::-;18033:23;18059:69;18087:4;18059:69;;;;;;;;;;;;;;;;;18067:5;-1:-1:-1;;;;;18059:27:0;;;:69;;;;;:::i;:::-;18143:17;;18033:95;;-1:-1:-1;18143:21:0;18139:179;;18240:10;18229:30;;;;;;;;;;;;:::i;:::-;18221:85;;;;-1:-1:-1;;;18221:85:0;;12373:2:1;18221:85:0;;;12355:21:1;12412:2;12392:18;;;12385:30;12451:34;12431:18;;;12424:62;-1:-1:-1;;;12502:18:1;;;12495:40;12552:19;;18221:85:0;12171:406:1;39815:349:0;39917:17;40012:22;:5;40024:1;40027:6;40012:11;:22::i;:::-;40053:8;39981:95;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;39981:95:0;;;;;;;;;40091:54;40103:11;:6;39981:95;40103:11;:::i;:::-;40132;:6;40141:2;40132:11;:::i;:::-;40116:5;:12;:28;;;;:::i;:::-;40091:5;;:54;:11;:54::i;:::-;39954:202;;;;;;;;;:::i;:::-;;;;;;;;;;;;;39947:209;;39815:349;;;;;:::o;40842:227::-;40928:47;;-1:-1:-1;;;40928:47:0;;40960:4;40928:47;;;10902:34:1;-1:-1:-1;;;;;10972:15:1;;;10952:18;;;10945:43;40928:23:0;;;;;10837:18:1;;40928:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40979:1;40928:52;40924:138;;40997:53;-1:-1:-1;;;;;40997:25:0;;41023:7;-1:-1:-1;;40997:25:0;:53::i;:::-;40842:227;;:::o;9255:229::-;9392:12;9424:52;9446:6;9454:4;9460:1;9463:12;9424:21;:52::i;:::-;9417:59;;9255:229;;;;;;:::o;27431:2779::-;27572:12;27626:7;27610:12;27626:7;27620:2;27610:12;:::i;:::-;:23;;27602:50;;;;-1:-1:-1;;;27602:50:0;;13676:2:1;27602:50:0;;;13658:21:1;13715:2;13695:18;;;13688:30;-1:-1:-1;;;13734:18:1;;;13727:44;13788:18;;27602:50:0;13474:338:1;27602:50:0;27688:16;27697:7;27688:6;:16;:::i;:::-;27671:6;:13;:33;;27663:63;;;;-1:-1:-1;;;27663:63:0;;14019:2:1;27663:63:0;;;14001:21:1;14058:2;14038:18;;;14031:30;-1:-1:-1;;;14077:18:1;;;14070:47;14134:18;;27663:63:0;13817:341:1;27663:63:0;27739:22;27805:15;;27834:1933;;;;29911:4;29905:11;29892:24;;30092:1;30081:9;30074:20;30142:4;30131:9;30127:20;30121:4;30114:34;27798:2365;;27834:1933;28011:4;28005:11;27992:24;;28648:2;28639:7;28635:16;29020:9;29013:17;29007:4;29003:28;28991:9;28980;28976:25;28972:60;29069:7;29065:2;29061:16;29318:6;29304:9;29297:17;29291:4;29287:28;29275:9;29267:6;29263:22;29259:57;29255:70;29097:426;29352:3;29348:2;29345:11;29097:426;;;29494:9;;29483:21;;29394:4;29386:13;;;;29427;29097:426;;;-1:-1:-1;;29543:26:0;;;29747:2;29730:11;-1:-1:-1;;29726:25:0;29720:4;29713:39;-1:-1:-1;27798:2365:0;-1:-1:-1;30193:9:0;27431:2779;-1:-1:-1;;;;27431:2779:0:o;15278:616::-;15642:10;;;15641:62;;-1:-1:-1;15658:39:0;;-1:-1:-1;;;15658:39:0;;15682:4;15658:39;;;10902:34:1;-1:-1:-1;;;;;10972:15:1;;;10952:18;;;10945:43;15658:15:0;;;;;10837:18:1;;15658:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;15641:62;15619:166;;;;-1:-1:-1;;;15619:166:0;;14365:2:1;15619:166:0;;;14347:21:1;14404:2;14384:18;;;14377:30;14443:34;14423:18;;;14416:62;-1:-1:-1;;;14494:18:1;;;14487:52;14556:19;;15619:166:0;14163:418:1;15619:166:0;15823:62;;-1:-1:-1;;;;;11802:32:1;;15823:62:0;;;11784:51:1;11851:18;;;11844:34;;;15796:90:0;;15816:5;;-1:-1:-1;;;15846:22:0;11757:18:1;;15823:62:0;11610:274:1;10375:510:0;10545:12;10603:5;10578:21;:30;;10570:81;;;;-1:-1:-1;;;10570:81:0;;14788:2:1;10570:81:0;;;14770:21:1;14827:2;14807:18;;;14800:30;14866:34;14846:18;;;14839:62;-1:-1:-1;;;14917:18:1;;;14910:36;14963:19;;10570:81:0;14586:402:1;10570:81:0;-1:-1:-1;;;;;6805:19:0;;;10662:60;;;;-1:-1:-1;;;10662:60:0;;15195:2:1;10662:60:0;;;15177:21:1;15234:2;15214:18;;;15207:30;15273:31;15253:18;;;15246:59;15322:18;;10662:60:0;14993:353:1;10662:60:0;10736:12;10750:23;10777:6;-1:-1:-1;;;;;10777:11:0;10796:5;10803:4;10777:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10735:73;;;;10826:51;10843:7;10852:10;10864:12;10826:16;:51::i;:::-;10819:58;10375:510;-1:-1:-1;;;;;;;10375:510:0:o;13061:762::-;13211:12;13240:7;13236:580;;;-1:-1:-1;13271:10:0;13264:17;;13236:580;13385:17;;:21;13381:424;;13633:10;13627:17;13694:15;13681:10;13677:2;13673:19;13666:44;13381:424;13776:12;13769:20;;-1:-1:-1;;;13769:20:0;;;;;;;;:::i;14:131:1:-;-1:-1:-1;;;;;89:31:1;;79:42;;69:70;;135:1;132;125:12;69:70;14:131;:::o;150:247::-;209:6;262:2;250:9;241:7;237:23;233:32;230:52;;;278:1;275;268:12;230:52;317:9;304:23;336:31;361:5;336:31;:::i;402:250::-;487:1;497:113;511:6;508:1;505:13;497:113;;;587:11;;;581:18;568:11;;;561:39;533:2;526:10;497:113;;;-1:-1:-1;;644:1:1;626:16;;619:27;402:250::o;657:270::-;698:3;736:5;730:12;763:6;758:3;751:19;779:76;848:6;841:4;836:3;832:14;825:4;818:5;814:16;779:76;:::i;:::-;909:2;888:15;-1:-1:-1;;884:29:1;875:39;;;;916:4;871:50;;657:270;-1:-1:-1;;657:270:1:o;932:385::-;-1:-1:-1;;;;;1135:32:1;;1117:51;;1204:2;1199;1184:18;;1177:30;;;-1:-1:-1;;1224:44:1;;1249:18;;1241:6;1224:44;:::i;:::-;1216:52;;1304:6;1299:2;1288:9;1284:18;1277:34;932:385;;;;;;:::o;1530:367::-;1593:8;1603:6;1657:3;1650:4;1642:6;1638:17;1634:27;1624:55;;1675:1;1672;1665:12;1624:55;-1:-1:-1;1698:20:1;;1741:18;1730:30;;1727:50;;;1773:1;1770;1763:12;1727:50;1810:4;1802:6;1798:17;1786:29;;1870:3;1863:4;1853:6;1850:1;1846:14;1838:6;1834:27;1830:38;1827:47;1824:67;;;1887:1;1884;1877:12;1824:67;1530:367;;;;;:::o;1902:1116::-;2088:6;2096;2104;2112;2120;2128;2181:2;2169:9;2160:7;2156:23;2152:32;2149:52;;;2197:1;2194;2187:12;2149:52;2237:9;2224:23;2266:18;2307:2;2299:6;2296:14;2293:34;;;2323:1;2320;2313:12;2293:34;2362:70;2424:7;2415:6;2404:9;2400:22;2362:70;:::i;:::-;2451:8;;-1:-1:-1;2336:96:1;-1:-1:-1;2539:2:1;2524:18;;2511:32;;-1:-1:-1;2555:16:1;;;2552:36;;;2584:1;2581;2574:12;2552:36;2623:72;2687:7;2676:8;2665:9;2661:24;2623:72;:::i;:::-;2714:8;;-1:-1:-1;2597:98:1;-1:-1:-1;2802:2:1;2787:18;;2774:32;;-1:-1:-1;2818:16:1;;;2815:36;;;2847:1;2844;2837:12;2815:36;;2886:72;2950:7;2939:8;2928:9;2924:24;2886:72;:::i;:::-;1902:1116;;;;-1:-1:-1;1902:1116:1;;-1:-1:-1;1902:1116:1;;2977:8;;1902:1116;-1:-1:-1;;;1902:1116:1:o;3023:663::-;3128:6;3136;3144;3197:2;3185:9;3176:7;3172:23;3168:32;3165:52;;;3213:1;3210;3203:12;3165:52;3252:9;3239:23;3271:31;3296:5;3271:31;:::i;:::-;3321:5;-1:-1:-1;3378:2:1;3363:18;;3350:32;3391:33;3350:32;3391:33;:::i;:::-;3443:7;-1:-1:-1;3501:2:1;3486:18;;3473:32;3528:18;3517:30;;3514:50;;;3560:1;3557;3550:12;3514:50;3583:22;;3639:2;3621:16;;;3617:25;3614:45;;;3655:1;3652;3645:12;3614:45;3678:2;3668:12;;;3023:663;;;;;:::o;3691:456::-;3768:6;3776;3784;3837:2;3825:9;3816:7;3812:23;3808:32;3805:52;;;3853:1;3850;3843:12;3805:52;3892:9;3879:23;3911:31;3936:5;3911:31;:::i;:::-;3961:5;-1:-1:-1;4018:2:1;4003:18;;3990:32;4031:33;3990:32;4031:33;:::i;:::-;3691:456;;4083:7;;-1:-1:-1;;;4137:2:1;4122:18;;;;4109:32;;3691:456::o;4334:388::-;4402:6;4410;4463:2;4451:9;4442:7;4438:23;4434:32;4431:52;;;4479:1;4476;4469:12;4431:52;4518:9;4505:23;4537:31;4562:5;4537:31;:::i;:::-;4587:5;-1:-1:-1;4644:2:1;4629:18;;4616:32;4657:33;4616:32;4657:33;:::i;:::-;4709:7;4699:17;;;4334:388;;;;;:::o;4727:380::-;4806:1;4802:12;;;;4849;;;4870:61;;4924:4;4916:6;4912:17;4902:27;;4870:61;4977:2;4969:6;4966:14;4946:18;4943:38;4940:161;;5023:10;5018:3;5014:20;5011:1;5004:31;5058:4;5055:1;5048:15;5086:4;5083:1;5076:15;4940:161;;4727:380;;;:::o;5112:331::-;5314:2;5296:21;;;5353:1;5333:18;;;5326:29;-1:-1:-1;;;5386:2:1;5371:18;;5364:38;5434:2;5419:18;;5112:331::o;5448:127::-;5509:10;5504:3;5500:20;5497:1;5490:31;5540:4;5537:1;5530:15;5564:4;5561:1;5554:15;5580:325;5674:4;5732:11;5719:25;5826:2;5822:7;5811:8;5795:14;5791:29;5787:43;5767:18;5763:68;5753:96;;5845:1;5842;5835:12;5753:96;5866:33;;;;;5580:325;-1:-1:-1;;5580:325:1:o;6035:544::-;6136:2;6131:3;6128:11;6125:448;;;6172:1;6197:5;6193:2;6186:17;6242:4;6238:2;6228:19;6312:2;6300:10;6296:19;6293:1;6289:27;6283:4;6279:38;6348:4;6336:10;6333:20;6330:47;;;-1:-1:-1;6371:4:1;6330:47;6426:2;6421:3;6417:12;6414:1;6410:20;6404:4;6400:31;6390:41;;6481:82;6499:2;6492:5;6489:13;6481:82;;;6544:17;;;6525:1;6514:13;6481:82;;;6485:3;;;6035:544;;;:::o;6755:1990::-;6922:5;6909:19;6937:33;6962:7;6937:33;:::i;:::-;6999:11;;-1:-1:-1;;;;;;6995:54:1;-1:-1:-1;;;;;7051:33:1;;;;6992:93;6979:107;;7081:1;7133:13;;;7165:2;7215:14;;;7202:28;7281:14;7277:26;;;-1:-1:-1;;7273:40:1;7249:65;;7239:93;;7328:1;7325;7318:12;7239:93;7353:30;;7406:18;;7447;7436:30;;7433:50;;;7479:1;7476;7469:12;7433:50;7534:6;7518:14;7514:27;7509:2;7503:4;7499:13;7495:47;7492:67;;;7555:1;7552;7545:12;7492:67;7568:108;7669:6;7623:44;7655:10;7649:17;7623:44;:::i;:::-;7611:10;7568:108;:::i;:::-;7702:1;7730:2;7722:6;7719:14;7747:1;7742:658;;;;8446:1;8463:6;8460:108;;;-1:-1:-1;8528:20:1;;;8524:29;;8511:43;8460:108;-1:-1:-1;;6712:1:1;6708:11;;;6704:24;6700:29;6690:40;6736:1;6732:11;;;6687:57;8581:89;;7712:968;;7742:658;5982:1;5975:14;;;6019:4;6006:18;;-1:-1:-1;;7778:20:1;;;7887:9;7909:236;7923:7;7920:1;7917:14;7909:236;;;8014:20;;;8010:29;;7997:43;7982:59;;8113:18;;;;8068:15;;;;7939:10;;7909:236;;;7913:3;8173:6;8164:7;8161:19;8158:175;;;8313:1;8309:6;8303:3;8294:6;8291:1;8287:14;8283:24;8279:37;8275:42;8269:2;8257:9;8251:4;8247:20;8243:29;8230:43;8226:92;8218:6;8211:108;8158:175;;;8386:2;8377:6;8373:2;8369:15;8365:24;8353:10;8346:44;7712:968;;;;;;;;8734:2;8727:5;8723:14;8710:28;8706:1;8700:4;8696:12;8689:50;6755:1990;;:::o;8750:1113::-;8933:2;8922:9;8915:21;8896:4;8971:6;8958:20;8987:31;9012:5;8987:31;:::i;:::-;-1:-1:-1;;;;;9054:31:1;9049:2;9034:18;;;9027:59;;;;9134:15;;9121:29;9201:14;9197:27;;;-1:-1:-1;;9193:41:1;9169:66;;9159:94;;9249:1;9246;9239:12;9159:94;9277:31;;9389:2;9376:16;;;9331:21;9415:18;9404:30;;9401:50;;;9447:1;9444;9437:12;9401:50;9496:6;9480:14;9476:27;9467:7;9463:41;9460:61;;;9517:1;9514;9507:12;9460:61;9557:4;9552:2;9541:9;9537:18;9530:32;9599:6;9593:3;9582:9;9578:19;9571:35;9658:6;9649:7;9643:3;9632:9;9628:19;9615:50;9715:1;9709:3;9700:6;9689:9;9685:22;9681:32;9674:43;9780:2;9772:6;9768:15;9755:29;9748:4;9737:9;9733:20;9726:59;9853:3;9846:2;9842:7;9837:2;9829:6;9825:15;9821:29;9810:9;9806:45;9802:55;9794:63;;;;8750:1113;;;;:::o;9868:184::-;9938:6;9991:2;9979:9;9970:7;9966:23;9962:32;9959:52;;;10007:1;10004;9997:12;9959:52;-1:-1:-1;10030:16:1;;9868:184;-1:-1:-1;9868:184:1:o;10999:287::-;11128:3;11166:6;11160:13;11182:66;11241:6;11236:3;11229:4;11221:6;11217:17;11182:66;:::i;11291:314::-;-1:-1:-1;;;;;11466:32:1;;11448:51;;11535:2;11530;11515:18;;11508:30;;;-1:-1:-1;;11555:44:1;;11580:18;;11572:6;11555:44;:::i;11889:277::-;11956:6;12009:2;11997:9;11988:7;11984:23;11980:32;11977:52;;;12025:1;12022;12015:12;11977:52;12057:9;12051:16;12110:5;12103:13;12096:21;12089:5;12086:32;12076:60;;12132:1;12129;12122:12;12582:492;12757:3;12795:6;12789:13;12811:66;12870:6;12865:3;12858:4;12850:6;12846:17;12811:66;:::i;:::-;12940:13;;12899:16;;;;12962:70;12940:13;12899:16;13009:4;12997:17;;12962:70;:::i;:::-;13048:20;;12582:492;-1:-1:-1;;;;12582:492:1:o;13079:127::-;13140:10;13135:3;13131:20;13128:1;13121:31;13171:4;13168:1;13161:15;13195:4;13192:1;13185:15;13211:125;13276:9;;;13297:10;;;13294:36;;;13310:18;;:::i;:::-;13211:125;;;;:::o;13341:128::-;13408:9;;;13429:11;;;13426:37;;;13443:18;;:::i;15351:219::-;15500:2;15489:9;15482:21;15463:4;15520:44;15560:2;15549:9;15545:18;15537:6;15520:44;:::i
Swarm Source
ipfs://9023a0dc9d4005ba44da866c5df84317757367259120dd8fc360d58a78c6411a
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.