Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
SimpleSwap
Compiler Version
v0.7.5+commit.eb77ed08
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: ISC pragma solidity 0.7.5; pragma abicoder v2; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "../lib/Utils.sol"; import "./IRouter.sol"; import "../lib/weth/IWETH.sol"; import "../fee/FeeModel.sol"; import "../fee/IFeeClaimer.sol"; contract SimpleSwap is FeeModel, IRouter { using SafeMath for uint256; address public immutable augustusRFQ; /*solhint-disable no-empty-blocks*/ constructor( uint256 _partnerSharePercent, uint256 _maxFeePercent, IFeeClaimer _feeClaimer, address _augustusRFQ ) public FeeModel(_partnerSharePercent, _maxFeePercent, _feeClaimer) { augustusRFQ = _augustusRFQ; } /*solhint-enable no-empty-blocks*/ function initialize(bytes calldata) external override { revert("METHOD NOT IMPLEMENTED"); } function getKey() external pure override returns (bytes32) { return keccak256(abi.encodePacked("SIMPLE_SWAP_ROUTER", "1.0.0")); } function simpleSwap(Utils.SimpleData memory data) public payable returns (uint256 receivedAmount) { require(data.deadline >= block.timestamp, "Deadline breached"); address payable beneficiary = data.beneficiary == address(0) ? msg.sender : data.beneficiary; receivedAmount = performSimpleSwap( data.callees, data.exchangeData, data.startIndexes, data.values, data.fromToken, data.toToken, data.fromAmount, data.toAmount, data.expectedAmount, data.partner, data.feePercent, data.permit, beneficiary ); emit SwappedV3( data.uuid, data.partner, data.feePercent, msg.sender, beneficiary, data.fromToken, data.toToken, data.fromAmount, receivedAmount, data.expectedAmount ); return receivedAmount; } function simpleBuy(Utils.SimpleData calldata data) external payable { require(data.deadline >= block.timestamp, "Deadline breached"); address payable beneficiary = data.beneficiary == address(0) ? msg.sender : data.beneficiary; (uint256 receivedAmount, uint256 remainingAmount) = performSimpleBuy( data.callees, data.exchangeData, data.startIndexes, data.values, data.fromToken, data.toToken, data.fromAmount, data.toAmount, data.expectedAmount, data.partner, data.feePercent, data.permit, beneficiary ); emit BoughtV3( data.uuid, data.partner, data.feePercent, msg.sender, beneficiary, data.fromToken, data.toToken, data.fromAmount.sub(remainingAmount), receivedAmount, data.expectedAmount ); } function performSimpleSwap( address[] memory callees, bytes memory exchangeData, uint256[] memory startIndexes, uint256[] memory values, address fromToken, address toToken, uint256 fromAmount, uint256 toAmount, uint256 expectedAmount, address payable partner, uint256 feePercent, bytes memory permit, address payable beneficiary ) private returns (uint256 receivedAmount) { require(msg.value == (fromToken == Utils.ethAddress() ? fromAmount : 0), "Incorrect msg.value"); require(toAmount > 0, "toAmount is too low"); require(callees.length + 1 == startIndexes.length, "Start indexes must be 1 greater then number of callees"); require(callees.length == values.length, "callees and values must have same length"); //If source token is not ETH than transfer required amount of tokens //from sender to this contract transferTokensFromProxy(fromToken, fromAmount, permit); performCalls(callees, exchangeData, startIndexes, values); receivedAmount = Utils.tokenBalance(toToken, address(this)); require(receivedAmount >= toAmount, "Received amount of tokens are less then expected"); if (!_isTakeFeeFromSrcToken(feePercent)) { // take fee from dest token takeToTokenFeeSlippageAndTransfer( toToken, expectedAmount, receivedAmount, beneficiary, partner, feePercent ); } else { // Transfer toToken to beneficiary Utils.transferTokens(toToken, beneficiary, receivedAmount); // take fee from source token takeFromTokenFee(fromToken, fromAmount, partner, feePercent); } return receivedAmount; } function performSimpleBuy( address[] memory callees, bytes memory exchangeData, uint256[] memory startIndexes, uint256[] memory values, address fromToken, address toToken, uint256 fromAmount, uint256 toAmount, uint256 expectedAmount, address payable partner, uint256 feePercent, bytes memory permit, address payable beneficiary ) private returns (uint256 receivedAmount, uint256 remainingAmount) { require(msg.value == (fromToken == Utils.ethAddress() ? fromAmount : 0), "Incorrect msg.value"); require(toAmount > 0, "toAmount is too low"); require(callees.length + 1 == startIndexes.length, "Start indexes must be 1 greater then number of callees"); require(callees.length == values.length, "callees and values must have same length"); //If source token is not ETH than transfer required amount of tokens //from sender to this contract transferTokensFromProxy(fromToken, fromAmount, permit); performCalls(callees, exchangeData, startIndexes, values); receivedAmount = Utils.tokenBalance(toToken, address(this)); require(receivedAmount >= toAmount, "Received amount of tokens are less then expected"); if (!_isTakeFeeFromSrcToken(feePercent)) { // take fee from dest token takeToTokenFeeAndTransfer(toToken, receivedAmount, beneficiary, partner, feePercent); // Transfer remaining token back to msg.sender remainingAmount = Utils.tokenBalance(fromToken, address(this)); Utils.transferTokens(fromToken, msg.sender, remainingAmount); } else { // Transfer toToken to beneficiary Utils.transferTokens(toToken, beneficiary, receivedAmount); // take slippage from src token remainingAmount = Utils.tokenBalance(fromToken, address(this)); takeFromTokenFeeSlippageAndTransfer( fromToken, fromAmount, expectedAmount, remainingAmount, partner, feePercent ); } return (receivedAmount, remainingAmount); } function transferTokensFromProxy( address token, uint256 amount, bytes memory permit ) private { if (token != Utils.ethAddress()) { Utils.permit(token, permit); tokenTransferProxy.transferFrom(token, msg.sender, address(this), amount); } } function performCalls( address[] memory callees, bytes memory exchangeData, uint256[] memory startIndexes, uint256[] memory values ) private { for (uint256 i = 0; i < callees.length; i++) { require(callees[i] != address(tokenTransferProxy), "Can not call TokenTransferProxy Contract"); if (callees[i] == augustusRFQ) { verifyAugustusRFQParams(startIndexes[i], exchangeData); } else { uint256 dataOffset = startIndexes[i]; bytes32 selector; assembly { selector := mload(add(exchangeData, add(dataOffset, 32))) } require(bytes4(selector) != IERC20.transferFrom.selector, "transferFrom not allowed for externalCall"); } bool result = externalCall( callees[i], //destination values[i], //value to send startIndexes[i], // start index of call data startIndexes[i + 1].sub(startIndexes[i]), // length of calldata exchangeData // total calldata ); require(result, "External call failed"); } } function verifyAugustusRFQParams(uint256 startIndex, bytes memory exchangeData) private view { // Load the 4 byte function signature in the lower 32 bits // Also load the memory address of the calldata params which follow uint256 sig; uint256 paramsStart; assembly { let tmp := add(exchangeData, startIndex) // Note that all bytes variables start with 32 bytes length field sig := shr(224, mload(add(tmp, 32))) paramsStart := add(tmp, 36) } if ( sig == 0x98f9b46b || // fillOrder sig == 0xbbbc2372 || // fillOrderNFT sig == 0x00154008 || // fillOrderWithTarget sig == 0x3c3694ab || // fillOrderWithTargetNFT sig == 0xc88ae6dc || // partialFillOrder sig == 0xb28ace5f || // partialFillOrderNFT sig == 0x24abf828 || // partialFillOrderWithTarget sig == 0x30201ad3 || // partialFillOrderWithTargetNFT sig == 0xda6b84af || // partialFillOrderWithTargetPermit sig == 0xf6c1b371 // partialFillOrderWithTargetPermitNFT ) { // First parameter is fixed size (encoded in place) order struct // with nonceAndMeta being the first field, therefore: // nonceAndMeta is the first 32 bytes of the ABI encoding uint256 nonceAndMeta; assembly { nonceAndMeta := mload(paramsStart) } address userAddress = address(uint160(nonceAndMeta)); require(userAddress == address(0) || userAddress == msg.sender, "unauthorized user"); } else if ( sig == 0x077822bd || // batchFillOrderWithTarget sig == 0xc8b81d63 || // batchFillOrderWithTargetNFT sig == 0x1c64b820 || // tryBatchFillOrderTakerAmount sig == 0x01fb36ba // tryBatchFillOrderMakerAmount ) { // First parameter is variable length array of variable size order // infos where first field of order info is the actual order struct // (fixed size so encoded in place) which starts with nonceAndMeta. // Therefore, the nonceAndMeta is the first 32 bytes of order info. // But we need to find where the order infos start! // Firstly, we load the offset of the array, and its length uint256 arrayPtr; uint256 arrayLength; uint256 arrayStart; assembly { arrayPtr := add(paramsStart, mload(paramsStart)) arrayLength := mload(arrayPtr) arrayStart := add(arrayPtr, 32) } // Each of the words after the array length is an offset from the // start of the array data, loading this gives us nonceAndMeta for (uint256 i = 0; i < arrayLength; ++i) { uint256 nonceAndMeta; assembly { arrayPtr := add(arrayPtr, 32) nonceAndMeta := mload(add(arrayStart, mload(arrayPtr))) } address userAddress = address(uint160(nonceAndMeta)); require(userAddress == address(0) || userAddress == msg.sender, "unauthorized user"); } } else { revert("unrecognized AugustusRFQ method selector"); } } /*solhint-disable no-inline-assembly*/ /** * @dev Source take from GNOSIS MultiSigWallet * @dev https://github.com/gnosis/MultiSigWallet/blob/master/contracts/MultiSigWallet.sol */ function externalCall( address destination, uint256 value, uint256 dataOffset, uint256 dataLength, bytes memory data ) private returns (bool) { bool result = false; assembly { let x := mload(0x40) // "Allocate" memory for output // (0x40 is where "free memory" pointer is stored by convention) let d := add(data, 32) // First 32 bytes are the padded length of data, so exclude that result := call( gas(), destination, value, add(d, dataOffset), dataLength, // Size of the input (in bytes) - this is what fixes the padding problem x, 0 // Output is ignored, therefore the output size is zero ) // let ptr := mload(0x40) // let size := returndatasize() // returndatacopy(ptr, 0, size) // revert(ptr, size) } return result; } /*solhint-enable no-inline-assembly*/ }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool); /** * @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); }
/*solhint-disable avoid-low-level-calls */ // SPDX-License-Identifier: ISC pragma solidity 0.7.5; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "../ITokenTransferProxy.sol"; interface IERC20Permit { function permit( address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; } interface IERC20PermitLegacy { function permit( address holder, address spender, uint256 nonce, uint256 expiry, bool allowed, uint8 v, bytes32 r, bytes32 s ) external; } library Utils { using SafeMath for uint256; using SafeERC20 for IERC20; address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE); uint256 private constant MAX_UINT = type(uint256).max; /** * @param fromToken Address of the source token * @param fromAmount Amount of source tokens to be swapped * @param toAmount Minimum destination token amount expected out of this swap * @param expectedAmount Expected amount of destination tokens without slippage * @param beneficiary Beneficiary address * 0 then 100% will be transferred to beneficiary. Pass 10000 for 100% * @param path Route to be taken for this swap to take place */ struct SellData { address fromToken; uint256 fromAmount; uint256 toAmount; uint256 expectedAmount; address payable beneficiary; Utils.Path[] path; address payable partner; uint256 feePercent; bytes permit; uint256 deadline; bytes16 uuid; } struct BuyData { address adapter; address fromToken; address toToken; uint256 fromAmount; uint256 toAmount; uint256 expectedAmount; address payable beneficiary; Utils.Route[] route; address payable partner; uint256 feePercent; bytes permit; uint256 deadline; bytes16 uuid; } struct MegaSwapSellData { address fromToken; uint256 fromAmount; uint256 toAmount; uint256 expectedAmount; address payable beneficiary; Utils.MegaSwapPath[] path; address payable partner; uint256 feePercent; bytes permit; uint256 deadline; bytes16 uuid; } struct SimpleData { address fromToken; address toToken; uint256 fromAmount; uint256 toAmount; uint256 expectedAmount; address[] callees; bytes exchangeData; uint256[] startIndexes; uint256[] values; address payable beneficiary; address payable partner; uint256 feePercent; bytes permit; uint256 deadline; bytes16 uuid; } struct Adapter { address payable adapter; uint256 percent; uint256 networkFee; //NOT USED Route[] route; } struct Route { uint256 index; //Adapter at which index needs to be used address targetExchange; uint256 percent; bytes payload; uint256 networkFee; //NOT USED - Network fee is associated with 0xv3 trades } struct MegaSwapPath { uint256 fromAmountPercent; Path[] path; } struct Path { address to; uint256 totalNetworkFee; //NOT USED - Network fee is associated with 0xv3 trades Adapter[] adapters; } function ethAddress() internal pure returns (address) { return ETH_ADDRESS; } function maxUint() internal pure returns (uint256) { return MAX_UINT; } function approve( address addressToApprove, address token, uint256 amount ) internal { if (token != ETH_ADDRESS) { IERC20 _token = IERC20(token); uint256 allowance = _token.allowance(address(this), addressToApprove); if (allowance < amount) { _token.safeApprove(addressToApprove, 0); _token.safeIncreaseAllowance(addressToApprove, MAX_UINT); } } } function transferTokens( address token, address payable destination, uint256 amount ) internal { if (amount > 0) { if (token == ETH_ADDRESS) { (bool result, ) = destination.call{ value: amount, gas: 10000 }(""); require(result, "Failed to transfer Ether"); } else { IERC20(token).safeTransfer(destination, amount); } } } function tokenBalance(address token, address account) internal view returns (uint256) { if (token == ETH_ADDRESS) { return account.balance; } else { return IERC20(token).balanceOf(account); } } function permit(address token, bytes memory permit) internal { if (permit.length == 32 * 7) { (bool success, ) = token.call(abi.encodePacked(IERC20Permit.permit.selector, permit)); require(success, "Permit failed"); } if (permit.length == 32 * 8) { (bool success, ) = token.call(abi.encodePacked(IERC20PermitLegacy.permit.selector, permit)); require(success, "Permit failed"); } } function transferETH(address payable destination, uint256 amount) internal { if (amount > 0) { (bool result, ) = destination.call{ value: amount, gas: 10000 }(""); require(result, "Transfer ETH failed"); } } }
// SPDX-License-Identifier: ISC pragma solidity 0.7.5; interface IRouter { /** * @dev Certain routers/exchanges needs to be initialized. * This method will be called from Augustus */ function initialize(bytes calldata data) external; /** * @dev Returns unique identifier for the router */ function getKey() external pure returns (bytes32); event SwappedV3( bytes16 uuid, address partner, uint256 feePercent, address initiator, address indexed beneficiary, address indexed srcToken, address indexed destToken, uint256 srcAmount, uint256 receivedAmount, uint256 expectedAmount ); event BoughtV3( bytes16 uuid, address partner, uint256 feePercent, address initiator, address indexed beneficiary, address indexed srcToken, address indexed destToken, uint256 srcAmount, uint256 receivedAmount, uint256 expectedAmount ); }
// SPDX-License-Identifier: ISC pragma solidity 0.7.5; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; abstract contract IWETH is IERC20 { function deposit() external payable virtual; function withdraw(uint256 amount) external virtual; }
// SPDX-License-Identifier: ISC pragma solidity 0.7.5; import "@openzeppelin/contracts/math/SafeMath.sol"; import "../AugustusStorage.sol"; import "../lib/Utils.sol"; import "./IFeeClaimer.sol"; // helpers import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract FeeModel is AugustusStorage { using SafeMath for uint256; uint256 public immutable partnerSharePercent; uint256 public immutable maxFeePercent; IFeeClaimer public immutable feeClaimer; constructor( uint256 _partnerSharePercent, uint256 _maxFeePercent, IFeeClaimer _feeClaimer ) public { partnerSharePercent = _partnerSharePercent; maxFeePercent = _maxFeePercent; feeClaimer = _feeClaimer; } // feePercent is a packed structure. // Bits 255-248 = 8-bit version field // // Version 0 // ========= // Entire structure is interpreted as the fee percent in basis points. // If set to 0 then partner will not receive any fees. // // Version 1 // ========= // Bits 13-0 = Fee percent in basis points // Bit 14 = positiveSlippageToUser (positive slippage to partner if not set) // Bit 15 = if set, take fee from fromToken, toToken otherwise // Bit 16 = if set, do fee distribution as per referral program // Used only for SELL (where needs to be done before swap or at the end if not transferring) function takeFromTokenFee( address fromToken, uint256 fromAmount, address payable partner, uint256 feePercent ) internal returns (uint256 newFromAmount) { uint256 fixedFeeBps = _getFixedFeeBps(partner, feePercent); if (fixedFeeBps == 0) return fromAmount; (uint256 partnerShare, uint256 paraswapShare) = _calcFixedFees(fromAmount, fixedFeeBps); return _distributeFees(fromAmount, fromToken, partner, partnerShare, paraswapShare); } // Used only for SELL (where can be done after swap and need to transfer) function takeFromTokenFeeAndTransfer( address fromToken, uint256 fromAmount, uint256 remainingAmount, address payable partner, uint256 feePercent ) internal { uint256 fixedFeeBps = _getFixedFeeBps(partner, feePercent); if (fixedFeeBps != 0) { (uint256 partnerShare, uint256 paraswapShare) = _calcFixedFees(fromAmount, fixedFeeBps); remainingAmount = _distributeFees(remainingAmount, fromToken, partner, partnerShare, paraswapShare); } Utils.transferTokens(fromToken, msg.sender, remainingAmount); } // Used only for BUY function takeFromTokenFeeSlippageAndTransfer( address fromToken, uint256 fromAmount, uint256 expectedAmount, uint256 remainingAmount, address payable partner, uint256 feePercent ) internal { uint256 fixedFeeBps = _getFixedFeeBps(partner, feePercent); uint256 slippage = _calcSlippage(fixedFeeBps, expectedAmount, fromAmount.sub(remainingAmount)); uint256 partnerShare; uint256 paraswapShare; if (fixedFeeBps != 0) { (partnerShare, paraswapShare) = _calcFixedFees(expectedAmount, fixedFeeBps); } if (slippage != 0) { (uint256 partnerShare2, uint256 paraswapShare2) = _calcSlippageFees(slippage, partner, feePercent); partnerShare = partnerShare.add(partnerShare2); paraswapShare = paraswapShare.add(paraswapShare2); } Utils.transferTokens( fromToken, msg.sender, _distributeFees(remainingAmount, fromToken, partner, partnerShare, paraswapShare) ); } // Used only for SELL function takeToTokenFeeSlippageAndTransfer( address toToken, uint256 expectedAmount, uint256 receivedAmount, address payable beneficiary, address payable partner, uint256 feePercent ) internal { uint256 fixedFeeBps = _getFixedFeeBps(partner, feePercent); uint256 slippage = _calcSlippage(fixedFeeBps, receivedAmount, expectedAmount); uint256 partnerShare; uint256 paraswapShare; if (fixedFeeBps != 0) { (partnerShare, paraswapShare) = _calcFixedFees( slippage != 0 ? expectedAmount : receivedAmount, fixedFeeBps ); } if (slippage != 0) { (uint256 partnerShare2, uint256 paraswapShare2) = _calcSlippageFees(slippage, partner, feePercent); partnerShare = partnerShare.add(partnerShare2); paraswapShare = paraswapShare.add(paraswapShare2); } Utils.transferTokens( toToken, beneficiary, _distributeFees(receivedAmount, toToken, partner, partnerShare, paraswapShare) ); } // Used only for BUY function takeToTokenFeeAndTransfer( address toToken, uint256 receivedAmount, address payable beneficiary, address payable partner, uint256 feePercent ) internal { uint256 fixedFeeBps = _getFixedFeeBps(partner, feePercent); if (fixedFeeBps != 0) { (uint256 partnerShare, uint256 paraswapShare) = _calcFixedFees(receivedAmount, fixedFeeBps); receivedAmount = _distributeFees(receivedAmount, toToken, partner, partnerShare, paraswapShare); } Utils.transferTokens(toToken, beneficiary, receivedAmount); } function _getFixedFeeBps(address partner, uint256 feePercent) private view returns (uint256 fixedFeeBps) { if (partner == address(0)) return 0; uint256 version = feePercent >> 248; if (version == 0) { fixedFeeBps = feePercent; } else if ((feePercent & (1 << 16)) != 0) { // Referrer program only has slippage fees return 0; } else { fixedFeeBps = feePercent & 0x3FFF; } return fixedFeeBps > maxFeePercent ? maxFeePercent : fixedFeeBps; } function _calcSlippage( uint256 fixedFeeBps, uint256 positiveAmount, uint256 negativeAmount ) private pure returns (uint256 slippage) { return (fixedFeeBps <= 50 && positiveAmount > negativeAmount) ? positiveAmount.sub(negativeAmount) : 0; } function _calcFixedFees(uint256 amount, uint256 fixedFeeBps) private view returns (uint256 partnerShare, uint256 paraswapShare) { uint256 fee = amount.mul(fixedFeeBps).div(10000); partnerShare = fee.mul(partnerSharePercent).div(10000); paraswapShare = fee.sub(partnerShare); } function _calcSlippageFees( uint256 slippage, address partner, uint256 feePercent ) private pure returns (uint256 partnerShare, uint256 paraswapShare) { paraswapShare = slippage.div(2); if (partner != address(0)) { uint256 version = feePercent >> 248; if (version != 0) { if ((feePercent & (1 << 16)) != 0) { uint256 feeBps = feePercent & 0x3FFF; partnerShare = paraswapShare.mul(feeBps > 10000 ? 10000 : feeBps).div(10000); } else if ((feePercent & (1 << 14)) == 0) { partnerShare = paraswapShare; } } } } function _distributeFees( uint256 currentBalance, address token, address payable partner, uint256 partnerShare, uint256 paraswapShare ) private returns (uint256 newBalance) { uint256 totalFees = partnerShare.add(paraswapShare); if (totalFees == 0) return currentBalance; require(totalFees <= currentBalance, "Insufficient balance to pay for fees"); Utils.transferTokens(token, payable(address(feeClaimer)), totalFees); if (partnerShare != 0) { feeClaimer.registerFee(partner, IERC20(token), partnerShare); } if (paraswapShare != 0) { feeClaimer.registerFee(feeWallet, IERC20(token), paraswapShare); } return currentBalance.sub(totalFees); } function _isTakeFeeFromSrcToken(uint256 feePercent) internal pure returns (bool) { return feePercent >> 248 != 0 && (feePercent & (1 << 15)) != 0; } }
// SPDX-License-Identifier: ISC pragma solidity 0.7.5; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IFeeClaimer { /** * @notice register partner's, affiliate's and PP's fee * @dev only callable by AugustusSwapper contract * @param _account account address used to withdraw fees * @param _token token address * @param _fee fee amount in token */ function registerFee( address _account, IERC20 _token, uint256 _fee ) external; /** * @notice claim partner share fee in ERC20 token * @dev transfers ERC20 token balance to the caller's account * the call will fail if withdrawer have zero balance in the contract * @param _token address of the ERC20 token * @param _recipient address * @return true if the withdraw was successfull */ function withdrawAllERC20(IERC20 _token, address _recipient) external returns (bool); /** * @notice batch claim whole balance of fee share amount * @dev transfers ERC20 token balance to the caller's account * the call will fail if withdrawer have zero balance in the contract * @param _tokens list of addresses of the ERC20 token * @param _recipient address of recipient * @return true if the withdraw was successfull */ function batchWithdrawAllERC20(IERC20[] calldata _tokens, address _recipient) external returns (bool); /** * @notice claim some partner share fee in ERC20 token * @dev transfers ERC20 token amount to the caller's account * the call will fail if withdrawer have zero balance in the contract * @param _token address of the ERC20 token * @param _recipient address * @return true if the withdraw was successfull */ function withdrawSomeERC20( IERC20 _token, uint256 _tokenAmount, address _recipient ) external returns (bool); /** * @notice batch claim some amount of fee share in ERC20 token * @dev transfers ERC20 token balance to the caller's account * the call will fail if withdrawer have zero balance in the contract * @param _tokens address of the ERC20 tokens * @param _tokenAmounts array of amounts * @param _recipient destination account addresses * @return true if the withdraw was successfull */ function batchWithdrawSomeERC20( IERC20[] calldata _tokens, uint256[] calldata _tokenAmounts, address _recipient ) external returns (bool); /** * @notice compute unallocated fee in token * @param _token address of the ERC20 token * @return amount of unallocated token in fees */ function getUnallocatedFees(IERC20 _token) external view returns (uint256); /** * @notice returns unclaimed fee amount given the token * @dev retrieves the balance of ERC20 token fee amount for a partner * @param _token address of the ERC20 token * @param _partner account address of the partner * @return amount of balance */ function getBalance(IERC20 _token, address _partner) external view returns (uint256); /** * @notice returns unclaimed fee amount given the token in batch * @dev retrieves the balance of ERC20 token fee amount for a partner in batch * @param _tokens list of ERC20 token addresses * @param _partner account address of the partner * @return _fees array of the token amount */ function batchGetBalance(IERC20[] calldata _tokens, address _partner) external view returns (uint256[] memory _fees); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; 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' // solhint-disable-next-line max-line-length 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).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: ISC pragma solidity 0.7.5; interface ITokenTransferProxy { function transferFrom( address token, address from, address to, uint256 amount ) external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: ISC pragma solidity 0.7.5; import "./ITokenTransferProxy.sol"; contract AugustusStorage { struct FeeStructure { uint256 partnerShare; bool noPositiveSlippage; bool positiveSlippageToUser; uint16 feePercent; string partnerId; bytes data; } ITokenTransferProxy internal tokenTransferProxy; address payable internal feeWallet; mapping(address => FeeStructure) internal registeredPartners; mapping(bytes4 => address) internal selectorVsRouter; mapping(bytes32 => bool) internal adapterInitialized; mapping(bytes32 => bytes) internal adapterVsData; mapping(bytes32 => bytes) internal routerData; mapping(bytes32 => bool) internal routerInitialized; bytes32 public constant WHITELISTED_ROLE = keccak256("WHITELISTED_ROLE"); bytes32 public constant ROUTER_ROLE = keccak256("ROUTER_ROLE"); }
{ "metadata": { "bytecodeHash": "none", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 1000000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_partnerSharePercent","type":"uint256"},{"internalType":"uint256","name":"_maxFeePercent","type":"uint256"},{"internalType":"contract IFeeClaimer","name":"_feeClaimer","type":"address"},{"internalType":"address","name":"_augustusRFQ","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes16","name":"uuid","type":"bytes16"},{"indexed":false,"internalType":"address","name":"partner","type":"address"},{"indexed":false,"internalType":"uint256","name":"feePercent","type":"uint256"},{"indexed":false,"internalType":"address","name":"initiator","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":true,"internalType":"address","name":"srcToken","type":"address"},{"indexed":true,"internalType":"address","name":"destToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"srcAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"receivedAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expectedAmount","type":"uint256"}],"name":"BoughtV3","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes16","name":"uuid","type":"bytes16"},{"indexed":false,"internalType":"address","name":"partner","type":"address"},{"indexed":false,"internalType":"uint256","name":"feePercent","type":"uint256"},{"indexed":false,"internalType":"address","name":"initiator","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":true,"internalType":"address","name":"srcToken","type":"address"},{"indexed":true,"internalType":"address","name":"destToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"srcAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"receivedAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expectedAmount","type":"uint256"}],"name":"SwappedV3","type":"event"},{"inputs":[],"name":"ROUTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELISTED_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"augustusRFQ","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeClaimer","outputs":[{"internalType":"contract IFeeClaimer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getKey","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerSharePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"address","name":"toToken","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"toAmount","type":"uint256"},{"internalType":"uint256","name":"expectedAmount","type":"uint256"},{"internalType":"address[]","name":"callees","type":"address[]"},{"internalType":"bytes","name":"exchangeData","type":"bytes"},{"internalType":"uint256[]","name":"startIndexes","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"address payable","name":"beneficiary","type":"address"},{"internalType":"address payable","name":"partner","type":"address"},{"internalType":"uint256","name":"feePercent","type":"uint256"},{"internalType":"bytes","name":"permit","type":"bytes"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bytes16","name":"uuid","type":"bytes16"}],"internalType":"struct Utils.SimpleData","name":"data","type":"tuple"}],"name":"simpleBuy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"address","name":"toToken","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"toAmount","type":"uint256"},{"internalType":"uint256","name":"expectedAmount","type":"uint256"},{"internalType":"address[]","name":"callees","type":"address[]"},{"internalType":"bytes","name":"exchangeData","type":"bytes"},{"internalType":"uint256[]","name":"startIndexes","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"address payable","name":"beneficiary","type":"address"},{"internalType":"address payable","name":"partner","type":"address"},{"internalType":"uint256","name":"feePercent","type":"uint256"},{"internalType":"bytes","name":"permit","type":"bytes"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bytes16","name":"uuid","type":"bytes16"}],"internalType":"struct Utils.SimpleData","name":"data","type":"tuple"}],"name":"simpleSwap","outputs":[{"internalType":"uint256","name":"receivedAmount","type":"uint256"}],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6101006040523480156200001257600080fd5b5060405162002c9b38038062002c9b833981016040819052620000359162000061565b60809390935260a0919091526001600160601b0319606091821b811660c05291901b1660e052620000c9565b6000806000806080858703121562000077578384fd5b845193506020850151925060408501516200009281620000b0565b6060860151909250620000a581620000b0565b939692955090935050565b6001600160a01b0381168114620000c657600080fd5b50565b60805160a05160c05160601c60e05160601c612b73620001286000398061071e5280610d305250806106ce52806118b152806118de5280611a04525080610742528061177f52806117ac5250806101b652806117fb5250612b736000f3fe6080604052600436106100b15760003560e01c80637a3226ec1161006957806382678dd61161004e57806382678dd6146101755780638e81a2d41461018a578063d830a05b1461019f576100b1565b80637a3226ec1461013e57806381cbd3ea14610153576100b1565b806330d643b51161009a57806330d643b5146100f6578063439fab911461010b57806354e3f31b1461012b576100b1565b806312070a41146100b65780632298207a146100e1575b600080fd5b3480156100c257600080fd5b506100cb6101b4565b6040516100d891906125d2565b60405180910390f35b6100f46100ef36600461225d565b6101d8565b005b34801561010257600080fd5b506100cb6104e5565b34801561011757600080fd5b506100f46101263660046121f0565b610509565b6100cb610139366004612296565b61053b565b34801561014a57600080fd5b506100cb6106a8565b34801561015f57600080fd5b506101686106cc565b6040516100d8919061250a565b34801561018157600080fd5b506100cb6106f0565b34801561019657600080fd5b5061016861071c565b3480156101ab57600080fd5b506100cb610740565b7f000000000000000000000000000000000000000000000000000000000000000081565b42816101a001351015610220576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102179061298a565b60405180910390fd5b600080610235610140840161012085016121ba565b73ffffffffffffffffffffffffffffffffffffffff161461026757610262610140830161012084016121ba565b610269565b335b905060008061041161027e60a08601866129c1565b808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506102bd9250505060c0870187612a2d565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506102ff9250505060e08801886129c1565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061033f925050506101008901896129c1565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061037e9250505060208a018a6121ba565b61038e60408b0160208c016121ba565b8a604001358b606001358c608001358d6101400160208101906103b191906121ba565b8e61016001358f8061018001906103c89190612a2d565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508f610764565b909250905061042660408501602086016121ba565b73ffffffffffffffffffffffffffffffffffffffff1661044960208601866121ba565b73ffffffffffffffffffffffffffffffffffffffff9081169085167f4cc7e95e48af62690313a0733e93308ac9a73326bc3c29f1788b1191c376d5b66104976101e089016101c08a016121d6565b6104a96101608a016101408b016121ba565b6101608a0135336104be60408d01358a61095f565b8a8d608001356040516104d79796959493929190612562565b60405180910390a450505050565b7f7a05a596cb0ce7fdea8a1e1ec73be300bdb35097c944ce1897202f7a13122eb281565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612760565b600042826101a00151101561057c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102179061298a565b61012082015160009073ffffffffffffffffffffffffffffffffffffffff16156105ab578261012001516105ad565b335b90506105f88360a001518460c001518560e001518661010001518760000151886020015189604001518a606001518b608001518c61014001518d61016001518e61018001518d6109db565b9150826020015173ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0866101c00151876101400151886101600151338a604001518a8c608001516040516106999796959493929190612562565b60405180910390a4505b919050565b7f8429d542926e6695b59ac6fbdcd9b37e8b1aeb757afab06ab60b1bb5878c3b4981565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000604051602001610701906124b8565b60405160208183030381529060405280519060200120905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008061076f610bb2565b73ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff16146107a85760006107aa565b885b34146107e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612862565b6000881161081c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102179061282b565b8c518f516001011461085a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612612565b8b518f5114610895576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610217906126cc565b6108a08b8a86610bca565b6108ac8f8f8f8f610ca2565b6108b68a30610f26565b9150878210156108f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102179061292d565b6108fb85611021565b6109285761090c8a8385898961103b565b6109168b30610f26565b90506109238b3383611085565b61094d565b6109338a8484611085565b61093d8b30610f26565b905061094d8b8a89848a8a61118c565b9d509d9b505050505050505050505050565b6000828211156109d057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b60006109e5610bb2565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff1614610a1e576000610a20565b875b3414610a58576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612862565b60008711610a92576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102179061282b565b8b518e5160010114610ad0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612612565b8a518e5114610b0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610217906126cc565b610b168a8985610bca565b610b228e8e8e8e610ca2565b610b2c8930610f26565b905086811015610b68576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102179061292d565b610b7184611021565b610b8857610b83898783858989611222565b610ba1565b610b93898383611085565b610b9f8a8987876112aa565b505b9d9c50505050505050505050505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b610bd2610bb2565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610c9d57610c0e83826112f3565b6000546040517f15dacbea00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906315dacbea90610c6a90869033903090889060040161252b565b600060405180830381600087803b158015610c8457600080fd5b505af1158015610c98573d6000803e3d6000fd5b505050505b505050565b60005b8451811015610f1f57600054855173ffffffffffffffffffffffffffffffffffffffff90911690869083908110610cd857fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415610d2e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102179061266f565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16858281518110610d7157fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415610db757610db2838281518110610da457fe5b6020026020010151856114de565b610e5a565b6000838281518110610dc557fe5b602090810291909101810151868101909101519091507fffffffff0000000000000000000000000000000000000000000000000000000081167f23b872dd000000000000000000000000000000000000000000000000000000001415610e57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610217906127ce565b50505b6000610edd868381518110610e6b57fe5b6020026020010151848481518110610e7f57fe5b6020026020010151868581518110610e9357fe5b6020026020010151610ed7888781518110610eaa57fe5b6020026020010151898860010181518110610ec157fe5b602002602001015161095f90919063ffffffff16565b89611701565b905080610f16576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612899565b50600101610ca5565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610f78575073ffffffffffffffffffffffffffffffffffffffff8116316109d5565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190610fca90859060040161250a565b60206040518083038186803b158015610fe257600080fd5b505afa158015610ff6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101a9190612427565b90506109d5565b600060f882901c158015906109d557505061800016151590565b60006110478383611729565b905080156110725760008061105c87846117d3565b9150915061106d8789878585611835565b965050505b61107d868587611085565b505050505050565b8015610c9d5773ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561116b5760008273ffffffffffffffffffffffffffffffffffffffff1682612710906040516110e790612507565b600060405180830381858888f193505050503d8060008114611125576040519150601f19603f3d011682016040523d82523d6000602084013e61112a565b606091505b5050905080611165576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610217906125db565b50610c9d565b610c9d73ffffffffffffffffffffffffffffffffffffffff84168383611a7c565b60006111988383611729565b905060006111b082876111ab8a8961095f565b611b09565b905060008083156111cb576111c588856117d3565b90925090505b82156111ff576000806111df858989611b3a565b90925090506111ee8483611bc1565b93506111fa8382611bc1565b925050505b6112168a336112118a8e8b8888611835565b611085565b50505050505050505050565b600061122e8383611729565b9050600061123d828789611b09565b905060008083156112645761125e836112565788611258565b895b856117d3565b90925090505b821561129857600080611278858989611b3a565b90925090506112878483611bc1565b93506112938382611bc1565b925050505b6112168a886112118b8e8b8888611835565b6000806112b78484611729565b9050806112c757849150506112eb565b6000806112d487846117d3565b915091506112e58789888585611835565b93505050505b949350505050565b805160e014156113e75760008273ffffffffffffffffffffffffffffffffffffffff1663d505accf60e01b83604051602001611330929190612478565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052611368916124ac565b6000604051808303816000865af19150503d80600081146113a5576040519150601f19603f3d011682016040523d82523d6000602084013e6113aa565b606091505b50509050806113e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612729565b505b805161010014156114da5760008273ffffffffffffffffffffffffffffffffffffffff16638fcbaf0c60e01b83604051602001611425929190612478565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261145d916124ac565b6000604051808303816000865af19150503d806000811461149a576040519150601f19603f3d011682016040523d82523d6000602084013e61149f565b606091505b5050905080610c9d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612729565b5050565b818101602081015160e01c906024016398f9b46b82148061150257508163bbbc2372145b8061150f57508162154008145b8061151d575081633c3694ab145b8061152b57508163c88ae6dc145b8061153957508163b28ace5f145b806115475750816324abf828145b806115555750816330201ad3145b8061156357508163da6b84af145b8061157157508163f6c1b371145b156115ee5780518073ffffffffffffffffffffffffffffffffffffffff811615806115b1575073ffffffffffffffffffffffffffffffffffffffff811633145b6115e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612797565b50506116fb565b8163077822bd148061160357508163c8b81d63145b80611611575081631c64b820145b8061161f5750816301fb36ba145b156116c9578051810180516020820160005b828110156116c05760209390930180518201519093908073ffffffffffffffffffffffffffffffffffffffff81161580611680575073ffffffffffffffffffffffffffffffffffffffff811633145b6116b6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612797565b5050600101611631565b505050506116fb565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610217906128d0565b50505050565b6000806000905060405160208401600082878984018b8d5af193505050505b95945050505050565b600073ffffffffffffffffffffffffffffffffffffffff831661174e575060006109d5565b60f882901c806117605782915061177d565b620100008316156117755760009150506109d5565b82613fff1691505b7f000000000000000000000000000000000000000000000000000000000000000082116117aa57816112eb565b7f0000000000000000000000000000000000000000000000000000000000000000949350505050565b600080806117ed6127106117e78787611c35565b90611ca8565b905061181f6127106117e7837f0000000000000000000000000000000000000000000000000000000000000000611c35565b925061182b818461095f565b9150509250929050565b6000806118428484611bc1565b9050806118525786915050611720565b868111156118ab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180612b196024913960400191505060405180910390fd5b6118d6867f000000000000000000000000000000000000000000000000000000000000000083611085565b83156119a4577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d1f4354b8688876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050600060405180830381600087803b15801561198b57600080fd5b505af115801561199f573d6000803e3d6000fd5b505050505b8215611a6757600154604080517fd1f4354b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff928316600482015288831660248201526044810186905290517f00000000000000000000000000000000000000000000000000000000000000009092169163d1f4354b9160648082019260009290919082900301818387803b158015611a4e57600080fd5b505af1158015611a62573d6000803e3d6000fd5b505050505b611a71878261095f565b979650505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610c9d908490611d29565b600060328411158015611b1b57508183115b611b26576000611b30565b611b30838361095f565b90505b9392505050565b600080611b48856002611ca8565b905073ffffffffffffffffffffffffffffffffffffffff841615611bb95760f883901c8015611bb75762010000841615611baa57613fff8416611ba26127106117e7818411611b975783611b9b565b6127105b8690611c35565b935050611bb7565b6140008416611bb7578192505b505b935093915050565b600082820183811015611b3357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082611c44575060006109d5565b82820282848281611c5157fe5b0414611b33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612af86021913960400191505060405180910390fd5b6000808211611d1857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611d2157fe5b049392505050565b6060611d8b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611e019092919063ffffffff16565b805190915015610c9d57808060200190516020811015611daa57600080fd5b5051610c9d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612b3d602a913960400191505060405180910390fd5b6060611b30848460008585611e1585611f61565b611e8057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611eea57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611ead565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611f4c576040519150601f19603f3d011682016040523d82523d6000602084013e611f51565b606091505b5091509150611a71828286611f67565b3b151590565b60608315611f76575081611b33565b825115611f865782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611fea578181015183820152602001611fd2565b50505050905090810190601f1680156120175780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b80356106a381612ad2565b600082601f830112612040578081fd5b813561205361204e82612ab4565b612a90565b81815291506020808301908481018184028601820187101561207457600080fd5b60005b8481101561209c57813561208a81612ad2565b84529282019290820190600101612077565b505050505092915050565b600082601f8301126120b7578081fd5b81356120c561204e82612ab4565b8181529150602080830190848101818402860182018710156120e657600080fd5b60005b8481101561209c578135845292820192908201906001016120e9565b80357fffffffffffffffffffffffffffffffff00000000000000000000000000000000811681146106a357600080fd5b600082601f830112612145578081fd5b813567ffffffffffffffff81111561215957fe5b61218a60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601612a90565b91508082528360208285010111156121a157600080fd5b8060208401602084013760009082016020015292915050565b6000602082840312156121cb578081fd5b8135611b3381612ad2565b6000602082840312156121e7578081fd5b611b3382612105565b60008060208385031215612202578081fd5b823567ffffffffffffffff80821115612219578283fd5b818501915085601f83011261222c578283fd5b81358181111561223a578384fd5b86602082850101111561224b578384fd5b60209290920196919550909350505050565b60006020828403121561226e578081fd5b813567ffffffffffffffff811115612284578182fd5b82016101e08185031215611b33578182fd5b6000602082840312156122a7578081fd5b813567ffffffffffffffff808211156122be578283fd5b81840191506101e08083870312156122d4578384fd5b6122dd81612a90565b90506122e883612025565b81526122f660208401612025565b602082015260408301356040820152606083013560608201526080830135608082015260a08301358281111561232a578485fd5b61233687828601612030565b60a08301525060c08301358281111561234d578485fd5b61235987828601612135565b60c08301525060e083013582811115612370578485fd5b61237c878286016120a7565b60e0830152506101008084013583811115612395578586fd5b6123a1888287016120a7565b8284015250506101206123b5818501612025565b908201526101406123c7848201612025565b90820152610160838101359082015261018080840135838111156123e9578586fd5b6123f588828701612135565b8284015250506101a0915081830135828201526101c09150612418828401612105565b91810191909152949350505050565b600060208284031215612438578081fd5b5051919050565b60008151815b8181101561245f5760208185018101518683015201612445565b8181111561246d5782828601525b509290920192915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000084168252611b30600483018461243f565b6000611b33828461243f565b7f53494d504c455f535741505f524f55544552000000000000000000000000000081527f312e302e30000000000000000000000000000000000000000000000000000000601282015260170190565b90565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff9485168152928416602084015292166040820152606081019190915260800190565b7fffffffffffffffffffffffffffffffff0000000000000000000000000000000097909716875273ffffffffffffffffffffffffffffffffffffffff95861660208801526040870194909452919093166060850152608084019290925260a083019190915260c082015260e00190565b90815260200190565b60208082526018908201527f4661696c656420746f207472616e736665722045746865720000000000000000604082015260600190565b60208082526036908201527f537461727420696e6465786573206d757374206265203120677265617465722060408201527f7468656e206e756d626572206f662063616c6c65657300000000000000000000606082015260800190565b60208082526028908201527f43616e206e6f742063616c6c20546f6b656e5472616e7366657250726f78792060408201527f436f6e7472616374000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f63616c6c65657320616e642076616c756573206d75737420686176652073616d60408201527f65206c656e677468000000000000000000000000000000000000000000000000606082015260800190565b6020808252600d908201527f5065726d6974206661696c656400000000000000000000000000000000000000604082015260600190565b60208082526016908201527f4d4554484f44204e4f5420494d504c454d454e54454400000000000000000000604082015260600190565b60208082526011908201527f756e617574686f72697a65642075736572000000000000000000000000000000604082015260600190565b60208082526029908201527f7472616e7366657246726f6d206e6f7420616c6c6f77656420666f722065787460408201527f65726e616c43616c6c0000000000000000000000000000000000000000000000606082015260800190565b60208082526013908201527f746f416d6f756e7420697320746f6f206c6f7700000000000000000000000000604082015260600190565b60208082526013908201527f496e636f7272656374206d73672e76616c756500000000000000000000000000604082015260600190565b60208082526014908201527f45787465726e616c2063616c6c206661696c6564000000000000000000000000604082015260600190565b60208082526028908201527f756e7265636f676e697a6564204175677573747573524651206d6574686f642060408201527f73656c6563746f72000000000000000000000000000000000000000000000000606082015260800190565b60208082526030908201527f526563656976656420616d6f756e74206f6620746f6b656e7320617265206c6560408201527f7373207468656e20657870656374656400000000000000000000000000000000606082015260800190565b60208082526011908201527f446561646c696e65206272656163686564000000000000000000000000000000604082015260600190565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126129f5578283fd5b83018035915067ffffffffffffffff821115612a0f578283fd5b6020908101925081023603821315612a2657600080fd5b9250929050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112612a61578283fd5b83018035915067ffffffffffffffff821115612a7b578283fd5b602001915036819003821315612a2657600080fd5b60405181810167ffffffffffffffff81118282101715612aac57fe5b604052919050565b600067ffffffffffffffff821115612ac857fe5b5060209081020190565b73ffffffffffffffffffffffffffffffffffffffff81168114612af457600080fd5b5056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77496e73756666696369656e742062616c616e636520746f2070617920666f7220666565735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a164736f6c6343000705000a000000000000000000000000000000000000000000000000000000000000213400000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000ef13101c5bbd737cfb2bf00bbd38c626ad6952f7000000000000000000000000e92b586627cca7a83dc919cc7127196d70f55a06
Deployed Bytecode
0x6080604052600436106100b15760003560e01c80637a3226ec1161006957806382678dd61161004e57806382678dd6146101755780638e81a2d41461018a578063d830a05b1461019f576100b1565b80637a3226ec1461013e57806381cbd3ea14610153576100b1565b806330d643b51161009a57806330d643b5146100f6578063439fab911461010b57806354e3f31b1461012b576100b1565b806312070a41146100b65780632298207a146100e1575b600080fd5b3480156100c257600080fd5b506100cb6101b4565b6040516100d891906125d2565b60405180910390f35b6100f46100ef36600461225d565b6101d8565b005b34801561010257600080fd5b506100cb6104e5565b34801561011757600080fd5b506100f46101263660046121f0565b610509565b6100cb610139366004612296565b61053b565b34801561014a57600080fd5b506100cb6106a8565b34801561015f57600080fd5b506101686106cc565b6040516100d8919061250a565b34801561018157600080fd5b506100cb6106f0565b34801561019657600080fd5b5061016861071c565b3480156101ab57600080fd5b506100cb610740565b7f000000000000000000000000000000000000000000000000000000000000213481565b42816101a001351015610220576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102179061298a565b60405180910390fd5b600080610235610140840161012085016121ba565b73ffffffffffffffffffffffffffffffffffffffff161461026757610262610140830161012084016121ba565b610269565b335b905060008061041161027e60a08601866129c1565b808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506102bd9250505060c0870187612a2d565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506102ff9250505060e08801886129c1565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061033f925050506101008901896129c1565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061037e9250505060208a018a6121ba565b61038e60408b0160208c016121ba565b8a604001358b606001358c608001358d6101400160208101906103b191906121ba565b8e61016001358f8061018001906103c89190612a2d565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508f610764565b909250905061042660408501602086016121ba565b73ffffffffffffffffffffffffffffffffffffffff1661044960208601866121ba565b73ffffffffffffffffffffffffffffffffffffffff9081169085167f4cc7e95e48af62690313a0733e93308ac9a73326bc3c29f1788b1191c376d5b66104976101e089016101c08a016121d6565b6104a96101608a016101408b016121ba565b6101608a0135336104be60408d01358a61095f565b8a8d608001356040516104d79796959493929190612562565b60405180910390a450505050565b7f7a05a596cb0ce7fdea8a1e1ec73be300bdb35097c944ce1897202f7a13122eb281565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612760565b600042826101a00151101561057c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102179061298a565b61012082015160009073ffffffffffffffffffffffffffffffffffffffff16156105ab578261012001516105ad565b335b90506105f88360a001518460c001518560e001518661010001518760000151886020015189604001518a606001518b608001518c61014001518d61016001518e61018001518d6109db565b9150826020015173ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0866101c00151876101400151886101600151338a604001518a8c608001516040516106999796959493929190612562565b60405180910390a4505b919050565b7f8429d542926e6695b59ac6fbdcd9b37e8b1aeb757afab06ab60b1bb5878c3b4981565b7f000000000000000000000000ef13101c5bbd737cfb2bf00bbd38c626ad6952f781565b6000604051602001610701906124b8565b60405160208183030381529060405280519060200120905090565b7f000000000000000000000000e92b586627cca7a83dc919cc7127196d70f55a0681565b7f00000000000000000000000000000000000000000000000000000000000001f481565b60008061076f610bb2565b73ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff16146107a85760006107aa565b885b34146107e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612862565b6000881161081c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102179061282b565b8c518f516001011461085a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612612565b8b518f5114610895576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610217906126cc565b6108a08b8a86610bca565b6108ac8f8f8f8f610ca2565b6108b68a30610f26565b9150878210156108f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102179061292d565b6108fb85611021565b6109285761090c8a8385898961103b565b6109168b30610f26565b90506109238b3383611085565b61094d565b6109338a8484611085565b61093d8b30610f26565b905061094d8b8a89848a8a61118c565b9d509d9b505050505050505050505050565b6000828211156109d057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b60006109e5610bb2565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff1614610a1e576000610a20565b875b3414610a58576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612862565b60008711610a92576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102179061282b565b8b518e5160010114610ad0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612612565b8a518e5114610b0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610217906126cc565b610b168a8985610bca565b610b228e8e8e8e610ca2565b610b2c8930610f26565b905086811015610b68576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102179061292d565b610b7184611021565b610b8857610b83898783858989611222565b610ba1565b610b93898383611085565b610b9f8a8987876112aa565b505b9d9c50505050505050505050505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b610bd2610bb2565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610c9d57610c0e83826112f3565b6000546040517f15dacbea00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906315dacbea90610c6a90869033903090889060040161252b565b600060405180830381600087803b158015610c8457600080fd5b505af1158015610c98573d6000803e3d6000fd5b505050505b505050565b60005b8451811015610f1f57600054855173ffffffffffffffffffffffffffffffffffffffff90911690869083908110610cd857fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415610d2e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102179061266f565b7f000000000000000000000000e92b586627cca7a83dc919cc7127196d70f55a0673ffffffffffffffffffffffffffffffffffffffff16858281518110610d7157fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415610db757610db2838281518110610da457fe5b6020026020010151856114de565b610e5a565b6000838281518110610dc557fe5b602090810291909101810151868101909101519091507fffffffff0000000000000000000000000000000000000000000000000000000081167f23b872dd000000000000000000000000000000000000000000000000000000001415610e57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610217906127ce565b50505b6000610edd868381518110610e6b57fe5b6020026020010151848481518110610e7f57fe5b6020026020010151868581518110610e9357fe5b6020026020010151610ed7888781518110610eaa57fe5b6020026020010151898860010181518110610ec157fe5b602002602001015161095f90919063ffffffff16565b89611701565b905080610f16576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612899565b50600101610ca5565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610f78575073ffffffffffffffffffffffffffffffffffffffff8116316109d5565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190610fca90859060040161250a565b60206040518083038186803b158015610fe257600080fd5b505afa158015610ff6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101a9190612427565b90506109d5565b600060f882901c158015906109d557505061800016151590565b60006110478383611729565b905080156110725760008061105c87846117d3565b9150915061106d8789878585611835565b965050505b61107d868587611085565b505050505050565b8015610c9d5773ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561116b5760008273ffffffffffffffffffffffffffffffffffffffff1682612710906040516110e790612507565b600060405180830381858888f193505050503d8060008114611125576040519150601f19603f3d011682016040523d82523d6000602084013e61112a565b606091505b5050905080611165576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610217906125db565b50610c9d565b610c9d73ffffffffffffffffffffffffffffffffffffffff84168383611a7c565b60006111988383611729565b905060006111b082876111ab8a8961095f565b611b09565b905060008083156111cb576111c588856117d3565b90925090505b82156111ff576000806111df858989611b3a565b90925090506111ee8483611bc1565b93506111fa8382611bc1565b925050505b6112168a336112118a8e8b8888611835565b611085565b50505050505050505050565b600061122e8383611729565b9050600061123d828789611b09565b905060008083156112645761125e836112565788611258565b895b856117d3565b90925090505b821561129857600080611278858989611b3a565b90925090506112878483611bc1565b93506112938382611bc1565b925050505b6112168a886112118b8e8b8888611835565b6000806112b78484611729565b9050806112c757849150506112eb565b6000806112d487846117d3565b915091506112e58789888585611835565b93505050505b949350505050565b805160e014156113e75760008273ffffffffffffffffffffffffffffffffffffffff1663d505accf60e01b83604051602001611330929190612478565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052611368916124ac565b6000604051808303816000865af19150503d80600081146113a5576040519150601f19603f3d011682016040523d82523d6000602084013e6113aa565b606091505b50509050806113e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612729565b505b805161010014156114da5760008273ffffffffffffffffffffffffffffffffffffffff16638fcbaf0c60e01b83604051602001611425929190612478565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261145d916124ac565b6000604051808303816000865af19150503d806000811461149a576040519150601f19603f3d011682016040523d82523d6000602084013e61149f565b606091505b5050905080610c9d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612729565b5050565b818101602081015160e01c906024016398f9b46b82148061150257508163bbbc2372145b8061150f57508162154008145b8061151d575081633c3694ab145b8061152b57508163c88ae6dc145b8061153957508163b28ace5f145b806115475750816324abf828145b806115555750816330201ad3145b8061156357508163da6b84af145b8061157157508163f6c1b371145b156115ee5780518073ffffffffffffffffffffffffffffffffffffffff811615806115b1575073ffffffffffffffffffffffffffffffffffffffff811633145b6115e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612797565b50506116fb565b8163077822bd148061160357508163c8b81d63145b80611611575081631c64b820145b8061161f5750816301fb36ba145b156116c9578051810180516020820160005b828110156116c05760209390930180518201519093908073ffffffffffffffffffffffffffffffffffffffff81161580611680575073ffffffffffffffffffffffffffffffffffffffff811633145b6116b6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161021790612797565b5050600101611631565b505050506116fb565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610217906128d0565b50505050565b6000806000905060405160208401600082878984018b8d5af193505050505b95945050505050565b600073ffffffffffffffffffffffffffffffffffffffff831661174e575060006109d5565b60f882901c806117605782915061177d565b620100008316156117755760009150506109d5565b82613fff1691505b7f00000000000000000000000000000000000000000000000000000000000001f482116117aa57816112eb565b7f00000000000000000000000000000000000000000000000000000000000001f4949350505050565b600080806117ed6127106117e78787611c35565b90611ca8565b905061181f6127106117e7837f0000000000000000000000000000000000000000000000000000000000002134611c35565b925061182b818461095f565b9150509250929050565b6000806118428484611bc1565b9050806118525786915050611720565b868111156118ab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180612b196024913960400191505060405180910390fd5b6118d6867f000000000000000000000000ef13101c5bbd737cfb2bf00bbd38c626ad6952f783611085565b83156119a4577f000000000000000000000000ef13101c5bbd737cfb2bf00bbd38c626ad6952f773ffffffffffffffffffffffffffffffffffffffff1663d1f4354b8688876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050600060405180830381600087803b15801561198b57600080fd5b505af115801561199f573d6000803e3d6000fd5b505050505b8215611a6757600154604080517fd1f4354b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff928316600482015288831660248201526044810186905290517f000000000000000000000000ef13101c5bbd737cfb2bf00bbd38c626ad6952f79092169163d1f4354b9160648082019260009290919082900301818387803b158015611a4e57600080fd5b505af1158015611a62573d6000803e3d6000fd5b505050505b611a71878261095f565b979650505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610c9d908490611d29565b600060328411158015611b1b57508183115b611b26576000611b30565b611b30838361095f565b90505b9392505050565b600080611b48856002611ca8565b905073ffffffffffffffffffffffffffffffffffffffff841615611bb95760f883901c8015611bb75762010000841615611baa57613fff8416611ba26127106117e7818411611b975783611b9b565b6127105b8690611c35565b935050611bb7565b6140008416611bb7578192505b505b935093915050565b600082820183811015611b3357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082611c44575060006109d5565b82820282848281611c5157fe5b0414611b33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612af86021913960400191505060405180910390fd5b6000808211611d1857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611d2157fe5b049392505050565b6060611d8b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611e019092919063ffffffff16565b805190915015610c9d57808060200190516020811015611daa57600080fd5b5051610c9d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612b3d602a913960400191505060405180910390fd5b6060611b30848460008585611e1585611f61565b611e8057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611eea57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611ead565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611f4c576040519150601f19603f3d011682016040523d82523d6000602084013e611f51565b606091505b5091509150611a71828286611f67565b3b151590565b60608315611f76575081611b33565b825115611f865782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611fea578181015183820152602001611fd2565b50505050905090810190601f1680156120175780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b80356106a381612ad2565b600082601f830112612040578081fd5b813561205361204e82612ab4565b612a90565b81815291506020808301908481018184028601820187101561207457600080fd5b60005b8481101561209c57813561208a81612ad2565b84529282019290820190600101612077565b505050505092915050565b600082601f8301126120b7578081fd5b81356120c561204e82612ab4565b8181529150602080830190848101818402860182018710156120e657600080fd5b60005b8481101561209c578135845292820192908201906001016120e9565b80357fffffffffffffffffffffffffffffffff00000000000000000000000000000000811681146106a357600080fd5b600082601f830112612145578081fd5b813567ffffffffffffffff81111561215957fe5b61218a60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601612a90565b91508082528360208285010111156121a157600080fd5b8060208401602084013760009082016020015292915050565b6000602082840312156121cb578081fd5b8135611b3381612ad2565b6000602082840312156121e7578081fd5b611b3382612105565b60008060208385031215612202578081fd5b823567ffffffffffffffff80821115612219578283fd5b818501915085601f83011261222c578283fd5b81358181111561223a578384fd5b86602082850101111561224b578384fd5b60209290920196919550909350505050565b60006020828403121561226e578081fd5b813567ffffffffffffffff811115612284578182fd5b82016101e08185031215611b33578182fd5b6000602082840312156122a7578081fd5b813567ffffffffffffffff808211156122be578283fd5b81840191506101e08083870312156122d4578384fd5b6122dd81612a90565b90506122e883612025565b81526122f660208401612025565b602082015260408301356040820152606083013560608201526080830135608082015260a08301358281111561232a578485fd5b61233687828601612030565b60a08301525060c08301358281111561234d578485fd5b61235987828601612135565b60c08301525060e083013582811115612370578485fd5b61237c878286016120a7565b60e0830152506101008084013583811115612395578586fd5b6123a1888287016120a7565b8284015250506101206123b5818501612025565b908201526101406123c7848201612025565b90820152610160838101359082015261018080840135838111156123e9578586fd5b6123f588828701612135565b8284015250506101a0915081830135828201526101c09150612418828401612105565b91810191909152949350505050565b600060208284031215612438578081fd5b5051919050565b60008151815b8181101561245f5760208185018101518683015201612445565b8181111561246d5782828601525b509290920192915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000084168252611b30600483018461243f565b6000611b33828461243f565b7f53494d504c455f535741505f524f55544552000000000000000000000000000081527f312e302e30000000000000000000000000000000000000000000000000000000601282015260170190565b90565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff9485168152928416602084015292166040820152606081019190915260800190565b7fffffffffffffffffffffffffffffffff0000000000000000000000000000000097909716875273ffffffffffffffffffffffffffffffffffffffff95861660208801526040870194909452919093166060850152608084019290925260a083019190915260c082015260e00190565b90815260200190565b60208082526018908201527f4661696c656420746f207472616e736665722045746865720000000000000000604082015260600190565b60208082526036908201527f537461727420696e6465786573206d757374206265203120677265617465722060408201527f7468656e206e756d626572206f662063616c6c65657300000000000000000000606082015260800190565b60208082526028908201527f43616e206e6f742063616c6c20546f6b656e5472616e7366657250726f78792060408201527f436f6e7472616374000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f63616c6c65657320616e642076616c756573206d75737420686176652073616d60408201527f65206c656e677468000000000000000000000000000000000000000000000000606082015260800190565b6020808252600d908201527f5065726d6974206661696c656400000000000000000000000000000000000000604082015260600190565b60208082526016908201527f4d4554484f44204e4f5420494d504c454d454e54454400000000000000000000604082015260600190565b60208082526011908201527f756e617574686f72697a65642075736572000000000000000000000000000000604082015260600190565b60208082526029908201527f7472616e7366657246726f6d206e6f7420616c6c6f77656420666f722065787460408201527f65726e616c43616c6c0000000000000000000000000000000000000000000000606082015260800190565b60208082526013908201527f746f416d6f756e7420697320746f6f206c6f7700000000000000000000000000604082015260600190565b60208082526013908201527f496e636f7272656374206d73672e76616c756500000000000000000000000000604082015260600190565b60208082526014908201527f45787465726e616c2063616c6c206661696c6564000000000000000000000000604082015260600190565b60208082526028908201527f756e7265636f676e697a6564204175677573747573524651206d6574686f642060408201527f73656c6563746f72000000000000000000000000000000000000000000000000606082015260800190565b60208082526030908201527f526563656976656420616d6f756e74206f6620746f6b656e7320617265206c6560408201527f7373207468656e20657870656374656400000000000000000000000000000000606082015260800190565b60208082526011908201527f446561646c696e65206272656163686564000000000000000000000000000000604082015260600190565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126129f5578283fd5b83018035915067ffffffffffffffff821115612a0f578283fd5b6020908101925081023603821315612a2657600080fd5b9250929050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112612a61578283fd5b83018035915067ffffffffffffffff821115612a7b578283fd5b602001915036819003821315612a2657600080fd5b60405181810167ffffffffffffffff81118282101715612aac57fe5b604052919050565b600067ffffffffffffffff821115612ac857fe5b5060209081020190565b73ffffffffffffffffffffffffffffffffffffffff81168114612af457600080fd5b5056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77496e73756666696369656e742062616c616e636520746f2070617920666f7220666565735361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a164736f6c6343000705000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000213400000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000ef13101c5bbd737cfb2bf00bbd38c626ad6952f7000000000000000000000000e92b586627cca7a83dc919cc7127196d70f55a06
-----Decoded View---------------
Arg [0] : _partnerSharePercent (uint256): 8500
Arg [1] : _maxFeePercent (uint256): 500
Arg [2] : _feeClaimer (address): 0xeF13101C5bbD737cFb2bF00Bbd38c626AD6952F7
Arg [3] : _augustusRFQ (address): 0xe92b586627ccA7a83dC919cc7127196d70f55a06
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000002134
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [2] : 000000000000000000000000ef13101c5bbd737cfb2bf00bbd38c626ad6952f7
Arg [3] : 000000000000000000000000e92b586627cca7a83dc919cc7127196d70f55a06
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.