✨ v1.1.0 has been released! ✨ #43
Elnaril
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This version comes with the support of the Universal Router
TRANSFER
function.A couple of use cases:
1/ Swap and transfer to many recipients
Let's say you want to pay 100 USDC to several beneficiaries from a wallet having only some ETH.
You can now do it all in one single transaction by encoding:
WRAP_ETH
V3_SWAP_EXACT_OUT
orV2_SWAP_EXACT_OUT
TRANSFER
2/ Mass transfers
You can just make a lot of ETH or ERC-20 transfers in one single transaction and save a substantial amount of gas, depending on the number of recipients, compared to the standard one transfer per transaction.
In my tests, I sent 1 ETH to many recipients and got the following results:
So, if it's not interesting for just a few transfers (53% increase of gas consumption compared to 6 standard transactions), it makes sense for more (the gas used is decreased by 45% for 48 transfers).
Other updates
The decoding of the "revert on fail" flag is now supported, and the way is prepared to encode UR functions that support it. For now, this SDK does not support any such function yet, as they are mainly NFT related ones.
This new version also adds support for encoding the
execute()
function without deadline.Feel free to give me any feedback on this release here, or open a discussion or a ticket about a feature that should be in the next one!
Beta Was this translation helpful? Give feedback.
All reactions