add view function

This commit is contained in:
2026-03-09 10:30:50 +08:00
parent 586b04a371
commit e033cbd1c4
11 changed files with 369 additions and 13 deletions

View File

@@ -480,6 +480,35 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_token",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "getAddLiquidityOutput",
"outputs": [
{
"internalType": "uint256",
"name": "usdyAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ytLPMintAmount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
@@ -518,6 +547,35 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_tokenOut",
"type": "address"
},
{
"internalType": "uint256",
"name": "_ytLPAmount",
"type": "uint256"
}
],
"name": "getRemoveLiquidityOutput",
"outputs": [
{
"internalType": "uint256",
"name": "usdyAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amountOut",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "gov",