-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multi-asset swap / LP equations, and tests (#1383)
Closes: #1369 ## What is the purpose of the change This change extends the CFMM equation we use for stableswap to multiple assets. ## Brief change log - Create multi-asset CFMM function - [wip] Create multi-asset CFMM solver - [wip] Create tests for new CFMM ## Testing and Verifying This change added tests and can be verified as follows: *(example:)* - [wip] ## Documentation and Release Note - Does this pull request introduce a new feature or user-facing behavior changes? (yes) - Is a relevant changelog entry added to the `Unreleased` section in `CHANGELOG.md`? (yes / no) - How is the feature or change documented? (not applicable / specification (`x/<module>/spec/`) / [Osmosis docs repo](https://github.com/osmosis-labs/docs) / not documented)
- Loading branch information
1 parent
6e1f93a
commit 18a3bb3
Showing
5 changed files
with
21 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ func main() { | |
|
||
b, _ := json.Marshal(createdChain) | ||
fileName := fmt.Sprintf("%v/%v-encode", dataDir, chainId) | ||
if err = os.WriteFile(fileName, b, 0777); err != nil { | ||
if err = os.WriteFile(fileName, b, 0o777); err != nil { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ValarDragon
Member
|
||
panic(err) | ||
} | ||
} |
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
Was this just some auto linter change?