roleOrderDCA
untyped stringOrder protocol role names. They are not RBAC system roles: admin or governance registers them via rbac.RegisterRole, mapped to the order proxy realm addresses (gno.land/r/gnoswap/order/dca and gno.land/r/gnoswap/order/limit).
Value
"order_dca"
roleOrderLimit
untyped stringOrder protocol role names. They are not RBAC system roles: admin or governance registers them via rbac.RegisterRole, mapped to the order proxy realm addresses (gno.land/r/gnoswap/order/dca and gno.land/r/gnoswap/order/limit).
Value
"order_limit"
assertIsAuthorizedFeeCaller
func(caller .uverse.address)assertIsAuthorizedFeeCaller panics unless the caller is a fee-producing realm: pool, position, router, staker, or the DCA/limit order realms.
- OID
- 08e71a…a140:3
assertIsAuthorizedFeeCaller details
assertIsAdminOrGovStaker
func(caller .uverse.address)assertIsAdminOrGovStaker panics if the caller is not admin or gov/staker.
- OID
- 08e71a…a140:5
assertIsAdminOrGovStaker details
assertIsValidPercent
func(pct int64)assertIsValidPercent panics if the percentage is invalid (not between 0-10000).
- OID
- 08e71a…a140:6
assertIsValidPercent details
assertNotImplementYet
func()- OID
- 08e71a…a140:7
assertNotImplementYet details
errInvalidPct
untyped stringValue
"[GNOSWAP-PROTOCOL_FEE-001] invalid percentage"
errInvalidAmount
untyped stringValue
"[GNOSWAP-PROTOCOL_FEE-002] invalid amount"
errProtocolFeeHalted
untyped stringValue
"[GNOSWAP-PROTOCOL_FEE-003] protocol fee halted"
errSpoofedRealm
untyped stringValue
"[GNOSWAP-PROTOCOL_FEE-004] rlm does not match the current crossing frame"
makeErrorWithDetail
func(message string, detail string) .uverse.errormakeErrorWithDetail creates an error with additional context.
- OID
- 08e71a…a140:8
makeErrorWithDetail details
init.11
func()- OID
- 08e71a…a140:10
init.11 details
registerProtocolFeeV1
func()- OID
- 08e71a…a140:12
registerProtocolFeeV1 details
initStoreData
func(int, rlm .uverse.realm, protocolFeeStore protocol_fee.IProtocolFeeStore) .uverse.error- OID
- 08e71a…a140:13
initStoreData details
protocolFeeV1
typeValue
v2.protocolFeeV1
NewProtocolFeeV1
func(protocolFeeStore protocol_fee.IProtocolFeeStore) protocol_fee.IProtocolFeeNewProtocolFeeV1 creates the protocol-fee v1 implementation backed by protocolFeeStore. Parameters: - protocolFeeStore: Store implementation containing the protocol-fee state for this version. Returns: - implementation: An IProtocolFee implementation that exposes v1 behavior through protocolFeeStore.
- OID
- 08e71a…a140:14
NewProtocolFeeV1 details
protocolFeeState
typeprotocolFeeState holds all the state variables for protocol fee management
Value
v2.protocolFeeState
NewProtocolFeeStateBy
func(protocolFeeStore protocol_fee.IProtocolFeeStore) *v2.protocolFeeStateNewProtocolFeeState creates a new instance of protocolFeeState with initialized values Parameters: - protocolFeeStore: Store implementation backing the new protocol-fee state view. Returns: - state: New protocolFeeState wrapper backed by protocolFeeStore.
- OID
- 08e71a…a140:16
NewProtocolFeeStateBy details
retrieveAmount
func(tree *v0.BPTree, key string) int64- OID
- 08e71a…a140:18