Skip to content

Commit 766a311

Browse files
fix: spot price for cosmwasm pools (#5950)
* fix spot price for cosmwasm pools * Update CHANGELOG.md --------- Co-authored-by: Adam Tucker <adam@osmosis.team>
1 parent 7bbeb1b commit 766a311

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5757

5858
* [#5831](https://github.com/osmosis-labs/osmosis/pull/5831) Fix superfluid_delegations query
5959
* [#5835](https://github.com/osmosis-labs/osmosis/pull/5835) Fix println's for "amountZeroInRemainingBigDec before fee" making it into production
60-
* [#5841] (https://github.com/osmosis-labs/osmosis/pull/5841) Fix protorev's out of gas erroring of the user's transcation.
61-
* [#5930] (https://github.com/osmosis-labs/osmosis/pull/5930) Updating Protorev Binary Search Range Logic with CL Pools
60+
* [#5841](https://github.com/osmosis-labs/osmosis/pull/5841) Fix protorev's out of gas erroring of the user's transcation.
61+
* [#5930](https://github.com/osmosis-labs/osmosis/pull/5930) Updating Protorev Binary Search Range Logic with CL Pools
62+
* [#5950](https://github.com/osmosis-labs/osmosis/pull/5950) fix: spot price for cosmwasm pool types
6263

6364
### Misc Improvements
6465

app/apptesting/cosmwasmpool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (s *KeeperTestHelper) PrepareCosmWasmPool() cosmwasmpooltypes.CosmWasmExten
2929
return s.PrepareCustomTransmuterPool(s.TestAccs[0], []string{DefaultTransmuterDenomA, DefaultTransmuterDenomB})
3030
}
3131

32-
// PrepareCustomConcentratedPool sets up a concentrated liquidity pool with the custom parameters.
32+
// PrepareCustomTransmuterPool sets up a transmuter pool with the custom parameters.
3333
func (s *KeeperTestHelper) PrepareCustomTransmuterPool(owner sdk.AccAddress, denoms []string) cosmwasmpooltypes.CosmWasmExtension {
3434
// Mint some assets to the account.
3535
s.FundAcc(s.TestAccs[0], DefaultAcctFunds)

x/cosmwasmpool/model/pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (p Pool) IsActive(ctx sdk.Context) bool {
7171
}
7272

7373
// SpotPrice returns the spot price of the pool.
74-
func (p Pool) SpotPrice(ctx sdk.Context, baseAssetDenom string, quoteAssetDenom string) (sdk.Dec, error) {
74+
func (p Pool) SpotPrice(ctx sdk.Context, quoteAssetDenom string, baseAssetDenom string) (sdk.Dec, error) {
7575
request := msg.SpotPriceQueryMsg{
7676
SpotPrice: msg.SpotPrice{
7777
QuoteAssetDenom: quoteAssetDenom,

0 commit comments

Comments
 (0)