assertIsPoolOrPositionOrRouterOrStaker
func(caller .uverse.address)assertIsPoolOrPositionOrRouterOrStaker panics if the caller is not the pool, router, or staker contract.
- OID
- 02af6e…7b3b:3
assertIsPoolOrPositionOrRouterOrStaker details
assertIsAdminOrGovStaker
func(caller .uverse.address)assertIsAdminOrGovStaker panics if the caller is not admin or gov/staker.
- OID
- 02af6e…7b3b:5
assertIsAdminOrGovStaker details
assertIsValidPercent
func(pct int64)assertIsValidPercent panics if the percentage is invalid (not between 0-10000).
- OID
- 02af6e…7b3b:6
assertIsValidPercent details
assertNotImplementYet
func()- OID
- 02af6e…7b3b: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
- 02af6e…7b3b:8
makeErrorWithDetail details
init.9
func()- OID
- 02af6e…7b3b:10
init.9 details
registerProtocolFeeV1
func()- OID
- 02af6e…7b3b:12
registerProtocolFeeV1 details
initStoreData
func(int, rlm .uverse.realm, protocolFeeStore protocol_fee.IProtocolFeeStore) .uverse.error- OID
- 02af6e…7b3b:13
initStoreData details
protocolFeeV1
typeValue
v1.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
- 02af6e…7b3b:14
NewProtocolFeeV1 details
protocolFeeState
typeprotocolFeeState holds all the state variables for protocol fee management
Value
v1.protocolFeeState
NewProtocolFeeStateBy
func(protocolFeeStore protocol_fee.IProtocolFeeStore) *v1.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
- 02af6e…7b3b:16
NewProtocolFeeStateBy details
retrieveAmount
func(tree *v0.BPTree, key string) int64- OID
- 02af6e…7b3b:18