Search Apps Documentation Source Content File Folder Download Copy Actions Download

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.

Functions

NewProtocolFeeV1

func NewProtocolFeeV1(protocolFeeStore protocol_fee.IProtocolFeeStore) protocol_fee.IProtocolFee

Param

Command

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

Result

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.test11.testnets.gno.land" -data "gno.land/r/gnoswap/protocol_fee/v1.NewProtocolFeeStateBy()"

Result