protocol_fee_withdrawal.gno

Getter and setter functions for the Withdrawal Fee, the protocol fee charged when a user claims the swap fees earned from providing liquidity by removing liquidity or calling the CollectFee function. The default value is set to 100 (=1% of total swap fees claimed).

GetWithdrawalFee

func GetWithdrawalFee()

Returns the current rate of the Withdrawal Fee.

Return Values

NameTypeDescription

withdrawalFee

uint64

The current rate of the Withdrawal Fee.

SetWithdrawalFee

func SetPoolCreationFee(
  fee uint64
)

Modifies the Withdrawal Fee.

Parameters

NameTypeDescription

fee

uint64

The rate that will be set as the new Withdrawal Fee. (the value should be in bps)

Last updated