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
funcGetSwapFee()
Returns the current rate of the Swap Fee.
Return Values
SetSwapFee
funcSetSwapFee( fee uint64)
Modifies the Swap Fee.
Parameters
Name
Type
Description
Name
Type
Description
swapFee
uint64
The current rate of the swap fee.
fee
uint64
The rate that will be set as the new Swap Fee. (the value should be in bps)