@lelantos-org/sdk / protocol / depositTotals
Function: depositTotals()
ts
function depositTotals(args): DepositTotals;Defined in: @lelantos-org/sdk/dist/protocol/fees.d.ts:174
depositTotal, split per token; mirrors MASP._quoteShield.
isSameFeeAsset over publicAssetId and feeAssetId picks the branch. When the note is pulled separately it is priced under the fee asset alone (feeIn * feeScale) and the principal is quoted with feeIn = 0, so each figure is one token's pull. Otherwise the note joins the principal's quote, and on a yield asset the two are converted together, rounding once; relayer is then the difference the note makes, so the sum matches the single pull.
Parameters
| Parameter | Type |
|---|---|
args | DepositTotalsArgs |
Returns
Throws
as depositTotal; or when the note is pulled separately and no feeScale was given.