Migration to Lit and AA
  • Overview
  • Getting Started
    • Installation
    • Deployment
    • FAQ
  • Reference
    • Onboarding and Wallet SDK
      • Concepts
      • Wagmi config
      • @tria-sdk/core
        • Auth Controller [INTERNAL]
        • User Controller
      • @tria-sdk/web [INTERNAL]
        • Lit Controller
        • Keyring Controller
        • Wallet Controller
        • Gas Abstraction Wallet Controller ⛽️
        • Fee Controller
        • Solana Wallet
        • WalletConnect Controller
        • 🚂Execution Engine Controller
      • @tria-sdk/connect
        • TriaProvider
        • Actions
        • Hooks
          • Internal hooks
        • Constants [Internal]
      • @tria-sdk/authenticate
        • Application
      • @tria-sdk/authenticate-web
    • Supported Networks
    • How to create Debridge Solana Calldata
    • New concepts [Internal]
    • Gas Abstraction Integrations [Internal]
  • EIP1193 - Provider (WIP)
Powered by GitBook
On this page
  1. Reference

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

PreviousNew concepts [Internal]NextEIP1193 - Provider (WIP)

Last updated 1 year ago