Verified contractExactMIT
WithdrawActionExecutor
Address0x734458ecbd15beb5942166268a97b38fdf641002
- Balance
0 ETH
- Transactions
0
- Compiler
solc 0.8.34
- Same code
Only this contract
Details
- Compiler
- solc 0.8.34+commit.80d5c536
- Language
- solidity
- Optimization
- Yes, 44,444,444 runs
- EVM version
- osaka
- Via IR
- yes
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,154,275
- Creation transaction
- 0xd1391b8cad…b9bce878eb
9 files
- src/executors/WithdrawActionExecutor.solmain1.47 KB
- lib/ks-common-sc/lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol182 B
- lib/ks-common-sc/lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol2.78 KB
- lib/ks-common-sc/src/libraries/CustomRevert.sol4.75 KB
- lib/ks-common-sc/src/libraries/calldata/CalldataDecoder.sol4.99 KB
- lib/ks-common-sc/src/libraries/token/TokenHelper.sol8.42 KB
- src/base/DelegatecallGuard.sol800 B
- src/interfaces/IKSActionExecutor.sol528 B
- src/interfaces/executors/IKSWithdrawActionExecutor.sol465 B
src/executors/WithdrawActionExecutor.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.34;
import {IKSActionExecutor} from '../interfaces/IKSActionExecutor.sol';
import {IKSWithdrawActionExecutor} from '../interfaces/executors/IKSWithdrawActionExecutor.sol';
import {CalldataDecoder} from 'ks-common-sc/src/libraries/calldata/CalldataDecoder.sol';
import {TokenHelper} from 'ks-common-sc/src/libraries/token/TokenHelper.sol';
import {DelegatecallGuard} from '../base/DelegatecallGuard.sol';
/// @notice Sends the inbox's whole balance of each token to a single signed
/// recipient.
contract WithdrawActionExecutor is IKSActionExecutor, IKSWithdrawActionExecutor, DelegatecallGuard {
using TokenHelper for address;
using CalldataDecoder for bytes;
/// @dev `intentData` is `abi.encode(address recipient)`, `additionalData` is
/// `abi.encode(address[] tokens)`.
function execute(bytes calldata intentData, bytes calldata additionalData)
external
payable
onlyDelegatecall
returns (bytes memory)
{
address recipient = intentData.decodeAddress(0);
address[] calldata tokens = additionalData.decodeAddressArray(0);
uint256[] memory amounts = new uint256[](tokens.length);
for (uint256 i = 0; i < tokens.length; i++) {
uint256 amount = tokens[i].selfBalance();
tokens[i].safeTransfer(recipient, amount);
amounts[i] = amount;
}
emit ExecuteWithdraw(tokens, amounts, recipient);
return abi.encode(amounts);
}
}
lib/ks-common-sc/lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)
pragma solidity >=0.4.16;
import {IERC20} from "../token/ERC20/IERC20.sol";
lib/ks-common-sc/lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)
pragma solidity >=0.4.16;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
lib/ks-common-sc/src/libraries/CustomRevert.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title Library for reverting with custom errors efficiently
/// @notice Contains functions for reverting with custom errors with different argument types efficiently
/// @dev To use this library, declare `using CustomRevert for bytes4;` and replace `revert CustomError()` with
/// `CustomError.selector.revertWith()`
/// @dev The functions may tamper with the free memory pointer but it is fine since the call context is exited immediately
library CustomRevert {
/// @dev ERC-7751 error for wrapping bubbled up reverts
error WrappedError(address target, bytes4 selector, bytes reason, bytes details);
/// @dev Reverts with the selector of a custom error in the scratch space
function revertWith(bytes4 selector) internal pure {
assembly ('memory-safe') {
mstore(0, selector)
revert(0, 0x04)
}
}
/// @dev Reverts with a custom error with an address argument in the scratch space
function revertWith(bytes4 selector, address addr) internal pure {
assembly ('memory-safe') {
mstore(0, selector)
mstore(0x04, and(addr, 0xffffffffffffffffffffffffffffffffffffffff))
revert(0, 0x24)
}
}
/// @dev Reverts with a custom error with an int24 argument in the scratch space
function revertWith(bytes4 selector, int24 value) internal pure {
assembly ('memory-safe') {
mstore(0, selector)
mstore(0x04, signextend(2, value))
revert(0, 0x24)
}
}
/// @dev Reverts with a custom error with a uint160 argument in the scratch space
function revertWith(bytes4 selector, uint160 value) internal pure {
assembly ('memory-safe') {
mstore(0, selector)
mstore(0x04, and(value, 0xffffffffffffffffffffffffffffffffffffffff))
revert(0, 0x24)
}
}
/// @dev Reverts with a custom error with two int24 arguments
function revertWith(bytes4 selector, int24 value1, int24 value2) internal pure {
assembly ('memory-safe') {
let fmp := mload(0x40)
mstore(fmp, selector)
mstore(add(fmp, 0x04), signextend(2, value1))
mstore(add(fmp, 0x24), signextend(2, value2))
revert(fmp, 0x44)
}
}
/// @dev Reverts with a custom error with two uint160 arguments
function revertWith(bytes4 selector, uint160 value1, uint160 value2) internal pure {
assembly ('memory-safe') {
let fmp := mload(0x40)
mstore(fmp, selector)
mstore(add(fmp, 0x04), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))
mstore(add(fmp, 0x24), and(value2, 0xffffffffffffffffffffffffffffffffffffffff))
revert(fmp, 0x44)
}
}
/// @dev Reverts with a custom error with two address arguments
function revertWith(bytes4 selector, address value1, address value2) internal pure {
assembly ('memory-safe') {
let fmp := mload(0x40)
mstore(fmp, selector)
mstore(add(fmp, 0x04), and(value1, 0xffffffffffffffffffffffffffffffffffffffff))
mstore(add(fmp, 0x24), and(value2, 0xffffffffffffffffffffffffffffffffffffffff))
revert(fmp, 0x44)
}
}
/// @notice bubble up the revert message returned by a call and revert with a wrapped ERC-7751 error
/// @dev this method can be vulnerable to revert data bombs
function bubbleUpAndRevertWith(
address revertingContract,
bytes4 revertingFunctionSelector,
bytes4 additionalContext
) internal pure {
bytes4 wrappedErrorSelector = WrappedError.selector;
assembly ('memory-safe') {
// Ensure the size of the revert data is a multiple of 32 bytes
let encodedDataSize := mul(div(add(returndatasize(), 31), 32), 32)
let fmp := mload(0x40)
// Encode wrapped error selector, address, function selector, offset, additional context, size, revert reason
mstore(fmp, wrappedErrorSelector)
mstore(add(fmp, 0x04), and(revertingContract, 0xffffffffffffffffffffffffffffffffffffffff))
mstore(
add(fmp, 0x24),
and(
revertingFunctionSelector,
0xffffffff00000000000000000000000000000000000000000000000000000000
)
)
// offset revert reason
mstore(add(fmp, 0x44), 0x80)
// offset additional context
mstore(add(fmp, 0x64), add(0xa0, encodedDataSize))
// size revert reason
mstore(add(fmp, 0x84), returndatasize())
// revert reason
returndatacopy(add(fmp, 0xa4), 0, returndatasize())
// size additional context
mstore(add(fmp, add(0xa4, encodedDataSize)), 0x04)
// additional context
mstore(
add(fmp, add(0xc4, encodedDataSize)),
and(additionalContext, 0xffffffff00000000000000000000000000000000000000000000000000000000)
)
revert(fmp, add(0xe4, encodedDataSize))
}
}
}
lib/ks-common-sc/src/libraries/calldata/CalldataDecoder.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title Library for abi decoding in calldata
library CalldataDecoder {
error SliceOutOfBounds();
/// @notice equivalent to SliceOutOfBounds.selector, stored in least-significant bits
uint256 internal constant SLICE_ERROR_SELECTOR = 0x3b99b53d;
function decodeAddress(bytes calldata _bytes) internal pure returns (address value) {
assembly ('memory-safe') {
value := calldataload(_bytes.offset)
}
}
function decodeAddress(bytes calldata _bytes, uint256 _arg)
internal
pure
returns (address value)
{
assembly ('memory-safe') {
value := calldataload(add(_bytes.offset, shl(5, _arg)))
}
}
function decodeUint256(bytes calldata _bytes) internal pure returns (uint256 value) {
assembly ('memory-safe') {
value := calldataload(_bytes.offset)
}
}
function decodeUint256(bytes calldata _bytes, uint256 _arg)
internal
pure
returns (uint256 value)
{
assembly ('memory-safe') {
value := calldataload(add(_bytes.offset, shl(5, _arg)))
}
}
function decodeBool(bytes calldata _bytes) internal pure returns (bool value) {
assembly ('memory-safe') {
value := calldataload(_bytes.offset)
}
}
function decodeBool(bytes calldata _bytes, uint256 _arg) internal pure returns (bool value) {
assembly ('memory-safe') {
value := calldataload(add(_bytes.offset, shl(5, _arg)))
}
}
function decodeBytes32(bytes calldata _bytes) internal pure returns (bytes32 value) {
assembly ('memory-safe') {
value := calldataload(_bytes.offset)
}
}
function decodeBytes32(bytes calldata _bytes, uint256 _arg)
internal
pure
returns (bytes32 value)
{
assembly ('memory-safe') {
value := calldataload(add(_bytes.offset, shl(5, _arg)))
}
}
/// @notice Decode the `_arg`-th element in `_bytes` as a dynamic array
/// @dev The decoding of `length` and `offset` is universal,
/// whereas the type declaration of `res` instructs the compiler how to read it.
/// @param _bytes The input bytes string to slice
/// @param _arg The index of the argument to extract
/// @return length Length of the array
/// @return offset Pointer to the data part of the array
function decodeLengthOffset(bytes calldata _bytes, uint256 _arg)
internal
pure
returns (uint256 length, uint256 offset)
{
assembly ('memory-safe') {
// The offset of the `_arg`-th element is `32 * arg`, which stores the offset of the length pointer.
// shl(5, x) is equivalent to mul(32, x)
let lengthPtr := add(_bytes.offset, calldataload(add(_bytes.offset, shl(5, _arg))))
length := calldataload(lengthPtr)
offset := add(lengthPtr, 0x20)
// if the provided bytes string isnt as long as the encoding says, revert
if lt(add(_bytes.length, _bytes.offset), add(length, offset)) {
mstore(0, SLICE_ERROR_SELECTOR)
revert(0x1c, 4)
}
}
}
/// @notice Decode the `_arg`-th element in `_bytes` as `bytes`
/// @param _bytes The input bytes string to extract a bytes string from
/// @param _arg The index of the argument to extract
function decodeBytes(bytes calldata _bytes, uint256 _arg)
internal
pure
returns (bytes calldata res)
{
(uint256 length, uint256 offset) = decodeLengthOffset(_bytes, _arg);
assembly ('memory-safe') {
res.length := length
res.offset := offset
}
}
/// @notice Decode the `_arg`-th element in `_bytes` as `uint256[]`
/// @param _bytes The input bytes string to extract a uint256 array from
/// @param _arg The index of the argument to extract
function decodeUint256Array(bytes calldata _bytes, uint256 _arg)
internal
pure
returns (uint256[] calldata res)
{
(uint256 length, uint256 offset) = decodeLengthOffset(_bytes, _arg);
assembly ('memory-safe') {
res.length := length
res.offset := offset
}
}
/// @notice Decode the `_arg`-th element in `_bytes` as `address[]`
/// @param _bytes The input bytes string to extract an address array from
/// @param _arg The index of the argument to extract
function decodeAddressArray(bytes calldata _bytes, uint256 _arg)
internal
pure
returns (address[] calldata res)
{
(uint256 length, uint256 offset) = decodeLengthOffset(_bytes, _arg);
assembly ('memory-safe') {
res.length := length
res.offset := offset
}
}
/// @notice Decode the `_arg`-th element in `_bytes` as `bytes32[]`
/// @param _bytes The input bytes string to extract a bytes32 array from
/// @param _arg The index of the argument to extract
function decodeBytes32Array(bytes calldata _bytes, uint256 _arg)
internal
pure
returns (bytes32[] calldata res)
{
(uint256 length, uint256 offset) = decodeLengthOffset(_bytes, _arg);
assembly ('memory-safe') {
res.length := length
res.offset := offset
}
}
}
lib/ks-common-sc/src/libraries/token/TokenHelper.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {CustomRevert} from '../CustomRevert.sol';
import {IERC20} from 'openzeppelin-contracts/contracts/interfaces/IERC20.sol';
/// @title Library for transferring, approving and holding native tokens and ERC20 tokens
/// @dev This library is based on CurrencyLibrary.sol from Uniswap/v4-core and SafeTransferLib.sol from transmissions11/solmate
library TokenHelper {
/// @notice Additional context for ERC-7751 wrapped error when a native transfer fails
error NativeTransferFailed();
/// @notice Additional context for ERC-7751 wrapped error when an ERC20 transfer fails
error ERC20TransferFailed();
/// @notice Additional context for ERC-7751 wrapped error when an ERC20 approve fails
error ERC20ApproveFailed();
address internal constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
function isNative(address token) internal pure returns (bool) {
return token == NATIVE_ADDRESS || token == address(0);
}
function safeTransferNative(address to, uint256 amount) internal {
if (amount == 0) return;
bool success;
assembly ('memory-safe') {
// Transfer the ETH and revert if it fails.
success := call(gas(), to, amount, 0, 0, 0, 0)
}
// revert with NativeTransferFailed, containing the bubbled up error as an argument
if (!success) {
CustomRevert.bubbleUpAndRevertWith(to, bytes4(0), NativeTransferFailed.selector);
}
}
function safeTransferERC20(address token, address to, uint256 amount) internal {
if (amount == 0) return;
bool success;
assembly ('memory-safe') {
// Get a pointer to some free memory.
let fmp := mload(0x40)
// Write the abi-encoded calldata into memory, beginning with the function selector.
mstore(fmp, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)
mstore(add(fmp, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "to" argument.
mstore(add(fmp, 36), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type.
success := and(
// Set success to whether the call reverted, if not we check it either
// returned exactly 1 (can't just be non-zero data), or had no return data.
or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
// We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
// We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
// Counterintuitively, this call must be positioned second to the or() call in the
// surrounding and() call or else returndatasize() will be zero during the computation.
call(gas(), token, 0, fmp, 68, 0, 32)
)
// Now clean the memory we used
mstore(fmp, 0) // 4 byte `selector` and 28 bytes of `to` were stored here
mstore(add(fmp, 0x20), 0) // 4 bytes of `to` and 28 bytes of `amount` were stored here
mstore(add(fmp, 0x40), 0) // 4 bytes of `amount` were stored here
}
// revert with ERC20TransferFailed, containing the bubbled up error as an argument
if (!success) {
CustomRevert.bubbleUpAndRevertWith(
token, IERC20.transfer.selector, ERC20TransferFailed.selector
);
}
}
function safeTransfer(address token, address to, uint256 amount) internal {
if (isNative(token)) {
safeTransferNative(to, amount);
} else {
safeTransferERC20(token, to, amount);
}
}
function safeTransferFrom(address token, address from, address to, uint256 amount) internal {
if (amount == 0) return;
bool success;
assembly ('memory-safe') {
// Get a pointer to some free memory.
let fmp := mload(0x40)
// Write the abi-encoded calldata into memory, beginning with the function selector.
mstore(fmp, 0x23b872dd00000000000000000000000000000000000000000000000000000000)
mstore(add(fmp, 4), and(from, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "from" argument.
mstore(add(fmp, 36), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "to" argument.
mstore(add(fmp, 68), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type.
success := and(
// Set success to whether the call reverted, if not we check it either
// returned exactly 1 (can't just be non-zero data), or had no return data.
or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
// We use 100 because the length of our calldata totals up like so: 4 + 32 * 3.
// We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
// Counterintuitively, this call must be positioned second to the or() call in the
// surrounding and() call or else returndatasize() will be zero during the computation.
call(gas(), token, 0, fmp, 100, 0, 32)
)
// Now clean the memory we used
mstore(fmp, 0) // 4 byte `selector` and 28 bytes of `from` were stored here
mstore(add(fmp, 0x20), 0) // 4 bytes of `from` and 28 bytes of `to` were stored here
mstore(add(fmp, 0x40), 0) // 4 bytes of `to` and 28 bytes of `amount` were stored here
mstore(add(fmp, 0x60), 0) // 4 bytes of `amount` were stored here
}
// revert with ERC20TransferFailed, containing the bubbled up error as an argument
if (!success) {
CustomRevert.bubbleUpAndRevertWith(
token, IERC20.transferFrom.selector, ERC20TransferFailed.selector
);
}
}
function trySafeApprove(address token, address spender, uint256 amount)
internal
returns (bool success)
{
assembly ('memory-safe') {
// Get a pointer to some free memory.
let fmp := mload(0x40)
// Write the abi-encoded calldata into memory, beginning with the function selector.
mstore(fmp, 0x095ea7b300000000000000000000000000000000000000000000000000000000)
mstore(add(fmp, 4), and(spender, 0xffffffffffffffffffffffffffffffffffffffff)) // Append and mask the "spender" argument.
mstore(add(fmp, 36), amount) // Append the "amount" argument. Masking not required as it's a full 32 byte type.
success := and(
// Set success to whether the call reverted, if not we check it either
// returned exactly 1 (can't just be non-zero data), or had no return data.
or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
// We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
// We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
// Counterintuitively, this call must be positioned second to the or() call in the
// surrounding and() call or else returndatasize() will be zero during the computation.
call(gas(), token, 0, fmp, 68, 0, 32)
)
// Now clean the memory we used
mstore(fmp, 0) // 4 byte `selector` and 28 bytes of `to` were stored here
mstore(add(fmp, 0x20), 0) // 4 bytes of `to` and 28 bytes of `amount` were stored here
mstore(add(fmp, 0x40), 0) // 4 bytes of `amount` were stored here
}
}
function safeApprove(address token, address spender, uint256 amount) internal {
// revert with ERC20ApproveFailed, containing the bubbled up error as an argument
if (!trySafeApprove(token, spender, amount)) {
CustomRevert.bubbleUpAndRevertWith(
token, IERC20.approve.selector, ERC20ApproveFailed.selector
);
}
}
function forceApprove(address token, address spender, uint256 amount) internal {
// meant to be used with tokens that require the approval to be set to zero before setting it to a non-zero value, such as USDT
if (!trySafeApprove(token, spender, amount)) {
safeApprove(token, spender, 0);
safeApprove(token, spender, amount);
}
}
function balanceOf(address token, address account) internal view returns (uint256) {
if (isNative(token)) {
return account.balance;
} else {
return IERC20(token).balanceOf(account);
}
}
function selfBalance(address token) internal view returns (uint256) {
if (isNative(token)) {
return address(this).balance;
} else {
return IERC20(token).balanceOf(address(this));
}
}
}
src/base/DelegatecallGuard.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @notice Restricts functions to only be invoked via a delegatecall (e.g. from a clone),
/// reverting on direct calls to the deployed implementation.
contract DelegatecallGuard {
/// @notice Thrown when a delegatecall-only function is called directly on the implementation.
error OnlyDelegatecall();
/// @notice The address of this contract as deployed (the implementation), used to detect direct
/// (non-delegatecall) invocations.
address internal immutable SELF;
constructor() {
SELF = address(this);
}
/// @notice Checks that the call arrived via delegatecall, not directly on the implementation
modifier onlyDelegatecall() {
if (address(this) == SELF) {
revert OnlyDelegatecall();
}
_;
}
}
src/interfaces/IKSActionExecutor.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @notice Interface for the KSActionExecutor
interface IKSActionExecutor {
/**
* @notice Executes an action
* @param intentData The data of the execution, which includes the token and the action-specific data
* @param additionalData The additional data for the action
* @return result The result of the action
*/
function execute(bytes calldata intentData, bytes calldata additionalData)
external
payable
returns (bytes memory result);
}
src/interfaces/executors/IKSWithdrawActionExecutor.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IKSWithdrawActionExecutor {
/**
* @notice Emitted once per withdraw action, after every token has been withdrawn from the inbox.
* @param tokens The tokens withdrawn.
* @param amounts The amount withdrawn of each token.
* @param recipient The address that receives the withdrawn tokens.
*/
event ExecuteWithdraw(address[] tokens, uint256[] amounts, address indexed recipient);
}
Compiler settingsShow
{
"viaIR": true,
"metadata": {
"appendCBOR": true,
"bytecodeHash": "ipfs",
"useLiteralContent": false
},
"optimizer": {
"runs": 44444444,
"enabled": true
},
"evmVersion": "osaka",
"remappings": [
"@openzeppelin/contracts/=lib/ks-common-sc/lib/openzeppelin-contracts/contracts/",
"forge-std/=lib/ks-common-sc/lib/forge-std/src/",
"ks-common-sc/=lib/ks-common-sc/",
"openzeppelin-contracts/=lib/ks-common-sc/lib/openzeppelin-contracts/",
"erc4626-tests/=lib/ks-common-sc/lib/openzeppelin-contracts/lib/erc4626-tests/",
"halmos-cheatcodes/=lib/ks-common-sc/lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/"
]
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.