More Info
Private Name Tags
ContractCreator
Multi Chain
Multichain Addresses
16 addresses found via
Latest 25 from a total of 2,762 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Initiate Withdra... | 18211740 | 19 hrs 2 mins ago | IN | 0 ETH | 0.00048468 | ||||
Complete Withdra... | 18210043 | 1 day 45 mins ago | IN | 0 ETH | 0.00047304 | ||||
Complete Withdra... | 18210028 | 1 day 48 mins ago | IN | 0 ETH | 0.00040089 | ||||
Complete Withdra... | 18210018 | 1 day 50 mins ago | IN | 0 ETH | 0.00051612 | ||||
Complete Withdra... | 18210010 | 1 day 52 mins ago | IN | 0 ETH | 0.00051651 | ||||
Complete Withdra... | 18209993 | 1 day 55 mins ago | IN | 0 ETH | 0.00051278 | ||||
Complete Withdra... | 18209986 | 1 day 56 mins ago | IN | 0 ETH | 0.00054789 | ||||
Complete Withdra... | 18209978 | 1 day 58 mins ago | IN | 0 ETH | 0.00056815 | ||||
Complete Withdra... | 18209972 | 1 day 59 mins ago | IN | 0 ETH | 0.00054052 | ||||
Complete Withdra... | 18209967 | 1 day 1 hr ago | IN | 0 ETH | 0.00053899 | ||||
Complete Withdra... | 18209959 | 1 day 1 hr ago | IN | 0 ETH | 0.00056931 | ||||
Complete Withdra... | 18209949 | 1 day 1 hr ago | IN | 0 ETH | 0.00058076 | ||||
Complete Withdra... | 18209938 | 1 day 1 hr ago | IN | 0 ETH | 0.00055984 | ||||
Complete Withdra... | 18209927 | 1 day 1 hr ago | IN | 0 ETH | 0.00059718 | ||||
Complete Withdra... | 18209919 | 1 day 1 hr ago | IN | 0 ETH | 0.00050776 | ||||
Complete Withdra... | 18209904 | 1 day 1 hr ago | IN | 0 ETH | 0.00054053 | ||||
Complete Withdra... | 18209896 | 1 day 1 hr ago | IN | 0 ETH | 0.0005404 | ||||
Complete Withdra... | 18209886 | 1 day 1 hr ago | IN | 0 ETH | 0.00052805 | ||||
Complete Withdra... | 18209874 | 1 day 1 hr ago | IN | 0 ETH | 0.00054616 | ||||
Complete Withdra... | 18209865 | 1 day 1 hr ago | IN | 0 ETH | 0.00056513 | ||||
Complete Withdra... | 18209855 | 1 day 1 hr ago | IN | 0 ETH | 0.00052609 | ||||
Complete Withdra... | 18209847 | 1 day 1 hr ago | IN | 0 ETH | 0.00055481 | ||||
Complete Withdra... | 18209834 | 1 day 1 hr ago | IN | 0 ETH | 0.00051025 | ||||
Complete Withdra... | 18209802 | 1 day 1 hr ago | IN | 0 ETH | 0.00056377 | ||||
Complete Withdra... | 18197982 | 2 days 17 hrs ago | IN | 0 ETH | 0.00057419 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Batcher
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; import {IERC20Permit} from "@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./interfaces/IBatcher.sol"; import "../../interfaces/IVault.sol"; import "./EIP712.sol"; /// @title Batcher /// @author 0xAd1, Bapireddy /// @notice Used to batch user deposits and withdrawals until the next rebalance contract Batcher is IBatcher, EIP712, ReentrancyGuard { using SafeERC20 for IERC20; /// @notice Vault parameters for the batcher VaultInfo public vaultInfo; /// @notice Enforces signature checking on deposits bool public checkValidDepositSignature; /// @notice Creates a new Batcher strictly linked to a vault /// @param _verificationAuthority Address of the verification authority which allows users to deposit /// @param vaultAddress Address of the vault which will be used to deposit and withdraw want tokens /// @param maxAmount Maximum amount of tokens that can be deposited in the vault constructor( address _verificationAuthority, address vaultAddress, uint256 maxAmount ) { verificationAuthority = _verificationAuthority; checkValidDepositSignature = true; require(vaultAddress != address(0), "NULL_ADDRESS"); vaultInfo = VaultInfo({ vaultAddress: vaultAddress, tokenAddress: IVault(vaultAddress).wantToken(), maxAmount: maxAmount }); IERC20(vaultInfo.tokenAddress).approve(vaultAddress, type(uint256).max); } /*/////////////////////////////////////////////////////////////// USER DEPOSIT/WITHDRAWAL LOGIC //////////////////////////////////////////////////////////////*/ /// @notice Ledger to maintain addresses and their amounts to be deposited into vault mapping(address => uint256) public depositLedger; /// @notice Ledger to maintain addresses and their amounts to be withdrawn from vault mapping(address => uint256) public withdrawLedger; /// @notice Address which authorises users to deposit into Batcher address public verificationAuthority; /// @notice Amount of want tokens pending to be deposited uint256 public pendingDeposit; /// @notice Amount of LP tokens pending to be exchanged back to want token uint256 public pendingWithdrawal; /** * @notice Stores the deposits for future batching via periphery * @param amountIn Value of token to be deposited. It will be ignored if txn is sent with native ETH * @param signature signature verifying that recipient has enough karma and is authorized to deposit by brahma * @param recipient address receiving the shares issued by vault */ function depositFunds( uint256 amountIn, bytes memory signature, address recipient, PermitParams memory permit ) external override nonReentrant { validDeposit(recipient, signature); if (permit.value != 0) { IERC20Permit(vaultInfo.tokenAddress).permit( msg.sender, address(this), permit.value, permit.deadline, permit.v, permit.r, permit.s ); } uint256 wantBalanceBeforeTransfer = IERC20(vaultInfo.tokenAddress) .balanceOf(address(this)); IERC20(vaultInfo.tokenAddress).safeTransferFrom( msg.sender, address(this), amountIn ); uint256 wantBalanceAfterTransfer = IERC20(vaultInfo.tokenAddress) .balanceOf(address(this)); /// Check in both cases for want balance increase to be correct assert( wantBalanceAfterTransfer - wantBalanceBeforeTransfer == amountIn ); require( IERC20(vaultInfo.vaultAddress).totalSupply() + pendingDeposit - pendingWithdrawal + amountIn <= vaultInfo.maxAmount, "MAX_LIMIT_EXCEEDED" ); depositLedger[recipient] = depositLedger[recipient] + (amountIn); pendingDeposit = pendingDeposit + amountIn; emit DepositRequest(recipient, vaultInfo.vaultAddress, amountIn); } /** * @notice User deposits vault LP tokens to be withdrawn. Stores the deposits for future batching via periphery * @param amountIn Value of token to be deposited */ function initiateWithdrawal(uint256 amountIn) external override nonReentrant { require(depositLedger[msg.sender] == 0, "DEPOSIT_PENDING"); require(amountIn > 0, "AMOUNT_IN_ZERO"); if (amountIn > userLPTokens[msg.sender]) { IERC20(vaultInfo.vaultAddress).safeTransferFrom( msg.sender, address(this), amountIn - userLPTokens[msg.sender] ); userLPTokens[msg.sender] = 0; } else { userLPTokens[msg.sender] = userLPTokens[msg.sender] - amountIn; } withdrawLedger[msg.sender] = withdrawLedger[msg.sender] + (amountIn); pendingWithdrawal = pendingWithdrawal + amountIn; emit WithdrawRequest(msg.sender, vaultInfo.vaultAddress, amountIn); } /** * @notice Allows user to collect want token back after successfull batch withdrawal * @param amountOut Amount of token to be withdrawn */ function completeWithdrawal(uint256 amountOut, address recipient) external override nonReentrant { require(amountOut != 0, "INVALID_AMOUNTOUT"); // Will revert if not enough balance userWantTokens[recipient] = userWantTokens[recipient] - amountOut; IERC20(vaultInfo.tokenAddress).safeTransfer(recipient, amountOut); emit WithdrawComplete(recipient, vaultInfo.vaultAddress, amountOut); } /** * @notice User deposits vault LP tokens to be withdrawn. Stores the deposits for future batching via periphery * @param cancellationAmount Value of token to be cancelled for withdrawal */ function cancelWithdrawal(uint256 cancellationAmount) external override nonReentrant { require(cancellationAmount > 0, "AMOUNT_IN_ZERO"); require( withdrawLedger[msg.sender] >= cancellationAmount, "NO_WITHDRAWAL_PENDING" ); withdrawLedger[msg.sender] = withdrawLedger[msg.sender] - cancellationAmount; userLPTokens[msg.sender] = userLPTokens[msg.sender] + (cancellationAmount); pendingWithdrawal = pendingWithdrawal - cancellationAmount; emit WithdrawRescinded( msg.sender, vaultInfo.vaultAddress, cancellationAmount ); } /** * @notice Can be used to send LP tokens owed to the recipient * @param amount Amount of LP tokens to withdraw * @param recipient Address to receive the LP tokens */ function claimTokens(uint256 amount, address recipient) public override nonReentrant { require(userLPTokens[recipient] >= amount, "NO_FUNDS"); userLPTokens[recipient] = userLPTokens[recipient] - amount; IERC20(vaultInfo.vaultAddress).safeTransfer(recipient, amount); } /*/////////////////////////////////////////////////////////////// VAULT DEPOSIT/WITHDRAWAL LOGIC //////////////////////////////////////////////////////////////*/ /// @notice Ledger to maintain addresses and vault LP tokens which batcher owes them mapping(address => uint256) public userLPTokens; /// @notice Ledger to maintain addresses and vault want tokens which batcher owes them mapping(address => uint256) public userWantTokens; /** * @notice Performs deposits on the periphery for the supplied users in batch * @param users array of users whose deposits must be resolved */ function batchDeposit(address[] memory users) external override nonReentrant { onlyKeeper(); IVault vault = IVault(vaultInfo.vaultAddress); uint256 amountToDeposit = 0; uint256 oldLPBalance = IERC20(address(vault)).balanceOf(address(this)); // Temprorary array to hold user deposit info and check for duplicate addresses uint256[] memory depositValues = new uint256[](users.length); for (uint256 i = 0; i < users.length; i++) { // Copies deposit value from ledger to temporary array uint256 userDeposit = depositLedger[users[i]]; amountToDeposit = amountToDeposit + userDeposit; depositValues[i] = userDeposit; // deposit ledger for that address is set to zero // Incase of duplicate address sent, new deposit amount used for same user will be 0 depositLedger[users[i]] = 0; } require(amountToDeposit > 0, "NO_DEPOSITS"); uint256 lpTokensReportedByVault = vault.deposit( amountToDeposit, address(this) ); uint256 lpTokensReceived = IERC20(address(vault)).balanceOf( address(this) ) - (oldLPBalance); assert(lpTokensReceived == lpTokensReportedByVault); uint256 totalUsersProcessed = 0; for (uint256 i = 0; i < users.length; i++) { uint256 userAmount = depositValues[i]; // Checks if userAmount is not 0, only then proceed to allocate LP tokens if (userAmount > 0) { uint256 userShare = (userAmount * (lpTokensReceived)) / (amountToDeposit); // Allocating LP tokens to user, can be calimed by the user later by calling claimTokens userLPTokens[users[i]] = userLPTokens[users[i]] + userShare; ++totalUsersProcessed; } } pendingDeposit = pendingDeposit - amountToDeposit; emit BatchDepositSuccessful(lpTokensReceived, totalUsersProcessed); } /** * @notice Performs withdraws on the periphery for the supplied users in batch * @param users array of users whose deposits must be resolved */ function batchWithdraw(address[] memory users) external override nonReentrant { onlyKeeper(); IVault vault = IVault(vaultInfo.vaultAddress); IERC20 token = IERC20(vaultInfo.tokenAddress); uint256 amountToWithdraw = 0; uint256 oldWantBalance = token.balanceOf(address(this)); // Temprorary array to hold user withdrawal info and check for duplicate addresses uint256[] memory withdrawValues = new uint256[](users.length); for (uint256 i = 0; i < users.length; i++) { uint256 userWithdraw = withdrawLedger[users[i]]; amountToWithdraw = amountToWithdraw + userWithdraw; withdrawValues[i] = userWithdraw; // Withdrawal ledger for that address is set to zero // Incase of duplicate address sent, new withdrawal amount used for same user will be 0 withdrawLedger[users[i]] = 0; } require(amountToWithdraw > 0, "NO_WITHDRAWS"); uint256 wantTokensReportedByVault = vault.withdraw( amountToWithdraw, address(this) ); uint256 wantTokensReceived = token.balanceOf(address(this)) - (oldWantBalance); assert(wantTokensReceived == wantTokensReportedByVault); uint256 totalUsersProcessed = 0; for (uint256 i = 0; i < users.length; i++) { uint256 userAmount = withdrawValues[i]; // Checks if userAmount is not 0, only then proceed to allocate want tokens if (userAmount > 0) { uint256 userShare = (userAmount * wantTokensReceived) / amountToWithdraw; // Allocating want tokens to user. Can be claimed by the user by calling completeWithdrawal userWantTokens[users[i]] = userWantTokens[users[i]] + userShare; ++totalUsersProcessed; } } pendingWithdrawal = pendingWithdrawal - amountToWithdraw; emit BatchWithdrawSuccessful(wantTokensReceived, totalUsersProcessed); } /*/////////////////////////////////////////////////////////////// INTERNAL HELPERS //////////////////////////////////////////////////////////////*/ /// @notice Helper to verify signature against verification authority /// @param signature Should be generated by verificationAuthority. Should contain msg.sender function validDeposit(address recipient, bytes memory signature) internal view { if (checkValidDepositSignature) { require( verifySignatureAgainstAuthority( recipient, signature, verificationAuthority ), "INVALID_SIGNATURE" ); } require(withdrawLedger[recipient] == 0, "WITHDRAW_PENDING"); } /*/////////////////////////////////////////////////////////////// MAINTAINANCE ACTIONS //////////////////////////////////////////////////////////////*/ /// @notice Function to set authority address /// @param authority New authority address function setAuthority(address authority) public { onlyGovernance(); // Logging old and new verification authority emit VerificationAuthorityUpdated(verificationAuthority, authority); verificationAuthority = authority; } /// @inheritdoc IBatcher function setVaultLimit(uint256 maxAmount) external override { onlyGovernance(); emit VaultLimitUpdated( vaultInfo.vaultAddress, vaultInfo.maxAmount, maxAmount ); vaultInfo.maxAmount = maxAmount; } /// @notice Function to enable/disable deposit signature check function setDepositSignatureCheck(bool enabled) public { onlyGovernance(); checkValidDepositSignature = enabled; } /// @notice Function to sweep funds out in case of emergency, can only be called by governance /// @param _token Address of token to sweep function sweep(address _token) public nonReentrant { onlyGovernance(); IERC20(_token).transfer( msg.sender, IERC20(_token).balanceOf(address(this)) ); } /*/////////////////////////////////////////////////////////////// ACCESS MODIFERS //////////////////////////////////////////////////////////////*/ /// @notice Helper to get Governance address from Vault contract /// @return Governance address function governance() public view returns (address) { return IVault(vaultInfo.vaultAddress).governance(); } /// @notice Helper to get Keeper address from Vault contract /// @return Keeper address function keeper() public view returns (address) { return IVault(vaultInfo.vaultAddress).keeper(); } /// @notice Helper to assert msg.sender as keeper address function onlyKeeper() internal view { require(msg.sender == keeper(), "ONLY_KEEPER"); } /// @notice Helper to asset msg.sender as governance address function onlyGovernance() internal view { require(governance() == msg.sender, "ONLY_GOV"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; /** * @title IBatcher * @notice A batcher to resolve vault deposits/withdrawals in batches * @dev Provides an interface for Batcher */ interface IBatcher { /// @notice Data structure to store vault info /// @param vaultAddress Address of the vault /// @param tokenAddress Address vault's want token /// @param maxAmount Max amount of tokens to deposit in vault /// @param currentAmount Current amount of wantTokens deposited in the vault struct VaultInfo { address vaultAddress; address tokenAddress; uint256 maxAmount; } /// @notice PermitParams to provide permit for want token deposit approval /// @param value Amount of want tokens to approve /// @param deadline unix timestamp of permit validity /// @param v signarure param /// @param r signarure param /// @param s signarure param struct PermitParams { uint256 value; uint256 deadline; uint8 v; bytes32 r; bytes32 s; } /// @notice Deposit event /// @param sender Address of the depositor /// @param vault Address of the vault /// @param amountIn Tokens deposited event DepositRequest( address indexed sender, address indexed vault, uint256 amountIn ); /// @notice Withdraw initiate event /// @param sender Address of the withdawer /// @param vault Address of the vault /// @param amountOut Tokens deposited event WithdrawRequest( address indexed sender, address indexed vault, uint256 amountOut ); /// @notice Withdraw rescinded/cancelled event /// @param sender Address of the withdawer /// @param vault Address of the vault /// @param amountCancelled Amount requested to be cancelled event WithdrawRescinded( address indexed sender, address indexed vault, uint256 amountCancelled ); /// @notice Batch Deposit event /// @param amountIn Tokens deposited /// @param totalUsers Total number of users in the batch event BatchDepositSuccessful(uint256 amountIn, uint256 totalUsers); /// @notice Batch Withdraw event /// @param amountOut Tokens withdrawn /// @param totalUsers Total number of users in the batch event BatchWithdrawSuccessful(uint256 amountOut, uint256 totalUsers); /// @notice Withdraw complete event /// @param sender Address of the withdawer /// @param vault Address of the vault /// @param amountOut Tokens deposited event WithdrawComplete( address indexed sender, address indexed vault, uint256 amountOut ); /// @notice Verification authority update event /// @param oldVerificationAuthority address of old verification authority /// @param newVerificationAuthority address of new verification authority event VerificationAuthorityUpdated( address indexed oldVerificationAuthority, address indexed newVerificationAuthority ); /// @notice Vault limit update event /// @param vaultAddress address of vault /// @param oldMaxAmount old vault max deposit limit /// @param newMaxAmount new vault max deposit limit event VaultLimitUpdated( address indexed vaultAddress, uint256 oldMaxAmount, uint256 newMaxAmount ); function depositFunds( uint256 amountIn, bytes memory signature, address recipient, PermitParams memory params ) external; function claimTokens(uint256 amount, address recipient) external; function initiateWithdrawal(uint256 amountIn) external; function cancelWithdrawal(uint256 amountIn) external; function completeWithdrawal(uint256 amountOut, address recipient) external; function batchDeposit(address[] memory users) external; function batchWithdraw(address[] memory users) external; function setVaultLimit(uint256 maxLimit) external; }
/// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; interface IVault { function keeper() external view returns (address); function governance() external view returns (address); function wantToken() external view returns (address); function deposit(uint256 amountIn, address receiver) external returns (uint256 shares); function withdraw(uint256 sharesIn, address receiver) external returns (uint256 amountOut); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; /// @title EIP712 /// @author 0xAd1 /// @notice Used to verify signatures contract EIP712 { /// @notice Verifies a signature against alleged signer of the signature /// @param signature Signature to verify /// @param authority Signer of the signature /// @return True if the signature is signed by authority function verifySignatureAgainstAuthority( address recipient, bytes memory signature, address authority ) internal view returns (bool) { bytes32 eip712DomainHash = keccak256( abi.encode( keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ), keccak256(bytes("Batcher")), keccak256(bytes("1")), 1, address(this) ) ); bytes32 hashStruct = keccak256( abi.encode(keccak256("deposit(address owner)"), recipient) ); bytes32 hash = keccak256( abi.encodePacked("\x19\x01", eip712DomainHash, hashStruct) ); address signer = ECDSA.recover(hash, signature); require(signer == authority, "ECDSA: Invalid authority"); require(signer != address(0), "ECDSA: invalid signature"); return true; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
{ "optimizer": { "enabled": true, "runs": 100 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_verificationAuthority","type":"address"},{"internalType":"address","name":"vaultAddress","type":"address"},{"internalType":"uint256","name":"maxAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalUsers","type":"uint256"}],"name":"BatchDepositSuccessful","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalUsers","type":"uint256"}],"name":"BatchWithdrawSuccessful","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"vault","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"DepositRequest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"vaultAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldMaxAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newMaxAmount","type":"uint256"}],"name":"VaultLimitUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldVerificationAuthority","type":"address"},{"indexed":true,"internalType":"address","name":"newVerificationAuthority","type":"address"}],"name":"VerificationAuthorityUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"vault","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"WithdrawComplete","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"vault","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"WithdrawRequest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"vault","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountCancelled","type":"uint256"}],"name":"WithdrawRescinded","type":"event"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"}],"name":"batchDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"}],"name":"batchWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cancellationAmount","type":"uint256"}],"name":"cancelWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkValidDepositSignature","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"completeWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address","name":"recipient","type":"address"},{"components":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct IBatcher.PermitParams","name":"permit","type":"tuple"}],"name":"depositFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"depositLedger","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"initiateWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingWithdrawal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"authority","type":"address"}],"name":"setAuthority","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setDepositSignatureCheck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxAmount","type":"uint256"}],"name":"setVaultLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userLPTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userWantTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultInfo","outputs":[{"internalType":"address","name":"vaultAddress","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"maxAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"verificationAuthority","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawLedger","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162002a6e38038062002a6e83398101604081905262000034916200024b565b60016000819055600780546001600160a01b0319166001600160a01b03868116919091179091556004805460ff19169092179091558216620000ab5760405162461bcd60e51b815260206004820152600c60248201526b4e554c4c5f4144445245535360a01b604482015260640160405180910390fd5b6040518060600160405280836001600160a01b03168152602001836001600160a01b031663d23e04806040518163ffffffff1660e01b815260040160206040518083038186803b158015620000ff57600080fd5b505afa15801562000114573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200013a919062000227565b6001600160a01b03908116825260209182018490528251600180549183166001600160a01b03199283161790559183015160028054918316919093168117909255604092830151600355915163095ea7b360e01b8152918416600483015260001960248301529063095ea7b390604401602060405180830381600087803b158015620001c557600080fd5b505af1158015620001da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020091906200028b565b50505050620002ad565b80516001600160a01b03811681146200022257600080fd5b919050565b60006020828403121562000239578081fd5b62000244826200020a565b9392505050565b60008060006060848603121562000260578182fd5b6200026b846200020a565b92506200027b602085016200020a565b9150604084015190509250925092565b6000602082840312156200029d578081fd5b8151801515811462000244578182fd5b6127b180620002bd6000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80636e164e23116100b8578063aced16611161007c578063aced1661146102d3578063da5f05af146102db578063e6ac418a146102fb578063ec3b613d1461030e578063ec7a0d9814610321578063f64c6f321461033457600080fd5b80636e164e23146102715780637a9e5e4b146102845780637d329284146102975780637e288822146102aa578063a5c82f18146102b357600080fd5b8063474a3b841161010a578063474a3b84146101a8578063501ec738146101bb578063527839b0146101f15780635aa6e6751461021f5780635b9d26581461023457806366b1a5de1461025457600080fd5b806301681a62146101475780630a3d95d81461015c57806312edde5e1461016f5780633efcfda414610182578063431cc3dd14610195575b600080fd5b61015a6101553660046122da565b61033d565b005b61015a61016a3660046123c6565b610483565b61015a61017d3660046123fe565b61049e565b61015a6101903660046123fe565b61064a565b61015a6101a3366004612312565b61078a565b61015a6101b63660046123fe565b610c88565b6001546002546003546101d9926001600160a01b0390811692169083565b6040516101e893929190612547565b60405180910390f35b6102116101ff3660046122da565b600a6020526000908152604090205481565b6040519081526020016101e8565b610227610ce0565b6040516101e89190612533565b6102116102423660046122da565b60066020526000908152604090205481565b6004546102619060ff1681565b60405190151581526020016101e8565b61015a61027f36600461242e565b610d62565b61015a6102923660046122da565b610e2c565b61015a6102a536600461245d565b610e90565b61021160095481565b6102116102c13660046122da565b60056020526000908152604090205481565b610227611235565b6102116102e93660046122da565b600b6020526000908152604090205481565b600754610227906001600160a01b031681565b61015a61031c366004612312565b61127a565b61015a61032f36600461242e565b611771565b61021160085481565b600260005414156103695760405162461bcd60e51b81526004016103609061260f565b60405180910390fd5b6002600055610376611878565b6040516370a0823160e01b81526001600160a01b0382169063a9059cbb90339083906370a08231906103ac903090600401612533565b60206040518083038186803b1580156103c457600080fd5b505afa1580156103d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103fc9190612416565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561044257600080fd5b505af1158015610456573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047a91906123e2565b50506001600055565b61048b611878565b6004805460ff1916911515919091179055565b600260005414156104c15760405162461bcd60e51b81526004016103609061260f565b6002600090815533815260056020526040902054156105145760405162461bcd60e51b815260206004820152600f60248201526e4445504f5349545f50454e44494e4760881b6044820152606401610360565b600081116105345760405162461bcd60e51b8152600401610360906125e7565b336000908152600a602052604090205481111561059557336000818152600a60205260409020546105809190309061056c90856126ce565b6001546001600160a01b03169291906118c4565b336000908152600a60205260408120556105c1565b336000908152600a60205260409020546105b09082906126ce565b336000908152600a60205260409020555b336000908152600660205260409020546105dc908290612677565b336000908152600660205260409020556009546105fa908290612677565b6009556001546040518281526001600160a01b039091169033907fcdb62e3f244f9959bd661d145243fc71558361230885919e11fcc84312d44c7d906020015b60405180910390a3506001600055565b6002600054141561066d5760405162461bcd60e51b81526004016103609061260f565b60026000558061068f5760405162461bcd60e51b8152600401610360906125e7565b336000908152600660205260409020548111156106e65760405162461bcd60e51b81526020600482015260156024820152744e4f5f5749544844524157414c5f50454e44494e4760581b6044820152606401610360565b336000908152600660205260409020546107019082906126ce565b33600090815260066020908152604080832093909355600a90522054610728908290612677565b336000908152600a60205260409020556009546107469082906126ce565b6009556001546040518281526001600160a01b039091169033907f74ab4320d3d056aca1a1c3b9c8130918be071108684dada3ed427567030c49c29060200161063a565b600260005414156107ad5760405162461bcd60e51b81526004016103609061260f565b60026000556107ba611922565b6001546002546040516370a0823160e01b81526001600160a01b039283169290911690600090819083906370a08231906107f8903090600401612533565b60206040518083038186803b15801561081057600080fd5b505afa158015610824573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108489190612416565b90506000855167ffffffffffffffff81111561087457634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561089d578160200160208202803683370190505b50905060005b865181101561099e576000600660008984815181106108d257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054905080856109099190612677565b94508083838151811061092c57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506000600660008a858151811061095e57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555050808061099690612711565b9150506108a3565b50600083116109de5760405162461bcd60e51b815260206004820152600c60248201526b4e4f5f57495448445241575360a01b6044820152606401610360565b604051627b8a6760e11b81526000906001600160a01b0387169062f714ce90610a0d908790309060040161256b565b602060405180830381600087803b158015610a2757600080fd5b505af1158015610a3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5f9190612416565b9050600083866001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610a909190612533565b60206040518083038186803b158015610aa857600080fd5b505afa158015610abc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae09190612416565b610aea91906126ce565b9050818114610b0957634e487b7160e01b600052600160045260246000fd5b6000805b8951811015610c2d576000858281518110610b3857634e487b7160e01b600052603260045260246000fd5b602002602001015190506000811115610c1a57600088610b5886846126af565b610b62919061268f565b905080600b60008e8681518110610b8957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054610bbc9190612677565b600b60008e8681518110610be057634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555083610c1690612711565b9350505b5080610c2581612711565b915050610b0d565b5085600954610c3c91906126ce565b60095560408051838152602081018390527f253f39873a287fb2801f5e791a591779d3ff3e219ec7c9793784a25ba658a759910160405180910390a15050600160005550505050505050565b610c90611878565b60015460035460408051918252602082018490526001600160a01b03909216917fa4f06c0be12cf26ec86218071223d99c438f050503744b62b37a4aceb999a3b5910160405180910390a2600355565b60015460408051635aa6e67560e01b815290516000926001600160a01b031691635aa6e675916004808301926020929190829003018186803b158015610d2557600080fd5b505afa158015610d39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5d91906122f6565b905090565b60026000541415610d855760405162461bcd60e51b81526004016103609061260f565b600260009081556001600160a01b0382168152600a6020526040902054821115610ddc5760405162461bcd60e51b81526020600482015260086024820152674e4f5f46554e445360c01b6044820152606401610360565b6001600160a01b0381166000908152600a6020526040902054610e009083906126ce565b6001600160a01b038083166000908152600a602052604090209190915560015461047a91168284611978565b610e34611878565b6007546040516001600160a01b038084169216907f0c1d6fac887f995d8165f884c34f3de9a2e4c9707aacccf2cf22812377c280af90600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b60026000541415610eb35760405162461bcd60e51b81526004016103609061260f565b6002600055610ec282846119ad565b805115610f68576002548151602083015160408085015160608601516080870151925163d505accf60e01b81523360048201523060248201526044810195909552606485019390935260ff16608484015260a483019190915260c48201526001600160a01b039091169063d505accf9060e401600060405180830381600087803b158015610f4f57600080fd5b505af1158015610f63573d6000803e3d6000fd5b505050505b6002546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610f99903090600401612533565b60206040518083038186803b158015610fb157600080fd5b505afa158015610fc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe99190612416565b600254909150611004906001600160a01b03163330886118c4565b6002546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611035903090600401612533565b60206040518083038186803b15801561104d57600080fd5b505afa158015611061573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110859190612416565b90508561109283836126ce565b146110ad57634e487b7160e01b600052600160045260246000fd5b600354600954600854600154604080516318160ddd60e01b815290518b9493926001600160a01b0316916318160ddd916004808301926020929190829003018186803b1580156110fc57600080fd5b505afa158015611110573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111349190612416565b61113e9190612677565b61114891906126ce565b6111529190612677565b11156111955760405162461bcd60e51b815260206004820152601260248201527113505617d31253525517d15610d15151115160721b6044820152606401610360565b6001600160a01b0384166000908152600560205260409020546111b9908790612677565b6001600160a01b0385166000908152600560205260409020556008546111e0908790612677565b6008556001546040518781526001600160a01b03918216918616907f4ed1a8a57a37b79833de68b3bc01307fc91c77341a669fc487f7e588f986d5ff9060200160405180910390a35050600160005550505050565b6001546040805163aced166160e01b815290516000926001600160a01b03169163aced1661916004808301926020929190829003018186803b158015610d2557600080fd5b6002600054141561129d5760405162461bcd60e51b81526004016103609061260f565b60026000556112aa611922565b6001546040516370a0823160e01b81526001600160a01b0390911690600090819083906370a08231906112e1903090600401612533565b60206040518083038186803b1580156112f957600080fd5b505afa15801561130d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113319190612416565b90506000845167ffffffffffffffff81111561135d57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611386578160200160208202803683370190505b50905060005b8551811015611487576000600560008884815181106113bb57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054905080856113f29190612677565b94508083838151811061141557634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060006005600089858151811061144757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555050808061147f90612711565b91505061138c565b50600083116114c65760405162461bcd60e51b815260206004820152600b60248201526a4e4f5f4445504f5349545360a81b6044820152606401610360565b604051636e553f6560e01b81526000906001600160a01b03861690636e553f65906114f7908790309060040161256b565b602060405180830381600087803b15801561151157600080fd5b505af1158015611525573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115499190612416565b9050600083866001600160a01b03166370a08231306040518263ffffffff1660e01b815260040161157a9190612533565b60206040518083038186803b15801561159257600080fd5b505afa1580156115a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ca9190612416565b6115d491906126ce565b90508181146115f357634e487b7160e01b600052600160045260246000fd5b6000805b885181101561171757600085828151811061162257634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008111156117045760008861164286846126af565b61164c919061268f565b905080600a60008d868151811061167357634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020546116a69190612677565b600a60008d86815181106116ca57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508361170090612711565b9350505b508061170f81612711565b9150506115f7565b508560085461172691906126ce565b60085560408051838152602081018390527f8211507759e56fdc649418f9277798429bc90613b9b4a54e7b08458538b5b6f0910160405180910390a150506001600055505050505050565b600260005414156117945760405162461bcd60e51b81526004016103609061260f565b6002600055816117da5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d05353d5539513d555607a1b6044820152606401610360565b6001600160a01b0381166000908152600b60205260409020546117fe9083906126ce565b6001600160a01b038083166000908152600b602052604090209190915560025461182a91168284611978565b6001546040518381526001600160a01b03918216918316907fce67cd4e23f137729b8b844fbf25399d5130346f0d62c18afdc0a943e1d1f1019060200160405180910390a350506001600055565b33611881610ce0565b6001600160a01b0316146118c25760405162461bcd60e51b815260206004820152600860248201526727a7262cafa3a7ab60c11b6044820152606401610360565b565b61191c846323b872dd60e01b8585856040516024016118e593929190612547565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611a6e565b50505050565b61192a611235565b6001600160a01b0316336001600160a01b0316146118c25760405162461bcd60e51b815260206004820152600b60248201526a27a7262cafa5a2a2a822a960a91b6044820152606401610360565b6040516001600160a01b0383166024820152604481018290526119a890849063a9059cbb60e01b906064016118e5565b505050565b60045460ff1615611a11576007546119d190839083906001600160a01b0316611b40565b611a115760405162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b6044820152606401610360565b6001600160a01b03821660009081526006602052604090205415611a6a5760405162461bcd60e51b815260206004820152601060248201526f57495448445241575f50454e44494e4760801b6044820152606401610360565b5050565b6000611ac3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d459092919063ffffffff16565b8051909150156119a85780806020019051810190611ae191906123e2565b6119a85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610360565b60408051808201825260078152662130ba31b432b960c91b602091820152815180830183526001808252603160f81b9183019190915282517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818401527fe9d76cee0cf4473cddcc3e081ef9f2caab96302d23d7ba675ea190f2188e546f818501527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101919091523060a0808301919091528351808303909101815260c08201909352825192909101919091206000918290611c4a907f2fe9f7b6a29d4dd4b42345a1abcb25508fd8a183b707ff2d4a5130e9ccb1926190889060e00161256b565b60405160208183030381529060405280519060200120905060008282604051602001611c8d92919061190160f01b81526002810192909252602282015260420190565b6040516020818303038152906040528051906020012090506000611cb18288611d5c565b9050856001600160a01b0316816001600160a01b031614611d0f5760405162461bcd60e51b815260206004820152601860248201527745434453413a20496e76616c696420617574686f7269747960401b6044820152606401610360565b6001600160a01b038116611d355760405162461bcd60e51b8152600401610360906125b5565b60019450505050505b9392505050565b6060611d548484600085611d80565b949350505050565b6000806000611d6b8585611eb1565b91509150611d7881611f21565b509392505050565b606082471015611de15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610360565b6001600160a01b0385163b611e385760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610360565b600080866001600160a01b03168587604051611e549190612517565b60006040518083038185875af1925050503d8060008114611e91576040519150601f19603f3d011682016040523d82523d6000602084013e611e96565b606091505b5091509150611ea68282866120f5565b979650505050505050565b600080825160411415611ee85760208301516040840151606085015160001a611edc8782858561212e565b94509450505050611f1a565b825160401415611f125760208301516040840151611f07868383612211565b935093505050611f1a565b506000905060025b9250929050565b6000816004811115611f4357634e487b7160e01b600052602160045260246000fd5b1415611f4c5750565b6001816004811115611f6e57634e487b7160e01b600052602160045260246000fd5b1415611f8c5760405162461bcd60e51b8152600401610360906125b5565b6002816004811115611fae57634e487b7160e01b600052602160045260246000fd5b1415611ffc5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610360565b600381600481111561201e57634e487b7160e01b600052602160045260246000fd5b14156120775760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610360565b600481600481111561209957634e487b7160e01b600052602160045260246000fd5b14156120f25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610360565b50565b60608315612104575081611d3e565b8251156121145782518084602001fd5b8160405162461bcd60e51b81526004016103609190612582565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b0383111561215b5750600090506003612208565b8460ff16601b1415801561217357508460ff16601c14155b156121845750600090506004612208565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156121d8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661220157600060019250925050612208565b9150600090505b94509492505050565b6000806001600160ff1b0383168161222e60ff86901c601b612677565b905061223c8782888561212e565b935093505050935093915050565b803561225581612758565b919050565b600060a0828403121561226b578081fd5b60405160a0810181811067ffffffffffffffff8211171561228e5761228e612742565b80604052508091508235815260208301356020820152604083013560ff811681146122b857600080fd5b8060408301525060608301356060820152608083013560808201525092915050565b6000602082840312156122eb578081fd5b8135611d3e81612758565b600060208284031215612307578081fd5b8151611d3e81612758565b60006020808385031215612324578182fd5b823567ffffffffffffffff8082111561233b578384fd5b818501915085601f83011261234e578384fd5b81358181111561236057612360612742565b8060051b9150612371848301612646565b8181528481019084860184860187018a101561238b578788fd5b8795505b838610156123b957803594506123a485612758565b8483526001959095019491860191860161238f565b5098975050505050505050565b6000602082840312156123d7578081fd5b8135611d3e8161276d565b6000602082840312156123f3578081fd5b8151611d3e8161276d565b60006020828403121561240f578081fd5b5035919050565b600060208284031215612427578081fd5b5051919050565b60008060408385031215612440578081fd5b82359150602083013561245281612758565b809150509250929050565b6000806000806101008587031215612473578182fd5b8435935060208086013567ffffffffffffffff80821115612492578485fd5b818801915088601f8301126124a5578485fd5b8135818111156124b7576124b7612742565b6124c9601f8201601f19168501612646565b915080825289848285010111156124de578586fd5b808484018584013781019092018490525092506124fd6040860161224a565b915061250c866060870161225a565b905092959194509250565b600082516125298184602087016126e5565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b9182526001600160a01b0316602082015260400190565b60208152600082518060208401526125a18160408501602087016126e5565b601f01601f19169190910160400192915050565b60208082526018908201527745434453413a20696e76616c6964207369676e617475726560401b604082015260600190565b6020808252600e908201526d414d4f554e545f494e5f5a45524f60901b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561266f5761266f612742565b604052919050565b6000821982111561268a5761268a61272c565b500190565b6000826126aa57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156126c9576126c961272c565b500290565b6000828210156126e0576126e061272c565b500390565b60005b838110156127005781810151838201526020016126e8565b8381111561191c5750506000910152565b60006000198214156127255761272561272c565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146120f257600080fd5b80151581146120f257600080fdfea2646970667358221220eb126382df9947348faee1ce962fa5f8add6dba8d86ff597d220d63a7a95cdce64736f6c63430008040033000000000000000000000000687f4304df62449dbc6c95fe9a8cb1153d40d42e0000000000000000000000003c4fe0db16c9b521480c43856ba3196a9fa50e08000000000000000000000000000000000000000000000000000001d2d3501200
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c80636e164e23116100b8578063aced16611161007c578063aced1661146102d3578063da5f05af146102db578063e6ac418a146102fb578063ec3b613d1461030e578063ec7a0d9814610321578063f64c6f321461033457600080fd5b80636e164e23146102715780637a9e5e4b146102845780637d329284146102975780637e288822146102aa578063a5c82f18146102b357600080fd5b8063474a3b841161010a578063474a3b84146101a8578063501ec738146101bb578063527839b0146101f15780635aa6e6751461021f5780635b9d26581461023457806366b1a5de1461025457600080fd5b806301681a62146101475780630a3d95d81461015c57806312edde5e1461016f5780633efcfda414610182578063431cc3dd14610195575b600080fd5b61015a6101553660046122da565b61033d565b005b61015a61016a3660046123c6565b610483565b61015a61017d3660046123fe565b61049e565b61015a6101903660046123fe565b61064a565b61015a6101a3366004612312565b61078a565b61015a6101b63660046123fe565b610c88565b6001546002546003546101d9926001600160a01b0390811692169083565b6040516101e893929190612547565b60405180910390f35b6102116101ff3660046122da565b600a6020526000908152604090205481565b6040519081526020016101e8565b610227610ce0565b6040516101e89190612533565b6102116102423660046122da565b60066020526000908152604090205481565b6004546102619060ff1681565b60405190151581526020016101e8565b61015a61027f36600461242e565b610d62565b61015a6102923660046122da565b610e2c565b61015a6102a536600461245d565b610e90565b61021160095481565b6102116102c13660046122da565b60056020526000908152604090205481565b610227611235565b6102116102e93660046122da565b600b6020526000908152604090205481565b600754610227906001600160a01b031681565b61015a61031c366004612312565b61127a565b61015a61032f36600461242e565b611771565b61021160085481565b600260005414156103695760405162461bcd60e51b81526004016103609061260f565b60405180910390fd5b6002600055610376611878565b6040516370a0823160e01b81526001600160a01b0382169063a9059cbb90339083906370a08231906103ac903090600401612533565b60206040518083038186803b1580156103c457600080fd5b505afa1580156103d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103fc9190612416565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561044257600080fd5b505af1158015610456573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047a91906123e2565b50506001600055565b61048b611878565b6004805460ff1916911515919091179055565b600260005414156104c15760405162461bcd60e51b81526004016103609061260f565b6002600090815533815260056020526040902054156105145760405162461bcd60e51b815260206004820152600f60248201526e4445504f5349545f50454e44494e4760881b6044820152606401610360565b600081116105345760405162461bcd60e51b8152600401610360906125e7565b336000908152600a602052604090205481111561059557336000818152600a60205260409020546105809190309061056c90856126ce565b6001546001600160a01b03169291906118c4565b336000908152600a60205260408120556105c1565b336000908152600a60205260409020546105b09082906126ce565b336000908152600a60205260409020555b336000908152600660205260409020546105dc908290612677565b336000908152600660205260409020556009546105fa908290612677565b6009556001546040518281526001600160a01b039091169033907fcdb62e3f244f9959bd661d145243fc71558361230885919e11fcc84312d44c7d906020015b60405180910390a3506001600055565b6002600054141561066d5760405162461bcd60e51b81526004016103609061260f565b60026000558061068f5760405162461bcd60e51b8152600401610360906125e7565b336000908152600660205260409020548111156106e65760405162461bcd60e51b81526020600482015260156024820152744e4f5f5749544844524157414c5f50454e44494e4760581b6044820152606401610360565b336000908152600660205260409020546107019082906126ce565b33600090815260066020908152604080832093909355600a90522054610728908290612677565b336000908152600a60205260409020556009546107469082906126ce565b6009556001546040518281526001600160a01b039091169033907f74ab4320d3d056aca1a1c3b9c8130918be071108684dada3ed427567030c49c29060200161063a565b600260005414156107ad5760405162461bcd60e51b81526004016103609061260f565b60026000556107ba611922565b6001546002546040516370a0823160e01b81526001600160a01b039283169290911690600090819083906370a08231906107f8903090600401612533565b60206040518083038186803b15801561081057600080fd5b505afa158015610824573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108489190612416565b90506000855167ffffffffffffffff81111561087457634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561089d578160200160208202803683370190505b50905060005b865181101561099e576000600660008984815181106108d257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054905080856109099190612677565b94508083838151811061092c57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506000600660008a858151811061095e57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555050808061099690612711565b9150506108a3565b50600083116109de5760405162461bcd60e51b815260206004820152600c60248201526b4e4f5f57495448445241575360a01b6044820152606401610360565b604051627b8a6760e11b81526000906001600160a01b0387169062f714ce90610a0d908790309060040161256b565b602060405180830381600087803b158015610a2757600080fd5b505af1158015610a3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5f9190612416565b9050600083866001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610a909190612533565b60206040518083038186803b158015610aa857600080fd5b505afa158015610abc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae09190612416565b610aea91906126ce565b9050818114610b0957634e487b7160e01b600052600160045260246000fd5b6000805b8951811015610c2d576000858281518110610b3857634e487b7160e01b600052603260045260246000fd5b602002602001015190506000811115610c1a57600088610b5886846126af565b610b62919061268f565b905080600b60008e8681518110610b8957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054610bbc9190612677565b600b60008e8681518110610be057634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555083610c1690612711565b9350505b5080610c2581612711565b915050610b0d565b5085600954610c3c91906126ce565b60095560408051838152602081018390527f253f39873a287fb2801f5e791a591779d3ff3e219ec7c9793784a25ba658a759910160405180910390a15050600160005550505050505050565b610c90611878565b60015460035460408051918252602082018490526001600160a01b03909216917fa4f06c0be12cf26ec86218071223d99c438f050503744b62b37a4aceb999a3b5910160405180910390a2600355565b60015460408051635aa6e67560e01b815290516000926001600160a01b031691635aa6e675916004808301926020929190829003018186803b158015610d2557600080fd5b505afa158015610d39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5d91906122f6565b905090565b60026000541415610d855760405162461bcd60e51b81526004016103609061260f565b600260009081556001600160a01b0382168152600a6020526040902054821115610ddc5760405162461bcd60e51b81526020600482015260086024820152674e4f5f46554e445360c01b6044820152606401610360565b6001600160a01b0381166000908152600a6020526040902054610e009083906126ce565b6001600160a01b038083166000908152600a602052604090209190915560015461047a91168284611978565b610e34611878565b6007546040516001600160a01b038084169216907f0c1d6fac887f995d8165f884c34f3de9a2e4c9707aacccf2cf22812377c280af90600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b60026000541415610eb35760405162461bcd60e51b81526004016103609061260f565b6002600055610ec282846119ad565b805115610f68576002548151602083015160408085015160608601516080870151925163d505accf60e01b81523360048201523060248201526044810195909552606485019390935260ff16608484015260a483019190915260c48201526001600160a01b039091169063d505accf9060e401600060405180830381600087803b158015610f4f57600080fd5b505af1158015610f63573d6000803e3d6000fd5b505050505b6002546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610f99903090600401612533565b60206040518083038186803b158015610fb157600080fd5b505afa158015610fc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe99190612416565b600254909150611004906001600160a01b03163330886118c4565b6002546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611035903090600401612533565b60206040518083038186803b15801561104d57600080fd5b505afa158015611061573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110859190612416565b90508561109283836126ce565b146110ad57634e487b7160e01b600052600160045260246000fd5b600354600954600854600154604080516318160ddd60e01b815290518b9493926001600160a01b0316916318160ddd916004808301926020929190829003018186803b1580156110fc57600080fd5b505afa158015611110573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111349190612416565b61113e9190612677565b61114891906126ce565b6111529190612677565b11156111955760405162461bcd60e51b815260206004820152601260248201527113505617d31253525517d15610d15151115160721b6044820152606401610360565b6001600160a01b0384166000908152600560205260409020546111b9908790612677565b6001600160a01b0385166000908152600560205260409020556008546111e0908790612677565b6008556001546040518781526001600160a01b03918216918616907f4ed1a8a57a37b79833de68b3bc01307fc91c77341a669fc487f7e588f986d5ff9060200160405180910390a35050600160005550505050565b6001546040805163aced166160e01b815290516000926001600160a01b03169163aced1661916004808301926020929190829003018186803b158015610d2557600080fd5b6002600054141561129d5760405162461bcd60e51b81526004016103609061260f565b60026000556112aa611922565b6001546040516370a0823160e01b81526001600160a01b0390911690600090819083906370a08231906112e1903090600401612533565b60206040518083038186803b1580156112f957600080fd5b505afa15801561130d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113319190612416565b90506000845167ffffffffffffffff81111561135d57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611386578160200160208202803683370190505b50905060005b8551811015611487576000600560008884815181106113bb57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054905080856113f29190612677565b94508083838151811061141557634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060006005600089858151811061144757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555050808061147f90612711565b91505061138c565b50600083116114c65760405162461bcd60e51b815260206004820152600b60248201526a4e4f5f4445504f5349545360a81b6044820152606401610360565b604051636e553f6560e01b81526000906001600160a01b03861690636e553f65906114f7908790309060040161256b565b602060405180830381600087803b15801561151157600080fd5b505af1158015611525573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115499190612416565b9050600083866001600160a01b03166370a08231306040518263ffffffff1660e01b815260040161157a9190612533565b60206040518083038186803b15801561159257600080fd5b505afa1580156115a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ca9190612416565b6115d491906126ce565b90508181146115f357634e487b7160e01b600052600160045260246000fd5b6000805b885181101561171757600085828151811061162257634e487b7160e01b600052603260045260246000fd5b6020026020010151905060008111156117045760008861164286846126af565b61164c919061268f565b905080600a60008d868151811061167357634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020546116a69190612677565b600a60008d86815181106116ca57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055508361170090612711565b9350505b508061170f81612711565b9150506115f7565b508560085461172691906126ce565b60085560408051838152602081018390527f8211507759e56fdc649418f9277798429bc90613b9b4a54e7b08458538b5b6f0910160405180910390a150506001600055505050505050565b600260005414156117945760405162461bcd60e51b81526004016103609061260f565b6002600055816117da5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d05353d5539513d555607a1b6044820152606401610360565b6001600160a01b0381166000908152600b60205260409020546117fe9083906126ce565b6001600160a01b038083166000908152600b602052604090209190915560025461182a91168284611978565b6001546040518381526001600160a01b03918216918316907fce67cd4e23f137729b8b844fbf25399d5130346f0d62c18afdc0a943e1d1f1019060200160405180910390a350506001600055565b33611881610ce0565b6001600160a01b0316146118c25760405162461bcd60e51b815260206004820152600860248201526727a7262cafa3a7ab60c11b6044820152606401610360565b565b61191c846323b872dd60e01b8585856040516024016118e593929190612547565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611a6e565b50505050565b61192a611235565b6001600160a01b0316336001600160a01b0316146118c25760405162461bcd60e51b815260206004820152600b60248201526a27a7262cafa5a2a2a822a960a91b6044820152606401610360565b6040516001600160a01b0383166024820152604481018290526119a890849063a9059cbb60e01b906064016118e5565b505050565b60045460ff1615611a11576007546119d190839083906001600160a01b0316611b40565b611a115760405162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b6044820152606401610360565b6001600160a01b03821660009081526006602052604090205415611a6a5760405162461bcd60e51b815260206004820152601060248201526f57495448445241575f50454e44494e4760801b6044820152606401610360565b5050565b6000611ac3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d459092919063ffffffff16565b8051909150156119a85780806020019051810190611ae191906123e2565b6119a85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610360565b60408051808201825260078152662130ba31b432b960c91b602091820152815180830183526001808252603160f81b9183019190915282517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818401527fe9d76cee0cf4473cddcc3e081ef9f2caab96302d23d7ba675ea190f2188e546f818501527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101919091523060a0808301919091528351808303909101815260c08201909352825192909101919091206000918290611c4a907f2fe9f7b6a29d4dd4b42345a1abcb25508fd8a183b707ff2d4a5130e9ccb1926190889060e00161256b565b60405160208183030381529060405280519060200120905060008282604051602001611c8d92919061190160f01b81526002810192909252602282015260420190565b6040516020818303038152906040528051906020012090506000611cb18288611d5c565b9050856001600160a01b0316816001600160a01b031614611d0f5760405162461bcd60e51b815260206004820152601860248201527745434453413a20496e76616c696420617574686f7269747960401b6044820152606401610360565b6001600160a01b038116611d355760405162461bcd60e51b8152600401610360906125b5565b60019450505050505b9392505050565b6060611d548484600085611d80565b949350505050565b6000806000611d6b8585611eb1565b91509150611d7881611f21565b509392505050565b606082471015611de15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610360565b6001600160a01b0385163b611e385760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610360565b600080866001600160a01b03168587604051611e549190612517565b60006040518083038185875af1925050503d8060008114611e91576040519150601f19603f3d011682016040523d82523d6000602084013e611e96565b606091505b5091509150611ea68282866120f5565b979650505050505050565b600080825160411415611ee85760208301516040840151606085015160001a611edc8782858561212e565b94509450505050611f1a565b825160401415611f125760208301516040840151611f07868383612211565b935093505050611f1a565b506000905060025b9250929050565b6000816004811115611f4357634e487b7160e01b600052602160045260246000fd5b1415611f4c5750565b6001816004811115611f6e57634e487b7160e01b600052602160045260246000fd5b1415611f8c5760405162461bcd60e51b8152600401610360906125b5565b6002816004811115611fae57634e487b7160e01b600052602160045260246000fd5b1415611ffc5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610360565b600381600481111561201e57634e487b7160e01b600052602160045260246000fd5b14156120775760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610360565b600481600481111561209957634e487b7160e01b600052602160045260246000fd5b14156120f25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610360565b50565b60608315612104575081611d3e565b8251156121145782518084602001fd5b8160405162461bcd60e51b81526004016103609190612582565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b0383111561215b5750600090506003612208565b8460ff16601b1415801561217357508460ff16601c14155b156121845750600090506004612208565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156121d8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661220157600060019250925050612208565b9150600090505b94509492505050565b6000806001600160ff1b0383168161222e60ff86901c601b612677565b905061223c8782888561212e565b935093505050935093915050565b803561225581612758565b919050565b600060a0828403121561226b578081fd5b60405160a0810181811067ffffffffffffffff8211171561228e5761228e612742565b80604052508091508235815260208301356020820152604083013560ff811681146122b857600080fd5b8060408301525060608301356060820152608083013560808201525092915050565b6000602082840312156122eb578081fd5b8135611d3e81612758565b600060208284031215612307578081fd5b8151611d3e81612758565b60006020808385031215612324578182fd5b823567ffffffffffffffff8082111561233b578384fd5b818501915085601f83011261234e578384fd5b81358181111561236057612360612742565b8060051b9150612371848301612646565b8181528481019084860184860187018a101561238b578788fd5b8795505b838610156123b957803594506123a485612758565b8483526001959095019491860191860161238f565b5098975050505050505050565b6000602082840312156123d7578081fd5b8135611d3e8161276d565b6000602082840312156123f3578081fd5b8151611d3e8161276d565b60006020828403121561240f578081fd5b5035919050565b600060208284031215612427578081fd5b5051919050565b60008060408385031215612440578081fd5b82359150602083013561245281612758565b809150509250929050565b6000806000806101008587031215612473578182fd5b8435935060208086013567ffffffffffffffff80821115612492578485fd5b818801915088601f8301126124a5578485fd5b8135818111156124b7576124b7612742565b6124c9601f8201601f19168501612646565b915080825289848285010111156124de578586fd5b808484018584013781019092018490525092506124fd6040860161224a565b915061250c866060870161225a565b905092959194509250565b600082516125298184602087016126e5565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b9182526001600160a01b0316602082015260400190565b60208152600082518060208401526125a18160408501602087016126e5565b601f01601f19169190910160400192915050565b60208082526018908201527745434453413a20696e76616c6964207369676e617475726560401b604082015260600190565b6020808252600e908201526d414d4f554e545f494e5f5a45524f60901b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561266f5761266f612742565b604052919050565b6000821982111561268a5761268a61272c565b500190565b6000826126aa57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156126c9576126c961272c565b500290565b6000828210156126e0576126e061272c565b500390565b60005b838110156127005781810151838201526020016126e8565b8381111561191c5750506000910152565b60006000198214156127255761272561272c565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146120f257600080fd5b80151581146120f257600080fdfea2646970667358221220eb126382df9947348faee1ce962fa5f8add6dba8d86ff597d220d63a7a95cdce64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000687f4304df62449dbc6c95fe9a8cb1153d40d42e0000000000000000000000003c4fe0db16c9b521480c43856ba3196a9fa50e08000000000000000000000000000000000000000000000000000001d2d3501200
-----Decoded View---------------
Arg [0] : _verificationAuthority (address): 0x687f4304Df62449dBc6C95FE9A8cb1153d40D42e
Arg [1] : vaultAddress (address): 0x3c4Fe0db16c9b521480c43856ba3196A9fa50E08
Arg [2] : maxAmount (uint256): 2005000000000
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000687f4304df62449dbc6c95fe9a8cb1153d40d42e
Arg [1] : 0000000000000000000000003c4fe0db16c9b521480c43856ba3196a9fa50e08
Arg [2] : 000000000000000000000000000000000000000000000000000001d2d3501200
Loading...
Loading
Loading...
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.