How to prevent malicious relayer from setting a super high fee

If a relayer set its base fee and percentage fee to a super high number, is there any mechanism can prevent it from being selected in my Dapp?

  1. A paymaster should validate the range of gas price and fee it accepts
  2. The client sorts the relayers by fee, and can also add a filter to remove certain relayers:
    function relayFilter({baseFee, pctRelayFee, relayManager}) {
      return true; 
    overrideDependencies = { relayFilter }
    gsnProvider = newProvider( { provider, config, overrideDependencies } )
    The relayFilter allows you to filter out relayer based on fees