Gas Abstraction Integrations [Internal]
FeeResponse updated in FeeController with platformFee based on type of txn, and chain
WalletController - all functions take in Gas amount calculated of other token as args
Now, the /getEnabledGasTokens returns the list of enabled gas tokens for a chainName, and the balanceInTokens, balanceInUsd, quoteRate of the token
compare the totalInUsd Fee returned after estimation to filter the enabled gas tokens based on balanceInUsd >= totalInUsd.
And calculate the amount to cut of the token selected by the user, as totalInUsd/quoteRate -> pass this to gas.token.amount in walletController function interacting with
Last updated