Open greg-schrammel opened 1 month ago
hey @greg-schrammel, did we end up getting blocked / deprioritizing this?
hey @greg-schrammel, did we end up getting blocked / deprioritizing this?
no I moved to other stuff and forgot about it, just fixed the conflicts
Fixes APP-1234
What changed (plus any additional context for devs)
with assets
inputAsset
andoutputAsset
expects aUniqueId (address_chainId)
ex:rainbow://swaps?inputAsset=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48_1
with prefilled values
percentageToSell
>inputAmount
>outputAmount
only one is used, in this order of importancepercentageToSell
expects a value between0
and1
ex:rainbow://swaps?inputAsset=eth_1&percentageToSell=0.2
, 20% of wallet swappable ETHwith
gasSpeed
normal
,fast
orurgent
ex:rainbow://swaps?gasSpeed=urgent
with
flashbots
flashbots=true
any other value besidestrue
meansfalse
ex:rainbow://swaps?flashbots=true
with
slipagge
slippage=100
= 1% slippage ex:rainbow://swaps?slippage=100
with
from
rainbow://swaps?from=0x507F0daA42b215273B8a063B092ff3b6d27767aF
Screen recordings / screenshots
What to test
to test in ios you can run
xcrun simctl openurl booted 'rainbow://swap/?outputAsset=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48_1&gasSpeed=urgent&flashbots=true&inputAmount=1&inputAsset=eth_1'