@mstable/protocol
Version:
mStable Contracts
76 lines (75 loc) • 1.5 kB
JSON
[
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minPoolAmountOut",
"type": "uint256"
}
],
"name": "joinswapExternAmountIn",
"outputs": [
{
"internalType": "uint256",
"name": "poolAmountOut",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenIn",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenAmountIn",
"type": "uint256"
},
{
"internalType": "address",
"name": "tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "minAmountOut",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxPrice",
"type": "uint256"
}
],
"name": "swapExactAmountIn",
"outputs": [
{
"internalType": "uint256",
"name": "tokenAmountOut",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "spotPriceAfter",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]