160 Followers
·
Follow

Image for post
Image for post

If you’ve ever looked into how to cheaply deploy contracts at scale, you’ve probably encountered EIP-1167. These minimal proxy contracts perform a DELEGATECALL to a fixed address, and they do it with only 45 bytes (or even less if you’re proxying to a compact address that starts with zero bytes), which makes it much more efficient to deploy, with the tradeoff of some increased overhead to use it thereafter.

The standard is proliferating, and with good reason — it’s a great idea for a set of contracts with duplicate logic to only have that logic to live in one place (as long as nobody takes that logic and accidentally kills it, that is). For example, it’s now part of the OpenZeppelin SDK (they just published a great primer on how EIP-1167 works). Hell, I myself wrote a library a while back for the Erasure protocol called Spawner that spits out EIP-1167 proxies. …


Image for post
Image for post

The emblem and quasi-official mascot of DeFi is the Unicorn, and with good reason — many DeFi adherents insist that participating in the decentralized finance movement in a manner that is both empowering and pleasant is, well, make-believe. As a result, they abandon all hope for the fruitful union of these apparently contradictory and unrealistic ideals, and end up either accepting a sub-par experience or sacrificing on the self-agency and security that makes magical internet money so cool in the first place.

Image for post
Image for post
Most of the time, DeFi falls somewhere along this line.

At Dharma, we hold the preposterous belief that, not only does this mythical beast exist, but that we can capture it and tame it. Admittedly, unicorns are proud creatures, and a delicate dance must be performed in order to get close enough to hitch a ride. But the end result — the Dharma Smart Wallet — achieves that mythical combination that lets its owners, novice and veteran alike, have their interest-bearing cake and eat it too. …


Image for post
Image for post
UNLIMITED…. POWER!!!

tl;dr — You’re not interacting with smart contracts to the fullest of your potential. Using HomeWork, you can craft transactions that use a wallet contract with no permanent code to combine multiple operations into one and, more generally, manage your on-chain activity like a pro. Spoiler alert: it uses metamorphic contracts, of course!

In the beginning, Satoshi said: let there be transactions. By proving knowledge of a secret string of ones and zeroes, and submitting that proof for all to see and record without exposing that secret, the submitter of a transaction, and only that submitter, could impart a particular state change on a distributed ledger. …

About

0age

Lead Protocol Engineer @ Dharma

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store