BibliothecaDAO / RealmsWorld

The Hub, Marketplace and Centrepiece of the Realms World.
https://realms.world/
MIT License
20 stars 38 forks source link

feat: Update Avnu sdk #208

Open RedBeardEth opened 7 months ago

RedBeardEth commented 7 months ago

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

brolag commented 7 months ago

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

brolag commented 6 months ago

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!