Contract Details
The SyncSwap fee management system is an integral part of the SyncSwap ecosystem, responsible for managing and distributing fees across different pools.
The SyncSwap fee management system is an integral part of the SyncSwap ecosystem, responsible for managing and distributing fees across different pools. It ensures the fair distribution of rewards to liquidity providers and supports the protocol's operational costs. This document provides detailed instructions on using the SyncSwap Fee Manager, Fee Registry, and Fee Recipient contracts to query and manage various fees and rates.
Fee Manager
getSwapFeeData
Returns the swap fee data for a given pool, sender, and token pair.
Example Usage:
Copy
getSwapFee
Returns the swap fee for a given pool, sender, and token pair.
Example Usage:
Copy
getProtocolFee
Returns the protocol fee for a given pool.
Example Usage:
Copy
getFeeRecipient
Returns the current fee recipient address.
Example Usage:
Copy
getSwapFeeHook
Returns the current swap fee hook address.
Example Usage:
Copy
Fee Registry V2
registerFee
Registers a new fee for a pool with additional data.
Example Usage:
Copy
getFee
Returns the fee amount for a given pool.
Example Usage:
Copy
updateFee
Updates the fee amount for a pool.
Example Usage:
Copy
getFeesByPool
Returns all fees associated with a given pool.
Example Usage:
Copy
Fee Recipient
notifyFees
Notifies the contract about a fee that needs to be recorded. Example Usage:
Copy
getEpochStart
Returns the start time of a given timestamp based on the epoch duration. Example Usage:
Copy
fees
Returns the total fees recorded for a specific token within a specific epoch. Example Usage:
Copy
Last updated