-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buyback and Burn #1318
base: main
Are you sure you want to change the base?
Buyback and Burn #1318
Conversation
- fork only necessary osmomath files - fork cl pool types and price calc func
…oracle.proto and regenerate go bindings
Removes redundant 'stride' and 'v1beta1' segments from API paths to make them cleaner and more consistent - /icqoracle/price - /icqoracle/prices - /icqoracle/params
Removes 'stride/x/' prefix from amino message names to maintain consistent naming for: - MsgRegisterTokenPriceQuery - MsgRemoveTokenPrice
to share code between msg validation and genesis validation
func TokenPriceQueryKey(baseDenom, quoteDenom, poolId string) []byte { | ||
return []byte(fmt.Sprintf("%s|%s|%s", baseDenom, quoteDenom, poolId)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be TokenPriceKey
instead to line up with the keepers and struct type?
func TokenPriceByDenomKey(baseDenom string) []byte { | ||
return []byte(baseDenom) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can remove this and just do the []byte(TokenPrice.BaseDenom)
in the keepers
- Introduces v25 upgrade handler with ICQOracle parameter initialization - Adds new module store upgrades for icqoracle, strdburner, and auction Initial ICQOracle parameters: - 5 min update and expiration intervals - 2 min ICQ timeout - Osmosis chain and connection configurations
…om expiring before icq comes back
Corrects the mathematical comparison for bid price validation to properly compare payment amount against selling amount multiplied by floor price. Adds clarifying comments explaining the price conversion between tokens and the purpose of MinPriceMultiplier to improve code readability.
- add icqoracle msgserver tests - fix remove token query - refactor keeper functions to get the 3 key values rather than the token price struct
f51792c
to
e3eb449
Compare
No description provided.