编译器
0.8.18+commit.87f61d96
文件 1 的 10:Address.sol
pragma solidity ^0.8.1;
library Address {
function isContract(address account) internal view returns (bool) {
return account.code.length > 0;
}
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");
}
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
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");
}
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");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
if (returndata.length > 0) {
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
文件 2 的 10:Context.sol
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
文件 3 的 10:IERC20.sol
pragma solidity ^0.8.0;
interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
文件 4 的 10:IERC20Permit.sol
pragma solidity ^0.8.0;
interface IERC20Permit {
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
function nonces(address owner) external view returns (uint256);
function DOMAIN_SEPARATOR() external view returns (bytes32);
}
文件 5 的 10:IPool.sol
pragma solidity ^0.8.5;
interface IPool {
function getTokens() external view returns (address[] memory);
function addressOfAsset(address token) external view returns (address);
function deposit(
address token,
uint256 amount,
uint256 minimumLiquidity,
address to,
uint256 deadline,
bool shouldStake
) external returns (uint256 liquidity);
function withdraw(
address token,
uint256 liquidity,
uint256 minimumAmount,
address to,
uint256 deadline
) external returns (uint256 amount);
function withdrawFromOtherAsset(
address fromToken,
address toToken,
uint256 liquidity,
uint256 minimumAmount,
address to,
uint256 deadline
) external returns (uint256 amount);
function swap(
address fromToken,
address toToken,
uint256 fromAmount,
uint256 minimumToAmount,
address to,
uint256 deadline
) external returns (uint256 actualToAmount, uint256 haircut);
function quotePotentialDeposit(
address token,
uint256 amount
) external view returns (uint256 liquidity, uint256 reward);
function quotePotentialSwap(
address fromToken,
address toToken,
int256 fromAmount
) external view returns (uint256 potentialOutcome, uint256 haircut);
function quotePotentialWithdraw(
address token,
uint256 liquidity
) external view returns (uint256 amount, uint256 fee);
function quoteAmountIn(
address fromToken,
address toToken,
int256 toAmount
) external view returns (uint256 amountIn, uint256 haircut);
}
文件 6 的 10:IWombatRouter.sol
pragma solidity ^0.8.5;
import './IPool.sol';
interface IWombatRouter {
function getAmountOut(
address[] calldata tokenPath,
address[] calldata poolPath,
int256 amountIn
) external view returns (uint256 amountOut, uint256[] memory haircuts);
function getAmountIn(
address[] calldata tokenPath,
address[] calldata poolPath,
uint256 amountOut
) external view returns (uint256 amountIn, uint256[] memory haircuts);
function swapExactTokensForTokens(
address[] calldata tokenPath,
address[] calldata poolPath,
uint256 fromAmount,
uint256 minimumToAmount,
address to,
uint256 deadline
) external returns (uint256 amountOut);
function swapExactNativeForTokens(
address[] calldata tokenPath,
address[] calldata poolPath,
uint256 minimumamountOut,
address to,
uint256 deadline
) external payable returns (uint256 amountOut);
function swapExactTokensForNative(
address[] calldata tokenPath,
address[] calldata poolPath,
uint256 amountIn,
uint256 minimumamountOut,
address to,
uint256 deadline
) external returns (uint256 amountOut);
function addLiquidityNative(
IPool pool,
uint256 minimumLiquidity,
address to,
uint256 deadline,
bool shouldStake
) external payable returns (uint256 liquidity);
function removeLiquidityNative(
IPool pool,
uint256 liquidity,
uint256 minimumAmount,
address to,
uint256 deadline
) external returns (uint256 amount);
function removeLiquidityFromOtherAssetAsNative(
IPool pool,
address fromToken,
uint256 liquidity,
uint256 minimumAmount,
address to,
uint256 deadline
) external returns (uint256 amount);
}
文件 7 的 10:Ownable.sol
pragma solidity ^0.8.0;
import "../utils/Context.sol";
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_msgSender());
}
modifier onlyOwner() {
_checkOwner();
_;
}
function owner() public view virtual returns (address) {
return _owner;
}
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
文件 8 的 10:SafeERC20.sol
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";
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));
}
function safeApprove(IERC20 token, address spender, uint256 value) internal {
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 oldAllowance = token.allowance(address(this), spender);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
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");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
function _callOptionalReturn(IERC20 token, bytes memory data) private {
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
(bool success, bytes memory returndata) = address(token).call(data);
return
success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
}
}
文件 9 的 10:SignedSafeMath.sol
pragma solidity ^0.8.5;
library SignedSafeMath {
int256 public constant WAD = 10 ** 18;
function wdiv(int256 x, int256 y) internal pure returns (int256) {
return ((x * WAD) + (y / 2)) / y;
}
function wmul(int256 x, int256 y) internal pure returns (int256) {
return ((x * y) + (WAD / 2)) / WAD;
}
function sqrt(int256 y) internal pure returns (int256 z) {
if (y > 3) {
z = y;
int256 x = y / 2 + 1;
while (x < z) {
z = x;
x = (y / x + x) / 2;
}
} else if (y != 0) {
z = 1;
}
}
function sqrt(int256 y, int256 guess) internal pure returns (int256 z) {
if (y > 3) {
if (guess > 0 && guess <= y) {
z = guess;
} else if (guess < 0 && -guess <= y) {
z = -guess;
} else {
z = y;
}
int256 x = (y / z + z) / 2;
while (x != z) {
z = x;
x = (y / x + x) / 2;
}
} else if (y != 0) {
z = 1;
}
}
function toWad(int256 x, uint8 d) internal pure returns (int256) {
if (d < 18) {
return x * int256(10 ** (18 - d));
} else if (d > 18) {
return (x / int256(10 ** (d - 18)));
}
return x;
}
function fromWad(int256 x, uint8 d) internal pure returns (int256) {
if (d < 18) {
return (x / int256(10 ** (18 - d)));
} else if (d > 18) {
return x * int256(10 ** (d - 18));
}
return x;
}
function toUint256(int256 value) internal pure returns (uint256) {
require(value >= 0, 'value must be positive');
return uint256(value);
}
function toInt256(uint256 value) internal pure returns (int256) {
require(value <= uint256(type(int256).max), 'value must be positive');
return int256(value);
}
function abs(int256 value) internal pure returns (uint256) {
if (value < 0) {
return uint256(-value);
} else {
return uint256(value);
}
}
}
文件 10 的 10:WombatRouter.sol
pragma solidity ^0.8.5;
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '../libraries/SignedSafeMath.sol';
import '../interfaces/IPool.sol';
import '../interfaces/IWombatRouter.sol';
interface IWNative {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
contract WombatRouter is Ownable, IWombatRouter {
using SafeERC20 for IERC20;
using SignedSafeMath for uint256;
IWNative public immutable wNative;
constructor(IWNative _wNative) {
require(address(_wNative) != address(0), 'WombatRouter: wNative is zero address');
wNative = _wNative;
}
receive() external payable {
require(msg.sender == address(wNative));
}
function approveSpendingByPool(address[] calldata tokens, address pool) external onlyOwner {
for (uint256 i; i < tokens.length; ++i) {
IERC20(tokens[i]).safeApprove(pool, 0);
IERC20(tokens[i]).safeApprove(pool, type(uint256).max);
}
}
function addLiquidityNative(
IPool pool,
uint256 minimumLiquidity,
address to,
uint256 deadline,
bool shouldStake
) external payable override returns (uint256 liquidity) {
wNative.deposit{value: msg.value}();
return pool.deposit(address(wNative), msg.value, minimumLiquidity, to, deadline, shouldStake);
}
function removeLiquidityNative(
IPool pool,
uint256 liquidity,
uint256 minimumAmount,
address to,
uint256 deadline
) external override returns (uint256 amount) {
address asset = pool.addressOfAsset(address(wNative));
IERC20(asset).transferFrom(address(msg.sender), address(this), liquidity);
amount = pool.withdraw(address(wNative), liquidity, minimumAmount, address(this), deadline);
wNative.withdraw(amount);
_safeTransferNative(to, amount);
}
function removeLiquidityFromOtherAssetAsNative(
IPool pool,
address fromToken,
uint256 liquidity,
uint256 minimumAmount,
address to,
uint256 deadline
) external returns (uint256 amount) {
address asset = pool.addressOfAsset(fromToken);
IERC20(asset).transferFrom(address(msg.sender), address(this), liquidity);
amount = pool.withdrawFromOtherAsset(
fromToken,
address(wNative),
liquidity,
minimumAmount,
address(this),
deadline
);
wNative.withdraw(amount);
_safeTransferNative(to, amount);
}
function swapExactTokensForTokens(
address[] calldata tokenPath,
address[] calldata poolPath,
uint256 amountIn,
uint256 minimumamountOut,
address to,
uint256 deadline
) external override returns (uint256 amountOut) {
require(deadline >= block.timestamp, 'expired');
require(tokenPath.length >= 2, 'invalid token path');
require(poolPath.length == tokenPath.length - 1, 'invalid pool path');
IERC20(tokenPath[0]).safeTransferFrom(address(msg.sender), address(this), amountIn);
amountOut = _swap(tokenPath, poolPath, amountIn, to);
require(amountOut >= minimumamountOut, 'amountOut too low');
}
function swapExactNativeForTokens(
address[] calldata tokenPath,
address[] calldata poolPath,
uint256 minimumamountOut,
address to,
uint256 deadline
) external payable override returns (uint256 amountOut) {
require(tokenPath[0] == address(wNative), 'the first address should be wrapped token');
require(deadline >= block.timestamp, 'expired');
require(poolPath.length == tokenPath.length - 1, 'invalid pool path');
wNative.deposit{value: msg.value}();
amountOut = _swap(tokenPath, poolPath, msg.value, to);
require(amountOut >= minimumamountOut, 'amountOut too low');
}
function swapExactTokensForNative(
address[] calldata tokenPath,
address[] calldata poolPath,
uint256 amountIn,
uint256 minimumamountOut,
address to,
uint256 deadline
) external override returns (uint256 amountOut) {
require(tokenPath[tokenPath.length - 1] == address(wNative), 'the last address should be wrapped token');
require(deadline >= block.timestamp, 'expired');
require(poolPath.length == tokenPath.length - 1, 'invalid pool path');
IERC20(tokenPath[0]).safeTransferFrom(address(msg.sender), address(this), amountIn);
amountOut = _swap(tokenPath, poolPath, amountIn, address(this));
require(amountOut >= minimumamountOut, 'amountOut too low');
wNative.withdraw(amountOut);
_safeTransferNative(to, amountOut);
}
function _swap(
address[] calldata tokenPath,
address[] calldata poolPath,
uint256 amountIn,
address to
) internal returns (uint256 amountOut) {
uint256 nextamountIn = amountIn;
for (uint256 i; i < poolPath.length - 1; ++i) {
(amountOut, ) = IPool(poolPath[i]).swap(
tokenPath[i],
tokenPath[i + 1],
nextamountIn,
0,
address(this),
type(uint256).max
);
nextamountIn = amountOut;
}
uint256 i = poolPath.length - 1;
(amountOut, ) = IPool(poolPath[i]).swap(
tokenPath[i],
tokenPath[i + 1],
nextamountIn,
0,
to,
type(uint256).max
);
}
function getAmountOut(
address[] calldata tokenPath,
address[] calldata poolPath,
int256 amountIn
) external view override returns (uint256 amountOut, uint256[] memory haircuts) {
require(tokenPath.length >= 2, 'invalid token path');
require(poolPath.length == tokenPath.length - 1, 'invalid pool path');
int256 nextamountIn = amountIn;
haircuts = new uint256[](poolPath.length);
for (uint256 i; i < poolPath.length; ++i) {
(amountOut, haircuts[i]) = IPool(poolPath[i]).quotePotentialSwap(
tokenPath[i],
tokenPath[i + 1],
nextamountIn
);
nextamountIn = amountOut.toInt256();
}
}
function getAmountIn(
address[] calldata tokenPath,
address[] calldata poolPath,
uint256 amountOut
) external view override returns (uint256 amountIn, uint256[] memory haircuts) {
require(tokenPath.length >= 2, 'invalid token path');
require(poolPath.length == tokenPath.length - 1, 'invalid pool path');
int256 nextAmountOut = amountOut.toInt256();
haircuts = new uint256[](poolPath.length);
for (uint256 i = poolPath.length; i > 0; --i) {
(amountIn, haircuts[i - 1]) = IPool(poolPath[i - 1]).quoteAmountIn(
tokenPath[i - 1],
tokenPath[i],
nextAmountOut
);
nextAmountOut = amountIn.toInt256();
}
}
function _safeTransferNative(address to, uint256 value) internal {
(bool success, ) = to.call{value: value}(new bytes(0));
require(success, '_safeTransferNative fails');
}
}
{
"compilationTarget": {
"contracts/wombat-core/libraries/WombatRouter.sol": "WombatRouter"
},
"evmVersion": "paris",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs",
"useLiteralContent": true
},
"optimizer": {
"enabled": true,
"runs": 1000
},
"remappings": [],
"viaIR": true
}
[{"inputs":[{"internalType":"contract IWNative","name":"_wNative","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"contract IPool","name":"pool","type":"address"},{"internalType":"uint256","name":"minimumLiquidity","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"shouldStake","type":"bool"}],"name":"addLiquidityNative","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"address","name":"pool","type":"address"}],"name":"approveSpendingByPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenPath","type":"address[]"},{"internalType":"address[]","name":"poolPath","type":"address[]"},{"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"getAmountIn","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256[]","name":"haircuts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenPath","type":"address[]"},{"internalType":"address[]","name":"poolPath","type":"address[]"},{"internalType":"int256","name":"amountIn","type":"int256"}],"name":"getAmountOut","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256[]","name":"haircuts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IPool","name":"pool","type":"address"},{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"minimumAmount","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityFromOtherAssetAsNative","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IPool","name":"pool","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"minimumAmount","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"removeLiquidityNative","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenPath","type":"address[]"},{"internalType":"address[]","name":"poolPath","type":"address[]"},{"internalType":"uint256","name":"minimumamountOut","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactNativeForTokens","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenPath","type":"address[]"},{"internalType":"address[]","name":"poolPath","type":"address[]"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"minimumamountOut","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForNative","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenPath","type":"address[]"},{"internalType":"address[]","name":"poolPath","type":"address[]"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"minimumamountOut","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForTokens","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wNative","outputs":[{"internalType":"contract IWNative","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]