Equivalent to SDK’sDocumentation Index
Fetch the complete documentation index at: https://developers.paxoslabs.com/llms.txt
Use this file to discover all available pages before exploring further.
getWithdrawalFee(). Reads from the WithdrawQueue’s FeeModule on-chain.
Contract Methods
Reading withdrawal fees requires two calls — first to get the FeeModule address, then to calculate the fee.Step 1: WithdrawQueue.feeModule()
Returns the address of the FeeModule contract.
Returns: address — FeeModule contract address
Step 2: FeeModule.calculateOfferFees(amount, offerAsset, wantAsset, receiver)
Calculates the fee that will be deducted from a withdrawal order.
| Parameter | Type | Description |
|---|---|---|
amount | uint256 | Account shares to offer |
offerAsset | address | BoringVault address (the share token being offered) |
wantAsset | address | Token the user wants to receive (e.g., USDC) |
receiver | address | Address that will receive the want asset |
uint256 feeAmount — fee in account shares (18 decimals)
FeeModule.offerFeePercentage()
Returns the fee percentage applied to withdrawal orders.
Returns: uint256 — fee percentage with 18-decimal precision (e.g., 5000000000000000 = 0.5%)
ABI
WithdrawQueue (fee module lookup)
FeeModule
Usage
CallfeeModule() on the WithdrawQueue contract (vault.withdrawQueueModuleId from Account Discovery), then call calculateOfferFees() on the returned FeeModule address.