protocol_fee_swap.gno
GetPendingProtocolFees
func GetPendingProtocolFees() map[string]int64GetPendingProtocolFees returns a copy of uncollected protocol fees by token.
Return Values
Name
Type
Description
fees
map[string]int64
pending protocol fee amount keyed by token path
GetSwapFee
GetSwapFee returns the current router fee rate.
Return Values
Name
Type
Description
fee
uint64
fee rate in basis points
SetSwapFee
SetSwapFee sets the router fee rate.
Halt check: reverts while the Router or ProtocolFee halt scope is active.
Parameters
Name
Type
Description
cur
realm
current realm context; callers use cross(cur) when crossing into this realm
fee
uint64
fee rate in basis points
Last updated