Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
StrataSwapStrategy
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
/**
* @title StrataSwapStrategy
* @notice Strategy for swapping PT-srUSDe tokens through StrataSwap contract
* @dev Simplified strategy without validation - trusts the StrataSwap contract
*/
contract StrataSwapStrategy {
using SafeERC20 for IERC20;
error SwapFailed(address router, string reason);
address private immutable strataSwap;
constructor(address _strataSwap) {
strataSwap = _strataSwap;
}
/**
* @notice Swaps token0 for token1 via StrataSwap contract
* @dev Returns amount of tokens received. Router parameter is ignored - always uses strataSwap from constructor.
* @param token0 Input token (PT-srUSDe)
* @param token1 Output token
* @param swapData Calldata for StrataSwap.swap()
* @return output Amount of token1 received
*/
function swap(IERC20 token0, IERC20 token1, address /* swapRouter */, bytes calldata swapData) external returns (uint output) {
// swapRouter parameter is ignored - we always use our trusted strataSwap contract
// 1. Get initial balance
uint amountBefore = token1.balanceOf(address(this));
// 2. Approve token0 to StrataSwap
_approveSwap(token0, strataSwap);
// 3. Execute swap via StrataSwap
(bool success, bytes memory result) = strataSwap.call(swapData);
if (!success) {
string memory errorMessage = result.length > 0
? abi.decode(result, (string))
: "Unknown error";
revert SwapFailed(strataSwap, errorMessage);
}
// 4. Get final balance and calculate output
uint amountAfter = token1.balanceOf(address(this));
output = amountAfter - amountBefore;
}
function _approveSwap(IERC20 token0, address exchange) internal {
if (token0.allowance(address(this), address(exchange)) == 0) {
token0.forceApprove(exchange, type(uint256).max);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../utils/introspection/IERC165.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../token/ERC20/IERC20.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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 value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` 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 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
import {Address} from "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 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 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @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).
*
* This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @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).
*
* This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol)
pragma solidity ^0.8.20;
import {Errors} from "./Errors.sol";
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert Errors.InsufficientBalance(address(this).balance, amount);
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert Errors.FailedCall();
}
}
/**
* @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 or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {Errors.FailedCall} error.
*
* 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.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @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`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert Errors.InsufficientBalance(address(this).balance, value);
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case
* of an unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {Errors.FailedCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.
*/
function _revert(bytes memory returndata) 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
assembly ("memory-safe") {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert Errors.FailedCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of common custom errors used in multiple contracts
*
* IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.
* It is recommended to avoid relying on the error API for critical functionality.
*
* _Available since v5.1._
*/
library Errors {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error InsufficientBalance(uint256 balance, uint256 needed);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedCall();
/**
* @dev The deployment failed.
*/
error FailedDeployment();
/**
* @dev A necessary precompile is missing.
*/
error MissingPrecompile(address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* 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[ERC 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);
}{
"viaIR": true,
"evmVersion": "paris",
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_strataSwap","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"string","name":"reason","type":"string"}],"name":"SwapFailed","type":"error"},{"inputs":[{"internalType":"contract IERC20","name":"token0","type":"address"},{"internalType":"contract IERC20","name":"token1","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bytes","name":"swapData","type":"bytes"}],"name":"swap","outputs":[{"internalType":"uint256","name":"output","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a0604052346200004e576200001e620000186200012d565b62000153565b6200002862000054565b610bb662000159823960805181818161060101528181610629015261074c0152610bb690f35b6200005a565b60405190565b600080fd5b601f801991011690565b634e487b7160e01b600052604160045260246000fd5b906200008b906200005f565b810190811060018060401b03821117620000a457604052565b62000069565b90620000c1620000b962000054565b92836200007f565b565b600080fd5b60018060a01b031690565b620000de90620000c8565b90565b620000ec81620000d3565b03620000f457565b600080fd5b905051906200010882620000e1565b565b9060208282031262000127576200012491600001620000f9565b90565b620000c3565b6200015062000d0f803803806200014481620000aa565b9283398101906200010a565b90565b60805256fe60806040526004361015610013575b6101c1565b61001e60003561002d565b6332ef83140361000e57610188565b60e01c90565b60405190565b600080fd5b600080fd5b600080fd5b60018060a01b031690565b61005c90610048565b90565b61006890610053565b90565b6100748161005f565b0361007b57565b600080fd5b9050359061008d8261006b565b565b61009881610053565b0361009f57565b600080fd5b905035906100b18261008f565b565b600080fd5b600080fd5b600080fd5b909182601f830112156100fc5781359167ffffffffffffffff83116100f75760200192600183028401116100f257565b6100bd565b6100b8565b6100b3565b9060808282031261015d576101198160008401610080565b926101278260208501610080565b9261013583604083016100a4565b92606082013567ffffffffffffffff81116101585761015492016100c2565b9091565b610043565b61003e565b90565b61016e90610162565b9052565b919061018690600060208501940190610165565b565b346101bc576101b86101a761019e366004610101565b93929092610594565b6101af610033565b91829182610172565b0390f35b610039565b600080fd5b600090565b90565b6101e26101dd6101e792610048565b6101cb565b610048565b90565b6101f3906101ce565b90565b6101ff906101ea565b90565b61020b906101ea565b90565b601f801991011690565b634e487b7160e01b600052604160045260246000fd5b906102389061020e565b810190811067ffffffffffffffff82111761025257604052565b610218565b60e01b90565b61026681610162565b0361026d57565b600080fd5b9050519061027f8261025d565b565b9060208282031261029b5761029891600001610272565b90565b61003e565b6102a990610053565b9052565b91906102c1906000602085019401906102a0565b565b6102cb610033565b3d6000823e3d90fd5b905090565b90826000939282370152565b9091826102f5816102fc936102d4565b80936102d9565b0190565b909161030b926102e5565b90565b9061032161031a610033565b928361022e565b565b67ffffffffffffffff81116103415761033d60209161020e565b0190565b610218565b9061035861035383610323565b61030e565b918252565b606090565b3d60001461037f576103733d610346565b903d6000602084013e5b565b61038761035d565b9061037d565b151590565b5190565b90565b6103ad6103a86103b292610396565b6101cb565b610162565b90565b67ffffffffffffffff81116103d3576103cf60209161020e565b0190565b610218565b906103ea6103e5836103b5565b61030e565b918252565b60007f556e6b6e6f776e206572726f7200000000000000000000000000000000000000910152565b610421600d6103d8565b9061042e602083016103ef565b565b610438610417565b90565b600080fd5b60005b838110610454575050906000910152565b806020918301518185015201610443565b9092919261047a610475826103b5565b61030e565b938185526020850190828401116104965761049492610440565b565b61043b565b9080601f830112156104b9578160206104b693519101610465565b90565b6100b3565b906020828203126104ef57600082015167ffffffffffffffff81116104ea576104e7920161049b565b90565b610043565b61003e565b5190565b60209181520190565b61052061052960209361052e93610517816104f4565b938480936104f8565b95869101610440565b61020e565b0190565b9161055692610549604082019360008301906102a0565b6020818403910152610501565b90565b634e487b7160e01b600052601160045260246000fd5b61057e61058491939293610162565b92610162565b820391821161058f57565b610559565b9390926105e292506105a46101c6565b5060206105b0856101f6565b6370a08231906105d76105c230610202565b926105cb610033565b97889485938493610257565b8352600483016102ad565b03915afa9182156107cc57610626600094938594859161079e575b50967f0000000000000000000000000000000000000000000000000000000000000000906107f5565b827f00000000000000000000000000000000000000000000000000000000000000009261065d610654610033565b93849283610300565b03925af161067361066c610362565b911561038d565b61070b57509060206106876106b9936101f6565b6370a08231906106ae61069930610202565b926106a2610033565b96879485938493610257565b8352600483016102ad565b03915afa8015610706576106d5926000916106d8575b5061056f565b90565b6106f9915060203d81116106ff575b6106f1818361022e565b810190610281565b386106cf565b503d6106e7565b6102c3565b61071481610392565b6107276107216000610399565b91610162565b116000146107905761074990602061073e82610392565b8183010191016104be565b5b7f000000000000000000000000000000000000000000000000000000000000000061078c610776610033565b928392637982f10d60e11b845260048401610532565b0390fd5b50610799610430565b61074a565b6107bf915060203d81116107c5575b6107b7818361022e565b810190610281565b386105fd565b503d6107ad565b6102c3565b9160206107f39294936107ec604082019660008301906102a0565b01906102a0565b565b906107ff826101f6565b602063dd62ed3e9161081030610202565b9061082d8594610838610821610033565b96879586948594610257565b8452600484016107d1565b03915afa9081156108ac5760009161087e575b5061085f6108596000610399565b91610162565b14610869575b5050565b610877919060001991610937565b3880610865565b61089f915060203d81116108a5575b610897818361022e565b810190610281565b3861084b565b503d61088d565b6102c3565b63ffffffff1690565b63ffffffff60e01b1690565b6108da6108d56108df926108b1565b610257565b6108ba565b90565b9160206109049294936108fd604082019660008301906102a0565b0190610165565b565b61090f90610399565b9052565b91602061093592949361092e604082019660008301906102a0565b0190610906565b565b909161097a60049161096b63095ea7b36109528793916108c6565b9261095b610033565b95869460208601908152016108e2565b6020820181038252038261022e565b9061098f610989828490610a18565b1561038d565b610999575b505050565b6109e760046109ec946109e284916109d363095ea7b36109ba6000916108c6565b926109c3610033565b9687946020860190815201610913565b6020820181038252038361022e565b610abf565b610abf565b388080610994565b600090565b90565b610a10610a0b610a15926109f9565b6101cb565b610162565b90565b906000602091610a266109f4565b50610a2f6109f4565b50610a386101c6565b50610a416101c6565b50828151910182855af13d91600051919283610a5e575b50505090565b90919250610a75610a6f6000610399565b91610162565b14600014610aa557610a8791506101f6565b3b610a9b610a956000610399565b91610162565b115b388080610a58565b50610ab9610ab360016109fc565b91610162565b14610a9d565b906000602091610acd6101c6565b50610ad66101c6565b50828151910182855af115610b74573d60005190610afd610af76000610399565b91610162565b14600014610b5a5750610b0f816101f6565b3b610b23610b1d6000610399565b91610162565b145b610b2c5750565b610b38610b56916101f6565b610b40610033565b918291635274afe760e01b8352600483016102ad565b0390fd5b610b6d610b6760016109fc565b91610162565b1415610b25565b6040513d6000823e3d90fdfea26469706673582212203bf78cd738c876c70e33765b2b4544817c18653e6054c203a1cab1da392bcf2464736f6c6343000818003300000000000000000000000039031294b8ec800fac73ae8918835d42ae6f74ee
Deployed Bytecode
0x60806040526004361015610013575b6101c1565b61001e60003561002d565b6332ef83140361000e57610188565b60e01c90565b60405190565b600080fd5b600080fd5b600080fd5b60018060a01b031690565b61005c90610048565b90565b61006890610053565b90565b6100748161005f565b0361007b57565b600080fd5b9050359061008d8261006b565b565b61009881610053565b0361009f57565b600080fd5b905035906100b18261008f565b565b600080fd5b600080fd5b600080fd5b909182601f830112156100fc5781359167ffffffffffffffff83116100f75760200192600183028401116100f257565b6100bd565b6100b8565b6100b3565b9060808282031261015d576101198160008401610080565b926101278260208501610080565b9261013583604083016100a4565b92606082013567ffffffffffffffff81116101585761015492016100c2565b9091565b610043565b61003e565b90565b61016e90610162565b9052565b919061018690600060208501940190610165565b565b346101bc576101b86101a761019e366004610101565b93929092610594565b6101af610033565b91829182610172565b0390f35b610039565b600080fd5b600090565b90565b6101e26101dd6101e792610048565b6101cb565b610048565b90565b6101f3906101ce565b90565b6101ff906101ea565b90565b61020b906101ea565b90565b601f801991011690565b634e487b7160e01b600052604160045260246000fd5b906102389061020e565b810190811067ffffffffffffffff82111761025257604052565b610218565b60e01b90565b61026681610162565b0361026d57565b600080fd5b9050519061027f8261025d565b565b9060208282031261029b5761029891600001610272565b90565b61003e565b6102a990610053565b9052565b91906102c1906000602085019401906102a0565b565b6102cb610033565b3d6000823e3d90fd5b905090565b90826000939282370152565b9091826102f5816102fc936102d4565b80936102d9565b0190565b909161030b926102e5565b90565b9061032161031a610033565b928361022e565b565b67ffffffffffffffff81116103415761033d60209161020e565b0190565b610218565b9061035861035383610323565b61030e565b918252565b606090565b3d60001461037f576103733d610346565b903d6000602084013e5b565b61038761035d565b9061037d565b151590565b5190565b90565b6103ad6103a86103b292610396565b6101cb565b610162565b90565b67ffffffffffffffff81116103d3576103cf60209161020e565b0190565b610218565b906103ea6103e5836103b5565b61030e565b918252565b60007f556e6b6e6f776e206572726f7200000000000000000000000000000000000000910152565b610421600d6103d8565b9061042e602083016103ef565b565b610438610417565b90565b600080fd5b60005b838110610454575050906000910152565b806020918301518185015201610443565b9092919261047a610475826103b5565b61030e565b938185526020850190828401116104965761049492610440565b565b61043b565b9080601f830112156104b9578160206104b693519101610465565b90565b6100b3565b906020828203126104ef57600082015167ffffffffffffffff81116104ea576104e7920161049b565b90565b610043565b61003e565b5190565b60209181520190565b61052061052960209361052e93610517816104f4565b938480936104f8565b95869101610440565b61020e565b0190565b9161055692610549604082019360008301906102a0565b6020818403910152610501565b90565b634e487b7160e01b600052601160045260246000fd5b61057e61058491939293610162565b92610162565b820391821161058f57565b610559565b9390926105e292506105a46101c6565b5060206105b0856101f6565b6370a08231906105d76105c230610202565b926105cb610033565b97889485938493610257565b8352600483016102ad565b03915afa9182156107cc57610626600094938594859161079e575b50967f00000000000000000000000039031294b8ec800fac73ae8918835d42ae6f74ee906107f5565b827f00000000000000000000000039031294b8ec800fac73ae8918835d42ae6f74ee9261065d610654610033565b93849283610300565b03925af161067361066c610362565b911561038d565b61070b57509060206106876106b9936101f6565b6370a08231906106ae61069930610202565b926106a2610033565b96879485938493610257565b8352600483016102ad565b03915afa8015610706576106d5926000916106d8575b5061056f565b90565b6106f9915060203d81116106ff575b6106f1818361022e565b810190610281565b386106cf565b503d6106e7565b6102c3565b61071481610392565b6107276107216000610399565b91610162565b116000146107905761074990602061073e82610392565b8183010191016104be565b5b7f00000000000000000000000039031294b8ec800fac73ae8918835d42ae6f74ee61078c610776610033565b928392637982f10d60e11b845260048401610532565b0390fd5b50610799610430565b61074a565b6107bf915060203d81116107c5575b6107b7818361022e565b810190610281565b386105fd565b503d6107ad565b6102c3565b9160206107f39294936107ec604082019660008301906102a0565b01906102a0565b565b906107ff826101f6565b602063dd62ed3e9161081030610202565b9061082d8594610838610821610033565b96879586948594610257565b8452600484016107d1565b03915afa9081156108ac5760009161087e575b5061085f6108596000610399565b91610162565b14610869575b5050565b610877919060001991610937565b3880610865565b61089f915060203d81116108a5575b610897818361022e565b810190610281565b3861084b565b503d61088d565b6102c3565b63ffffffff1690565b63ffffffff60e01b1690565b6108da6108d56108df926108b1565b610257565b6108ba565b90565b9160206109049294936108fd604082019660008301906102a0565b0190610165565b565b61090f90610399565b9052565b91602061093592949361092e604082019660008301906102a0565b0190610906565b565b909161097a60049161096b63095ea7b36109528793916108c6565b9261095b610033565b95869460208601908152016108e2565b6020820181038252038261022e565b9061098f610989828490610a18565b1561038d565b610999575b505050565b6109e760046109ec946109e284916109d363095ea7b36109ba6000916108c6565b926109c3610033565b9687946020860190815201610913565b6020820181038252038361022e565b610abf565b610abf565b388080610994565b600090565b90565b610a10610a0b610a15926109f9565b6101cb565b610162565b90565b906000602091610a266109f4565b50610a2f6109f4565b50610a386101c6565b50610a416101c6565b50828151910182855af13d91600051919283610a5e575b50505090565b90919250610a75610a6f6000610399565b91610162565b14600014610aa557610a8791506101f6565b3b610a9b610a956000610399565b91610162565b115b388080610a58565b50610ab9610ab360016109fc565b91610162565b14610a9d565b906000602091610acd6101c6565b50610ad66101c6565b50828151910182855af115610b74573d60005190610afd610af76000610399565b91610162565b14600014610b5a5750610b0f816101f6565b3b610b23610b1d6000610399565b91610162565b145b610b2c5750565b610b38610b56916101f6565b610b40610033565b918291635274afe760e01b8352600483016102ad565b0390fd5b610b6d610b6760016109fc565b91610162565b1415610b25565b6040513d6000823e3d90fdfea26469706673582212203bf78cd738c876c70e33765b2b4544817c18653e6054c203a1cab1da392bcf2464736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000039031294b8ec800fac73ae8918835d42ae6f74ee
-----Decoded View---------------
Arg [0] : _strataSwap (address): 0x39031294b8eC800faC73aE8918835D42Ae6F74EE
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000039031294b8ec800fac73ae8918835d42ae6f74ee
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.