For the complete documentation index, see llms.txt. This page is also available as Markdown.

protocol_fee_swap.gno

GetPendingProtocolFees

func GetPendingProtocolFees() map[string]int64

GetPendingProtocolFees 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

source

GetSwapFee

GetSwapFee returns the current router fee rate.

Return Values

Name
Type
Description

fee

uint64

fee rate in basis points

source

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

source

Last updated