|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | +pragma solidity >=0.8.0; |
| 3 | + |
| 4 | + |
| 5 | +interface IStablePool { |
| 6 | + function DOMAIN_SEPARATOR () external view returns (bytes32); |
| 7 | + function allowance (address owner, address spender) external view returns (uint256); |
| 8 | + function approve (address spender, uint256 amount) external returns (bool); |
| 9 | + function balanceOf (address account) external view returns (uint256); |
| 10 | + function decimals () external view returns (uint8); |
| 11 | + function decreaseAllowance (address spender, uint256 amount) external returns (bool); |
| 12 | + function disableRecoveryMode () external; |
| 13 | + function enableRecoveryMode () external; |
| 14 | + function getActionId (bytes4 selector) external view returns (bytes32); |
| 15 | + function getAmplificationParameter () external view returns (uint256 value, bool isUpdating, uint256 precision); |
| 16 | + function getAuthorizer () external view returns (address); |
| 17 | + function getLastInvariant () external view returns (uint256 lastInvariant, uint256 lastInvariantAmp); |
| 18 | + function getOwner () external view returns (address); |
| 19 | + function getPausedState () external view returns (bool paused, uint256 pauseWindowEndTime, uint256 bufferPeriodEndTime); |
| 20 | + function getPoolId () external view returns (bytes32); |
| 21 | + function getRate () external view returns (uint256); |
| 22 | + function getScalingFactors () external view returns (uint256[] memory); |
| 23 | + function getSwapFeePercentage () external view returns (uint256); |
| 24 | + function getVault () external view returns (address); |
| 25 | + function inRecoveryMode () external view returns (bool); |
| 26 | + function increaseAllowance (address spender, uint256 addedValue) external returns (bool); |
| 27 | + function name () external view returns (string memory); |
| 28 | + function nonces (address owner) external view returns (uint256); |
| 29 | + function onExitPool (bytes32 poolId, address sender, address recipient, uint256[] memory balances, uint256 lastChangeBlock, uint256 protocolSwapFeePercentage, bytes memory userData) external returns (uint256[] memory, uint256[] memory); |
| 30 | + function onJoinPool (bytes32 poolId, address sender, address recipient, uint256[] memory balances, uint256 lastChangeBlock, uint256 protocolSwapFeePercentage, bytes memory userData) external returns (uint256[] memory, uint256[] memory); |
| 31 | +// function onSwap (tuple swapRequest, uint256[] balances, uint256 indexIn, uint256 indexOut) external returns (uint256); |
| 32 | +// function onSwap (tuple request, uint256 balanceTokenIn, uint256 balanceTokenOut) external returns (uint256); |
| 33 | + function pause () external; |
| 34 | + function permit (address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external; |
| 35 | + function queryExit (bytes32 poolId, address sender, address recipient, uint256[] memory balances, uint256 lastChangeBlock, uint256 protocolSwapFeePercentage, bytes memory userData) external returns (uint256 bptIn, uint256[] memory amountsOut); |
| 36 | + function queryJoin (bytes32 poolId, address sender, address recipient, uint256[] memory balances, uint256 lastChangeBlock, uint256 protocolSwapFeePercentage, bytes memory userData) external returns (uint256 bptOut, uint256[] memory amountsIn); |
| 37 | + function setAssetManagerPoolConfig (address token, bytes memory poolConfig) external; |
| 38 | + function setSwapFeePercentage (uint256 swapFeePercentage) external; |
| 39 | + function startAmplificationParameterUpdate (uint256 rawEndValue, uint256 endTime) external; |
| 40 | + function stopAmplificationParameterUpdate () external; |
| 41 | + function symbol () external view returns (string memory); |
| 42 | + function totalSupply () external view returns (uint256); |
| 43 | + function transfer (address recipient, uint256 amount) external returns (bool); |
| 44 | + function transferFrom (address sender, address recipient, uint256 amount) external returns (bool); |
| 45 | + function unpause () external; |
| 46 | +} |
0 commit comments