-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add FeePricer
to quoter
#1684
Conversation
Important Auto Review SkippedAuto reviews are disabled on base/target branches other than the default branch. Please add the base/target branch pattern to the list of additional branches to be reviewed in the settings. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ? TipsChat with CodeRabbit Bot (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## fix/new-rfq-api-changes #1684 +/- ##
=============================================================
Coverage ? 50.71044%
=============================================================
Files ? 402
Lines ? 27659
Branches ? 284
=============================================================
Hits ? 14026
Misses ? 12242
Partials ? 1391
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
ff9a775
to
c734165
Compare
cf15427
to
9e3aa5a
Compare
9887ec4
to
23d2838
Compare
Debugging LogWill be documenting debugging process here (quid posteos & because I'm too tired to do it in my head) Gas Token, Maybe?Managed to identify the issue behind the failing e2e tests. Seems like, for whatever reason, tokenAddr in config is empty: This only appears to be the case for gas tokens (e.g. ETH and MATIC): Moar InfoNeeded some more info so setup 212daa0 to try to get some exact details on the token who's name can't be found. Doesn't seem to be a gas token since addr is not "==" From this, we can get the name is Okay, now we're getting somewhere. This token is in Seems root of the problem is here: Where only USDC is added As expected, adding USDC fixes the test: Should be fixed as of: 59a5c47 |
@@ -194,10 +196,24 @@ func (i *IntegrationSuite) setupRelayer() { | |||
originBackendChainID: { | |||
Bridge: i.manager.Get(i.GetTestContext(), i.originBackend, testutil.FastBridgeType).Address().String(), | |||
Confirmations: 0, | |||
Tokens: map[string]relconfig.TokenConfig{ | |||
"ETH": relconfig.TokenConfig{ |
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:
- Convert all current references to pieces of the
Config
struct to Getters similiar to Submitter IConfig - Reference those
- Rewrite the configs
- Fix the e2e tests
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.
LGTM
Adds
FeePricer
for setting theFixedFee
value in the quoter.