Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

/v1 package

Overview

package v1 collects and distributes protocol fees from swaps.

This contract accumulates fees generated from trading activity and distributes them to devOps and governance stakers according to configurable percentages set through governance.

Function

NewProtocolFeeStateBy

func NewProtocolFeeStateBy(protocolFeeStore protocol_fee.IProtocolFeeStore) *protocolFeeState

NewProtocolFeeState creates a new instance of protocolFeeState with initialized values

Param

Command

gnokey query vm/qeval -remote "https://rpc.topaz.testnets.gno.land" -data "gno.land/r/gnoswap/protocol_fee/v1.NewProtocolFeeStateBy()"

Result