Superfluid && Factory/Clones
Let’s say you have a SuperApp contract, of which you want to deploy multiple instances but with different arguments - e.g. your contract is a DeFi pool between token pairs like USDC/BTC, USDC/ETH, etc. Instead of manually deploying each contract, you can make use of the Factory/Clones pattern that some gigabrains have come up with!Sounds cool, but what exactly is this Factory/Clones pattern thing?The Factory pattern is a common design pattern that delegates the responsibility of creating inst...
Smart Contracting with Vyper and Ape
Hello, and welcome to another episode of… oh wait, wrong channel. Lets start over then! Tired of contract Solidity is SoVerbose, ICantTakeItAnymore, Etc { … } ? Yeah, me too. That’s why I decided to write EVM smart contracts with “the other” stack! LFG Vyper! What’s Vyper? It’s a Pythonic Smart Contract Language for the EVM. def is_it_nicer_to_write() → bool: return True It’s picking up attention thanks to some big DeFi projects (Hello Curve), and people looking beyond Solidity. This post giv...
The Two Faces of ERC-2612 AKA Permit
May I introduce you to ERC-2612? Permit. Maybe you’ve heard of it?The ProblemTLDR: ERC20 transfers require a spending approval transaction, which is costly (I just paid $5.33 in ETH for one, argh!). This is no bueno, mi famiglia, s'il vous plait.How can we avoid this?Option A) The most common pattern is to ask the user to approve a transaction of unlimited spending amount. This lets the contract just spend away! If you’re feeling uneasy about it, you should, ‘cause many have seen their w...
Degeneer and DeFi Support
Superfluid && Factory/Clones
Let’s say you have a SuperApp contract, of which you want to deploy multiple instances but with different arguments - e.g. your contract is a DeFi pool between token pairs like USDC/BTC, USDC/ETH, etc. Instead of manually deploying each contract, you can make use of the Factory/Clones pattern that some gigabrains have come up with!Sounds cool, but what exactly is this Factory/Clones pattern thing?The Factory pattern is a common design pattern that delegates the responsibility of creating inst...
Smart Contracting with Vyper and Ape
Hello, and welcome to another episode of… oh wait, wrong channel. Lets start over then! Tired of contract Solidity is SoVerbose, ICantTakeItAnymore, Etc { … } ? Yeah, me too. That’s why I decided to write EVM smart contracts with “the other” stack! LFG Vyper! What’s Vyper? It’s a Pythonic Smart Contract Language for the EVM. def is_it_nicer_to_write() → bool: return True It’s picking up attention thanks to some big DeFi projects (Hello Curve), and people looking beyond Solidity. This post giv...
The Two Faces of ERC-2612 AKA Permit
May I introduce you to ERC-2612? Permit. Maybe you’ve heard of it?The ProblemTLDR: ERC20 transfers require a spending approval transaction, which is costly (I just paid $5.33 in ETH for one, argh!). This is no bueno, mi famiglia, s'il vous plait.How can we avoid this?Option A) The most common pattern is to ask the user to approve a transaction of unlimited spending amount. This lets the contract just spend away! If you’re feeling uneasy about it, you should, ‘cause many have seen their w...
Degeneer and DeFi Support

Subscribe to omnifient

Subscribe to omnifient
Share Dialog
Share Dialog
<100 subscribers
<100 subscribers
1, 2, 3
1, 2, 3
No activity yet