4143
banteg

@banteg #4143

the bunny talisman of @yearn
109141 Follower 92 Following
loop da woop now supports YESv2(real)

https://yes.banteg.xyz
added favorites to my raycast eip extension, also got rid of the split view in favor of accessories. the detail view now also renders metadata like on the original eips site.
made a raycast extension to quickly looks up ethereum proposals (eips/ercs). to install, clone the repo, and type “import extension” into raycast.
https://github.com/banteg/raycast-eips
finally i can understand the youngsters who have memorized every pokemon
https://yearn.banteg.xyz

click "base sepolia", then "coinbase wallet", then "create new wallet", onboard with passkey, mint a token, deposit into a vault.

what? you didn't need to write down a seed phrase or install an app or extension? also you didn't need eth??
/Base
bunny yearn has atomic batching support now
/Base
trying to integrate atomic batching into my dapp. got as far as getting a bundle id. the problem is it’s forever in pending state. how to debug? im trying this on sepolia.
/Base
as you know, bunnies have small computers, so they prefer tiny dapps

try it out https://points.ape.tax

read about the design process in my blog https://banteg.xyz/posts/yearn-permit/
/yearn
how to integrate permit2 into vyper contracts
https://banteg.xyz/posts/vyper-permit2/
good dev ux → great dev ux

a demo of ape integration in dpack-py v0.2

- subscript shorthand for types, attribute shorthand for objects
- cast an address to a type with .at(address)
/EVM
ported dpack to python

dpack is an evm packaging format that allows sharing entire deployments along with all the required contract types and addresses.

then it becomes as easy as:

from dpack.ape import load
uniswap = load('uniswap.json')
uniswap.factory.createPool(…)

https://github.com/banteg/dpack
/EVM
pip-blame v0.2

fully rewrote pip-blame to also check whether the latest version solves the issue. it suggests the appropriate solution (bully the maintainers or upgrade the dependency) and shows a handy summary.

install today with `pip install pip-blame`
why pip-blame

install today with `pip install pip-blame`

find who to blame with `pip-blame package`

maintainer bullying has increased 100x with the release of this tool
/dev
introducing pip blame

this tiny tool finds packages that prevent upgrading a transitive dependency. it also gives you links for repos to bother.

https://github.com/banteg/pip-blame
/dev
this chart felt interesting to replicate, so i did. a couple of times actually. showing the version that i think feels more novel. it uses cryo and polars.

https://gist.github.com/banteg/7c75fa2d4ebc371e5a3969cbcb6ddc24

https://twitter.com/leptokurtic_/status/1777352115230224689
why eth_simulate is insufficient
/EVM
i've been looking into a tool for extracting function selectors. of course you can use a regex, but then you risk catching a stray dispatch table of a child contract.

the best tool i've found is evmole https://github.com/cdump/evmole

it has a comprehensive benchmark suite and implementations in python, rust, js.
/EVM
our dev crebsy has implemented overlay_getLogs in erigon

it adds a state override to getLogs, so you can add new events to contracts and fetch new logs they would've emitted. it works ad hoc and is really fast, around 150k blocks/second.

https://github.com/ledgerwatch/erigon/pull/9438
/EVM
studying react
gentle reminder: if you were waiting for a full season of frieren before watching, now is the perfect time to start. there is only one episode left and it'll be out before you finish binging this perfection of an anime.
it's time to loop

the premium to floor in baseline is just 13%, which means you can loop into YES with an insane leverage of 8.69x.

do it here in one click: https://loopdawoop.xyz

use the same link to unwind in one click when you are done.

built together with @pentacle and @sha237