shapeshift / web

ShapeShift Web
https://app.shapeshift.com
MIT License
163 stars 180 forks source link

Add L1 to Ethereum long-tail swaps #5892

Open 0xApotheosis opened 7 months ago

0xApotheosis commented 7 months ago

Handle this switch case: case TradeType.L1ToLongTail: by taking inspiration from the existing long-tail to L1 logic in getLongtailToL1Quote().

We'll need to update the memo from the THORChain quote to be in the format of WAP:ASSET:DESTADDR:LIM:AFFILIATE:FEE:DEXAggregatorAddr:FinalTokenAddr:MinAmountOut, and add the supported (whitelisted) assets to the buy asset function.

gomesalexandre commented 6 months ago

@0xApotheosis note: assuming https://github.com/shapeshift/web/pull/6072 is merged by then, https://github.com/shapeshift/web/issues/5805 will also need to be tested - and closed if happy - as part of this.