Skip to content

feat: Add support for Paymaster by Avnu #65

Description

@akiraonstarknet

Paymaster is the ability of the user to pay gas in any tokens.

It will look something like this feature on app.avnu.fi. Go here, click the button showed below, user will be allowed to select multiple tokens to pay gas in.
image

Requirements:

  1. Token list: ETH, STRK, xSTRK, USDT, USDC, DAI
  2. If user has xSTRK balance, it should be the default token. If not, it should be whatever token user has balance in (with priority going from ETH, STRK to other tokens)
  3. This feature should not be visible if wallet is not connected
  4. Design:
    image
  5. On clicking this button, show dropdown of all tokens user can select from. Show their balances too.
    Reference design (only use the layout, colors have to be endur colors)
    image
  6. For now, use token logos from here:
    https://github.com/strkfarm/starkfarm-client/blob/c8b2b745e8b15ec94102218df2145cb4002a467a/src/constants.ts#L6
    xSTRK logo: http://endur.fi/logo.svg

Documentation:
https://doc.avnu.fi/avnu-paymaster/overview

Learn more:
https://www.starknet.io/blog/paymaster-with-avnu-video/

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions