bfBTC Fees
Note: fees only be taken while requestWithdraw
, requestWithdrawNative
, and cross-chain actions.
Fee Types
Fee Structure
Fee Calculation
Description: Calculate fees for a specific operation based on user address and amount.
Parameters:
user
: Address of the user performing the operationamount
: Amount of the operationfeeType
: Type of fee to calculate (EVM/Native/Crosschain)
Return Values:
percentageFee
: Calculated percentage-based feefixedFee
: Fixed fee amount
Calculation Formula:
Notes:
percentageFee precision is 100000
Transaction reverts if total fee exceeds operation amount
Fee Events
Additional Information
Fees are collected in the native token of the operation
Fee collection is automatic and transparent
Fee events provide tracking and auditing capabilities
Whitelist mechanism allows for special cases and promotions
Fee configuration can be updated based on market conditions
Last updated