Proteus.sol
constructor()
constructor(
int128[] memory ms,
int128[] memory _as,
int128[] memory bs,
int128[] memory ks
) Slices(ms, _as, bs, ks);Parameter Name
Type
Description
swapGivenInputAmount()
/**
* @dev Given an input amount of a reserve token, we compute an output
* amount of the other reserve token, keeping utility invariant.
* @dev We use FEE_DOWN because we want to decrease the perceived
* input amount and decrease the observed output amount.
*/
function swapGivenInputAmount(
uint256 xBalance,
uint256 yBalance,
uint256 inputAmount,
SpecifiedToken inputToken
) external view returns (
uint256 outputAmount
);Parameter Name
Type
Description
Enum Member Name
Type
Description
swapGivenOutputAmount()
Parameter Name
Type
Description
Enum Member Name
Type
Description
depositGivenInputAmount()
Parameter Name
Type
Description
Enum Member Name
Type
Description
depositGivenOutputAmount()
Parameter Name
Type
Description
Enum Member Name
Type
Description
withdrawGivenOutputAmount()
Parameter Name
Type
Description
Enum Member Name
Type
Description
withdrawGivenInputAmount()
Parameter Name
Type
Description
Enum Member Name
Type
Description
Last updated

