-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add FeePricer
to quoter
#1684
Merged
trajan0x
merged 29 commits into
fix/new-rfq-api-changes
from
fix/new-rfq-fixed-fee-logic
Dec 21, 2023
Merged
Add FeePricer
to quoter
#1684
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
84d0761
Chore: bump go.mod to 1.21
dwasse 2d4f17d
WIP: fee pricer skeleton
dwasse ad735b6
WIP: impl GetOriginFee()
dwasse a7ef20a
WIP: impl fee calcs
dwasse ef58bc0
WIP: impl getGasPrice()
dwasse bafd335
WIP: getTokenPrice() impl
dwasse c734165
WIP: remove coingecko price fetching for now; add TokenConfig with US…
dwasse 5c2b9b5
WIP: add caching logic for gas price
dwasse b33204e
WIP: fee_pricer_test setup
dwasse d1b8c27
WIP: move pricer to its own package, replace omniClient with
dwasse 66fe894
WIP: getNativeToken() impl
dwasse 3d7300d
WIP: getTokenDecimals() impl
dwasse eb7fc05
Feat: working TestGetOriginFee
dwasse a486c3f
Feat: working TestGetDestinationFee
dwasse 41dcfe1
Cleanup: move redundant logic into getFee()
dwasse 1b9354d
Feat: add TestGetTotalFee
dwasse 45eda1a
Feat: add TestGetGasPrice
dwasse b96a771
Cleanup: TTL -> TTLSeconds
dwasse 9e3aa5a
Feat: set FixedFee in GenerateQuotes() func
dwasse 8c076a6
Feat: consider fees in ShouldProcess() logic
dwasse 583da87
Feat: add TestGenerateQuotes
dwasse 23d2838
Feat: add TestShouldProcess
dwasse 8b2be89
Cleanup: usage of TokenID -> TokenName to avoid confusion
dwasse b3c95fe
Cleanup: typo
dwasse 2dbed75
WIP: attempt to fix e2e test
dwasse 21350c3
Cleanup: add quoting description in readme
dwasse 54e546e
update string literals (from #1687)
trajan0x 701116d
have SubmitAllQuotes respect context (from #1687)
trajan0x 59a5c47
fix e2e (from #1687)
trajan0x File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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,6 @@ | ||
module github.com/synapsecns/sanguine/ethergo | ||
|
||
go 1.20 | ||
go 1.21 | ||
|
||
require ( | ||
cloud.google.com/go/kms v1.15.0 | ||
|
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,4 +1,4 @@ | ||
go 1.20 | ||
go 1.21 | ||
|
||
// note: new paths should be added as flags to the .codecov.yaml | ||
use ( | ||
|
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
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
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we actually need gas token symbol here, but ok.
Think the reality is, before e deploy (or slightly after) config is going to need a complete overhaul in #1650, just don't think this pr is the appropriate place to do that.
My recommendations or how to go about this is:
Config
struct to Getters similiar to Submitter IConfig