-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(widget): flexible config for partner fee params (#392)
# Description Since partner fee can be set for any trade type on any network, we should provide an option to flexibly configurate the fee. Now both `bps` and `recipient` have type `FlexibleConfig`. ```typescript export type PerTradeTypeConfig<T> = Record<TradeType, T> export type PerNetworkConfig<T> = Record<SupportedChainId, T> export type FlexibleConfig<T> = | T | PerNetworkConfig<T> | PerTradeTypeConfig<T> | PerTradeTypeConfig<PerNetworkConfig<T>> | PerNetworkConfig<PerTradeTypeConfig<T>> ```
- Loading branch information
Showing
1 changed file
with
104 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters