-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rfq-relayer): add MaxBalance param (#2917)
* Feat: add MinBalance to token config * Feat: add min balance logic * Feat: test min balance * [goreleaser] * Cleanup: comment * Feat: MinBalance -> MaxBalance * Feat: structure quote input * Feat: move quote outside goroutine for thread safety * Feat: getOriginAmount() takes origin balance * Feat: getOriginAmount properly incorporates MaxBalance * Feat: getOriginQuoteAmount takes QuoteInput struct * [goreleaser] * Feat: check for negative quotable balance * Feat: convert MaxBalance to string ptr * Feat: handle nil as positive inf * Cleanup: prints * Cleanup: tracing msg * [goreleaser] * [goreleaser]
- Loading branch information
Showing
5 changed files
with
172 additions
and
62 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
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.