initkjbnkhj
This commit is contained in:
@@ -670,56 +670,30 @@
|
||||
"network": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"asset": {
|
||||
"type": "string",
|
||||
"example": "BNB"
|
||||
},
|
||||
"amount": {
|
||||
"type": "string",
|
||||
"example": "65000000000000"
|
||||
},
|
||||
"amountFormatted": {
|
||||
"type": "string",
|
||||
"example": "0.000065"
|
||||
},
|
||||
"amountUsd": {
|
||||
"type": "number",
|
||||
"nullable": true,
|
||||
"example": 0.04
|
||||
}
|
||||
"asset": { "type": "string", "example": "BNB" },
|
||||
"amount": { "type": "string", "example": "65000000000000" },
|
||||
"amountFormatted": { "type": "string", "example": "0.000065", "description": "Сетевая комиссия в native-монете" },
|
||||
"amountUsd": { "type": "number", "nullable": true, "example": 0.04 },
|
||||
"amountInInputToken": { "type": "string", "nullable": true, "example": "0.04", "description": "Та же сетевая комиссия в эквиваленте валюты свапа (входного токена)" },
|
||||
"inputTokenSymbol": { "type": "string", "example": "USDT", "description": "Символ входного токена (валюты свапа)" }
|
||||
}
|
||||
},
|
||||
"total": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"amountUsd": {
|
||||
"type": "number",
|
||||
"nullable": true,
|
||||
"example": 0.04
|
||||
}
|
||||
"amountUsd": { "type": "number", "nullable": true, "example": 0.04 }
|
||||
}
|
||||
},
|
||||
"app": {
|
||||
"type": "object",
|
||||
"nullable": true,
|
||||
"description": "App fee 0.7% (BSC only). Server sends this to BSC_FEE_WALLET via separate tx BEFORE swap.",
|
||||
"description": "Наша комиссия 0.7%. Списывается отдельной tx ПЕРЕД свапом.",
|
||||
"properties": {
|
||||
"asset": {
|
||||
"type": "string",
|
||||
"example": "BNB"
|
||||
},
|
||||
"amount": {
|
||||
"type": "string",
|
||||
"example": "70000000000000"
|
||||
},
|
||||
"amountFormatted": {
|
||||
"type": "string",
|
||||
"example": "0.00007"
|
||||
},
|
||||
"recipient": {
|
||||
"type": "string",
|
||||
"example": "0xeDEb157eF86A4ecd1242762f339c2Bd5a0822718"
|
||||
}
|
||||
"asset": { "type": "string", "example": "USDT", "description": "Токен комиссии (= входной токен)" },
|
||||
"amount": { "type": "string", "example": "70000000000000" },
|
||||
"amountFormatted": { "type": "string", "example": "0.07", "description": "Комиссия 0.7% в токене" },
|
||||
"amountUsd": { "type": "number", "nullable": true, "example": 0.07, "description": "Та же 0.7% в USDT-эквиваленте" },
|
||||
"recipient": { "type": "string", "example": "0xeb9fbf0d137ef5ea7b9959044c2ed44ec1206c68" }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -818,21 +792,25 @@
|
||||
},
|
||||
"fee": {
|
||||
"type": "object",
|
||||
"description": "Сетевая (gas) комиссия",
|
||||
"properties": {
|
||||
"asset": {
|
||||
"type": "string",
|
||||
"example": "BNB"
|
||||
},
|
||||
"amount": {
|
||||
"type": "string"
|
||||
},
|
||||
"amountFormatted": {
|
||||
"type": "string"
|
||||
},
|
||||
"amountUsd": {
|
||||
"type": "number",
|
||||
"nullable": true
|
||||
}
|
||||
"asset": { "type": "string", "example": "BNB" },
|
||||
"amount": { "type": "string" },
|
||||
"amountFormatted": { "type": "string", "description": "в native-монете" },
|
||||
"amountUsd": { "type": "number", "nullable": true },
|
||||
"amountInInputToken": { "type": "string", "nullable": true, "description": "та же сетевая комиссия в эквиваленте валюты свапа (входного токена)" },
|
||||
"inputTokenSymbol": { "type": "string", "nullable": true, "example": "USDT" }
|
||||
}
|
||||
},
|
||||
"appFee": {
|
||||
"type": "object",
|
||||
"nullable": true,
|
||||
"description": "Наша комиссия 0.7% в токене + USDT",
|
||||
"properties": {
|
||||
"asset": { "type": "string", "example": "USDT" },
|
||||
"amount": { "type": "string" },
|
||||
"amountFormatted": { "type": "string", "description": "0.7% в токене" },
|
||||
"amountUsd": { "type": "number", "nullable": true, "description": "та же 0.7% в USDT" }
|
||||
}
|
||||
},
|
||||
"total": {
|
||||
@@ -1154,7 +1132,13 @@
|
||||
"type": "string"
|
||||
},
|
||||
"appFeeWeiHuman": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"description": "наша 0.7% в токене (ETH). SOL-ответ: appFeeLamportsHuman"
|
||||
},
|
||||
"appFeeUsd": {
|
||||
"type": "number",
|
||||
"nullable": true,
|
||||
"description": "наша 0.7% в USDT (≈USD). Есть и в SOL-ответе (appFeeUsd). null если цена недоступна"
|
||||
},
|
||||
"stakeAmountWei": {
|
||||
"type": "string"
|
||||
@@ -1463,7 +1447,17 @@
|
||||
"appFee0Usd": { "type": "number", "nullable": true },
|
||||
"appFee1Usd": { "type": "number", "nullable": true },
|
||||
"appFeeTotalUsd": { "type": "number", "nullable": true },
|
||||
"appFeeTotalEth": { "type": "string", "nullable": true, "description": "суммарная комиссия в монете сети (ETH)" },
|
||||
"appFeeTotalEth": { "type": "string", "nullable": true, "description": "суммарная наша 0.7% в монете сети (ETH)" },
|
||||
"networkFee": {
|
||||
"type": "object",
|
||||
"description": "Оценка сетевой (gas) комиссии всего LP-депозита (wrap?+fee×ноги+approve×ноги+mint) при текущем gasPrice",
|
||||
"properties": {
|
||||
"estGasUnits": { "type": "string", "example": "950000" },
|
||||
"gasPriceGwei": { "type": "string", "nullable": true, "example": "5.2" },
|
||||
"amountEthHuman": { "type": "string", "nullable": true, "example": "0.00494", "description": "оценка газа в ETH" },
|
||||
"amountUsd": { "type": "number", "nullable": true, "example": 12.3, "description": "та же оценка в USD" }
|
||||
}
|
||||
},
|
||||
"balance": {
|
||||
"type": "object",
|
||||
"description": "есть только если у юзера есть ETH-кошелёк",
|
||||
|
||||
Reference in New Issue
Block a user