balancednetwork / balanced-network-interface

An open-source interface for the Balanced Network protocol (https://balanced.network)
https://app.balanced.network/
22 stars 21 forks source link

feat: add avax chain #1321

Closed 0xmilktea closed 1 month ago

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
balanced-network-interface ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 9:19am
parrot9design commented 2 months ago

Okay, here's my first round of feedback based on the testing I've done so far.

I tried a number of cross-chain swaps and transfers of AVAX from ICON to Avalanche, but the confirmation modal would never move past the Awaiting confirmation on Avalanche step. I did receive AVAX on Avalanche, and refreshing the page on Balanced shows the correct amount in my wallet, but the transaction still shows as pending in the UI (even after I disconnect all wallets).


I'm unable to complete a swap from Archway to Avalanche: Screenshot 2024-05-08 at 2 33 01 PM


The UI isn't pulling through my AVAX balance on Avalanche:

Screenshot 2024-05-08 at 12 23 13 PM

Screenshot 2024-05-08 at 12 23 26 PM


The destination blockchain was inconsistent in this transaction:

Screenshot 2024-05-08 at 12 29 48 PM

Screenshot 2024-05-08 at 2 35 45 PM





Following on from that...


Screenshot 2024-05-08 at 12 07 30 PM




FezBox commented 2 months ago

Yes we do want to use avax as collateral on icon as well before the cross chain loans is ready

swiftcc624 commented 2 months ago

@0xmilktea we need to fix the crashing issue due to store migration.

swiftcc624 commented 2 months ago

@0xmilktea hana integration as well

0xmilktea commented 1 month ago
FezBox commented 1 month ago
parrot9design commented 1 month ago




You shouldn’t be able to surface a confirmation modal until the base requirements for the transaction have been met. In this instance, only display the sign-in modal so the app can load in the wallet balance and addresses involved before moving ahead.






To increase the usefulness of the completed transaction listings, we could also link to the transaction info from each side, if available:

COMPLETE
FezBox commented 1 month ago
hetfly commented 1 month ago
Screenshot 2024-05-21 at 22 00 08
Screenshot 2024-05-21 at 21 15 39
Screenshot 2024-05-21 at 21 22 30
hetfly commented 1 month ago
parrot9design commented 1 month ago




Couldn't approve cross-chain transfer. View common transaction issues.


FezBox commented 1 month ago

In the latest build, when trying to pick a token to swap while the drop-down is displayed, the tokens keep moving positions randomly as the mouse hovers over it.

parrot9design commented 1 month ago

To remove the need to connect 2 wallets for a cross-chain swap, here's some updated handling for the Swap tab:


Note: The Choose address modal I've provided is just a mockup, and I've already talked to @hetfly about this in more detail, so I'd prefer to let him tackle this piece.

hetfly commented 1 month ago
image
parrot9design commented 1 month ago

There should be a time counting up underneath Pending, as well:

Screenshot 2024-05-24 at 2 12 07 PM



parrot9design commented 1 month ago

Here are the issues still outstanding from my previous comments, plus a couple of additional ones based on the latest round of testing:








It also results in two separate messages in the Activity section, rather than one (Avalanche -> Avalanche). It's reproducible, so I took a video the second time around. The final transaction is still pending in the UI 6 minutes later. The video is too large to include here, but you can access it from https://drive.google.com/file/d/1dtTMGV-4JNGA-aMNVQw1AbY5dPwh6s8a/



parrot9design commented 1 month ago



Also, the bridge fee is missing from Archway -> Avalanche.



0xmilktea commented 1 month ago
0xmilktea commented 1 month ago

xswaping USDC from archway to icon is failing.

hetfly commented 1 month ago

xswaping USDC from archway to icon is failing.

@0xmilktea this is possible with routeV2 only https://github.com/balancednetwork/balanced-network-interface/issues/1328

parrot9design commented 1 month ago
hetfly commented 1 month ago
Error: Query failed with (6): rpc error: code = Unknown desc = failed to execute message; message index: 0: Invalid Network Address according to Network ID: execute wasm contract failed [CosmWasm/wasmd@v0.45.0/x/wasm/keeper/keeper.go:395] With gas wanted: '300000000' and gas used: '127733' : unknown request