ross pfp

ross

@z0r0z

79 Following
469 Followers


ross pfp
ross
@z0r0z
yeah! for defi stuff, you can really shave off the ops
0 reply
0 recast
0 reaction

ross pfp
ross
@z0r0z
let's cook!
0 reply
0 recast
1 reaction

wmp pfp
wmp
@wmp.eth
cool find today: NANI is building an onchain agent OS—i.e. command your wallet by chatting with AI you can create prompt recipes and bookmark for later, and gas is abstracted away with a native ETH yield system now live on Ethereum, Arbitrum, and Base at nani.ooo
3 replies
2 recasts
3 reactions

ross pfp
ross
@z0r0z
I am endeavouring to be more online but in different ways
0 reply
0 recast
0 reaction

ross pfp
ross
@z0r0z
yeah, moneypipes (no longer running, but loved the UI). bridge variant isn't hard. Simplest and most trustless I think would be to just complete the swap on L1 and then call `depositTo` (etc) of that output token for the benefit of the eth sender on the bridge. I will work on that a bit later.
0 reply
0 recast
1 reaction

ross pfp
ross
@z0r0z
nice. If anyone in FC community wants to give tips deployments, I tend to work quickly and totally in public. Something that occurred to me, as well, seeing you degen zwap, is how insanely cheap this system is. Zero calldata costs with this kind of defi: https://warpcast.com/z0r0z/0x1b75a022
0 reply
0 recast
0 reaction

ross pfp
ross
@z0r0z
As well, on L2s, receiver functions that do very specific things like this 'degen zwap' will save loads of gas. This is because there is ZERO calldata involved. The biggest expense of L2 compute. Which is why this zwap cost a tenth of a cent probably ("free"):
0 reply
0 recast
0 reaction

ross pfp
ross
@z0r0z
A note on the optimization approach. In addition to using low-level assembly, since the contract interactions are largely opinionated and therefore trusted to work as intended, the focus of using crafted bytecode and a single contract to cater to very specific defi use cases will likely be an efficiency trend.
1 reply
0 recast
0 reaction

ross pfp
ross
@z0r0z
Note: This just works on Base L2. Don't send anything to this address on any other chain. Here is the contract source code on Base: https://basescan.org/address/0x118d4f68a0c0ab9468a3ef50d19c0055e6c73bc9#code The contract also allows you to pay another account degen in a single step (using `zwap()` or do batch pay).
0 reply
0 recast
0 reaction

ross pfp
ross
@z0r0z
this is a continuation of my `zwaps` which are small contracts that convert ether into a chosen currency. In this case degen via univ3. By sending ether to 0x118d4F68A0C0aB9468A3Ef50D19C0055E6C73BC9 a swap is automatically activated and the degen is sent back (no extra fees). Everything is also very gas optimized.
2 replies
1 recast
0 reaction

ross pfp
ross
@z0r0z
no ui and basically no fees to exchange value on the internet. evergreen
2 replies
0 recast
0 reaction

ross pfp
ross
@z0r0z
please clap
2 replies
0 recast
5 reactions

ross pfp
ross
@z0r0z
done and done, any ether sent to 0x118d4F68A0C0aB9468A3Ef50D19C0055E6C73BC9 turns into degen contract: https://basescan.org/address/0x118d4f68a0c0ab9468a3ef50d19c0055e6c73bc9#code
1 reply
0 recast
1 reaction

ross pfp
ross
@z0r0z
cool idea. Yeah, I think that can be done as a batch relay. Shall cook
1 reply
0 recast
2 reactions

Stephan pfp
Stephan
@stephancill
send eth on mainnet to buyusdc.eth, get usdc. simple as that https://www.onceupon.xyz/0x160eaa5efe8fa5583358e594cfbaa418754ce0e188cc77cc20ee46dec9b6c18e
0 reply
2 recasts
18 reactions

ross pfp
ross
@z0r0z
nice lol. Adapting any output is easy. What you want to check is basically pool "token order". In terms of what you want to get out of sent ETH. Just affects the swap params (whether `zeroForOne` sent to pool is "true" or not) and the fallback receipt amount. If you have any tokens in mind, I can whip a gist quick.
2 replies
0 recast
0 reaction

ross pfp
ross
@z0r0z
cheers ~~ in addition to pure receiver flow, here is where I landed. I wanted to make it easy to pay someone USDC straight from ETH too. As well, "pay multiple people" in similar flow. contract: https://etherscan.io/address/0x00000000000066cb57f7066c1ee03752c015d8ac#code
0 reply
0 recast
1 reaction

ross pfp
ross
@z0r0z
max ratio is used; the selected pool is fairly liquid ($147mm). As well, the deployed version allows you to select an exact output in usdc terms. Anything else you are thinking?
1 reply
0 recast
1 reaction

ross pfp
ross
@z0r0z
repo with full test coverage and references for base, optimism and arbitrum: https://github.com/z0r0z/zwap the trick here is modifying code to match the tokens and pool on each chain
1 reply
0 recast
1 reaction

ross pfp
ross
@z0r0z
sending eth directly to buyusdc.eth gets you more usdc and saves about three dollars on gas versus swapping on any of the popular routers on mainnet. This is efficiency at a per-lego level. Zwaps should be simple. zwap contract: https://etherscan.io/address/0x00000000000066cb57f7066c1ee03752c015d8ac#code
4 replies
0 recast
15 reactions