Skip to content

Conversation

@RensR
Copy link
Collaborator

@RensR RensR commented Nov 21, 2025

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.

  • Replace configurable fee token based discount with hard coded value
  • Applied fee token discount to non-legacy path
  • Fix non-evm support in legacy args parsing

@github-actions
Copy link

Metric feeQuoter develop
Coverage 69.4% 69.0%

@RensR RensR marked this pull request as ready for review November 21, 2025 12:46
@RensR RensR requested a review from a team as a code owner November 21, 2025 12:46
import {Client} from "../libraries/Client.sol";
import {Internal} from "../libraries/Internal.sol";

interface ILegacyFeeQuoter {
Copy link
Collaborator Author

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

// 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
Copy link
Contributor

@kylesmartin kylesmartin Nov 21, 2025

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants