Skip to content

Instantly share code, notes, and snippets.

@developeruche
Created January 17, 2023 09:14
Show Gist options
  • Save developeruche/9024c74e512f050c9e6e279aa921e88b to your computer and use it in GitHub Desktop.
Save developeruche/9024c74e512f050c9e6e279aa921e88b to your computer and use it in GitHub Desktop.
[
{
"inputs": [],
"name": "INSUFFICENT_POINTS",
"type": "error"
},
{
"inputs": [],
"name": "INVALID_INPUT",
"type": "error"
},
{
"inputs": [],
"name": "INVALID_POOL",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"components": [
{
"internalType": "address",
"name": "pointAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "amountIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "slippageInPercentage",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "estimatedAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "gas",
"type": "uint256"
}
],
"internalType": "struct Dto.MultiSwapInput[]",
"name": "_swapInput",
"type": "tuple[]"
},
{
"internalType": "address",
"name": "_numerator",
"type": "address"
}
],
"name": "muiltPointSwap",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_meToken",
"type": "address"
}
],
"name": "setMeTokenAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_numeratorIn",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_numeratorMinOut",
"type": "uint256"
},
{
"internalType": "address[2]",
"name": "_path",
"type": "address[2]"
},
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "uint256",
"name": "slippage_in_percent",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_gas_payment",
"type": "uint256"
}
],
"name": "swap",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_rewardAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "_from",
"type": "address"
}
],
"name": "useReward",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment