-
Notifications
You must be signed in to change notification settings - Fork 22
FeeQuoter simplification, fix non-evm & apply link discount #1408
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
base: develop
Are you sure you want to change the base?
Conversation
|
| import {Client} from "../libraries/Client.sol"; | ||
| import {Internal} from "../libraries/Internal.sol"; | ||
|
|
||
| interface ILegacyFeeQuoter { |
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.
Extracted to clearly show what can be removed in future versions and what doesn't have to be written for net-new non-evms
chains/evm/contracts/FeeQuoter.sol
Outdated
| // Apply the premium multiplier for the fee token, making it 36 decimals | ||
| premiumFeeUSDWei *= s_feeTokens.get(message.feeToken); | ||
| if (message.feeToken == i_linkToken) { | ||
| premiumFeeUSDWei *= 9e17; // 0.9x for LINK |
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.
Replace configurable fee token based discount with hard coded value
Why?
This PR fixes most outstanding issues in the FeeQuoter. Due to the PR structure it's best to review each commit individually instead of the final result. Almost all functions in the feeQuoter have moved to clearly split legacy functions from 1.7 required functionality.