Skip to content
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

Open
wants to merge 74 commits into
base: main
Choose a base branch
from
Open

Buyback and Burn #1318

wants to merge 74 commits into from

Conversation

assafmo
Copy link
Contributor

@assafmo assafmo commented Dec 17, 2024

No description provided.

- fork only necessary osmomath files
- fork cl pool types and price calc func
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
Comment on lines +20 to +22
func TokenPriceQueryKey(baseDenom, quoteDenom, poolId string) []byte {
return []byte(fmt.Sprintf("%s|%s|%s", baseDenom, quoteDenom, poolId))
}
Copy link
Collaborator

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?

Comment on lines +24 to +26
func TokenPriceByDenomKey(baseDenom string) []byte {
return []byte(baseDenom)
}
Copy link
Collaborator

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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants