Curve Finance: Amount Out After Trade

Supply (StableSwap, StableSwapNG, Pool, TriPool supported) pool address, input & output tokens and amountIn and get real amountOut.

Request Example:

curl --location 'https://api.invisium.com/get-amount-out-curve-fi' \
--header 'Content-Type: application/json' \
--data '{
    "poolAddress": "0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7",
    "tokenIn": "0x6b175474e89094c44da98b954eedeac495271d0f",
    "tokenOut": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "amountIn": 1000000000000000000
}'

Response Output:

{
    "amountOut": "999913"
}

Last updated