dLab Profile picture
Apr 25 8 tweets 2 min read
A serious technical discussion: Buy and Sell cross-chain assets in one transaction.
#Stargate has implemented 2-3 transactions-in-one. How many transactions does an Omnichain Aggregator need to process at one time?
At least 4, possibly 20+, besides pay gas only once.
Bob is on ethereum, intends to buy ETH/BTC with 200,000 USDC, he just wants to settle this in one transaction. This is a common requirement.
What should Bob do?
Pancake on BNB and Spooky on Fantom can offer lower prices (disregarding the impact of slippage for now), which means that Bob can buy more ETH/BTC.
Does Bob have a better choice now? He is willing to pay fees as long as someone can help him.
The whole process goes through several complex parts.
1. Discover pools and feed prices, and simulate trading results;
2. Choose the optimal path by weighing the results of Pathfinding and Movement (such as "Jump Point Search");
3. Allocate funds according to the path;
Local-chain exchange, BNB cross-chain exchange, Fantom cross-chain exchange (all transactions-in-one);
But if a whale suddenly appeared on pancake and bought a lot of ETH. Poor Bob is about to lose. "OSWAP" will protect him and revoke the transaction on BNB.
This whale on BNB plans to buy ETH with 500,000 USDC. His choice is the same as Bob's.
As stated in this thread, we are on track to achieve this - "Oswap", will be the infrastructure of the Omnichain era. Meanwhile, we know exactly how complicated and difficult it can be.
Thread ends.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with dLab

dLab Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(