protocol_fee_swap.gno
GetSwapFee
Return Values
Name
Type
Description
SetSwapFee
Parameters
Name
Type
Description
Last updated
Getter and setter functions for the Swap Fee, the protocol fee charged when a user executes a swap via the router. The default value is set to 15 (=0.15% of the final output).
GetSwapFee returns the current rate of the Swap Fee.
swapFee
uint64
The current rate of the swap fee.
SetSwapFee modifies the Swap Fee.
cur
realm
Pass cross as argument.
fee
uint64
The rate that will be set as the new Swap Fee. (the value should be in bps)
Last updated
func GetSwapFee() uint64func SetSwapFee(
cur realm,
fee uint64
)