forked from osmosis-labs/osmosis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
concentrated liquidity: further swap/lp work (osmosis-labs#3101)
* further swap generalization * add step and swap state * Update test.yml * Update test.yml * Further generalize swaps and lp (osmosis-labs#3111) * Change sqrt to caller * Remove margin of error from mint * Change Pool to have dec curr price * Remove swap structs * Adams comments * address code review comments * final additions * address code review comments * code review Co-authored-by: Matt, Park <45252226+mattverse@users.noreply.github.com>
- Loading branch information
1 parent
9185d70
commit 4de53a5
Showing
11 changed files
with
316 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
package concentrated_liquidity | ||
|
||
import ( | ||
cltypes "github.com/osmosis-labs/osmosis/v12/x/concentrated-liquidity/types" | ||
) | ||
|
||
// OrderInitialPoolDenoms sets the pool denoms of a cl pool | ||
func (p *Pool) OrderInitialPoolDenoms(denom0, denom1 string) error { | ||
return p.orderInitialPoolDenoms(denom0, denom1) | ||
func OrderInitialPoolDenoms(denom0, denom1 string) (string, string, error) { | ||
return cltypes.OrderInitialPoolDenoms(denom0, denom1) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.