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.IProtocolFee- 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
- OID
- 02af6e…7b3b:16
NewProtocolFeeStateBy details
retrieveAmount
func(tree *v0.BPTree, key string) int64- OID
- 02af6e…7b3b:18
retrieveAmount details
assertIsPoolOrPositionOrRouterOrStaker : func(caller .uverse.address) Inspect
assertIsAdminOrGovStaker : func(caller .uverse.address) Inspect
assertIsValidPercent : func(pct int64) Inspect
assertNotImplementYet : func() Inspect
errInvalidPct
:
untyped string
="[GNOSWAP-PROTOCOL_FEE-001] invalid percentage"
errInvalidAmount
:
untyped string
="[GNOSWAP-PROTOCOL_FEE-002] invalid amount"
errProtocolFeeHalted
:
untyped string
="[GNOSWAP-PROTOCOL_FEE-003] protocol fee halted"
errSpoofedRealm
:
untyped string
="[GNOSWAP-PROTOCOL_FEE-004] rlm does not match the current crossing frame"
makeErrorWithDetail : func(message string, detail string) .uverse.error Inspect
init.9 : func() Inspect
registerProtocolFeeV1 : func() Inspect
initStoreData : func(int, rlm .uverse.realm, protocolFeeStore protocol_fee.IProtocolFeeStore) .uverse.error Inspect
protocolFeeV1
:
type
=v1.protocolFeeV1
NewProtocolFeeV1 : func(protocolFeeStore protocol_fee.IProtocolFeeStore) protocol_fee.IProtocolFee Inspect
protocolFeeState
:
type
=v1.protocolFeeState