Skip to content

@lelantos-org/sdk / protocol / applyFee

Function: applyFee() ​

ts
function applyFee(amount, feeBps): bigint;

Defined in: @lelantos-org/sdk/dist/protocol/fees.d.ts:11

Fee on amount at feeBps, truncated — matches Solidity integer division.

Parameters ​

ParameterType
amountbigint
feeBpsbigint

Returns ​

bigint