Skip to Content
Symmio Frontier — the SDK surface for builders on HyperEVM
ReactFees hooks

Fees hooks

Read on-chain fee rates and compute per-quote platform fees.

Every hook on this page is a read.

Import

import { useFeeForUser, useQuotePlatformFee } from "@symmio/trading-react";

useFeeForUser

Fee rate applied to a user’s trades (basis points).

const fee = useFeeForUser({ account });

useQuotePlatformFee

Composed — quote size × fee rate → open + close fees for a specific quote.

const { openFee, closeFee } = useQuotePlatformFee({ quote });
Last updated on