-
Notifications
You must be signed in to change notification settings - Fork 617
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 (#3101)
* further swap generalization * add step and swap state * Update test.yml * Update test.yml * Further generalize swaps and lp (#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
331b8f4
commit dfd86cb
Showing
9 changed files
with
299 additions
and
183 deletions.
There are no files selected for viewing
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.