RealmsWorld icon indicating copy to clipboard operation
RealmsWorld copied to clipboard

feat: Update Avnu sdk

Open RedBeardEth opened this issue 1 year ago • 2 comments

Describe the feature you'd like to request

v2 of Avnu sdk (https://github.com/avnu-labs/avnu-sdk/releases/tag/v2.0.0) has been released enabling gasless transactions

Describe the solution you'd like to see

Upgrade Avnu and incorporate new functionality (e.g gasless if possible)

Additional information

No response

RedBeardEth avatar Apr 21 '24 22:04 RedBeardEth

Hi @RedBeardEth I'd like to work on this.

brolag avatar Apr 21 '24 22:04 brolag

Update:

Hi @RedBeardEth,

I'm testing the swap on Sepolia using the STRK contract instead of LORDS 0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d

image

Given the gasless feature supports USDC or USDT I'm using USDC. Here's my config:

image

According to the answers from the AVNU support team having USDC in the wallet is required for the gasless feature. In the AVNU swap it's pretty clear that there are two options:

image

Based on that I have a few questions:

  1. In this moment is not clear for the user what's happening (even for the AVNU fi swap). I think is a good idea to handle this exception somehow.

  2. There's not enough liquidity for USDC, is there a way to get USDC tokens easly on Sepolia so I can test better?

  3. The library update is working without the gasless options. Should I create a PR for this part only and tackle the gasless feature in a separate issue?

Thanks!

brolag avatar Apr 26 '24 16:04 brolag