Twitter | Search | |
This is the legacy version of twitter.com. We will be shutting it down on 15 December 2020. Please switch to a supported browser or device. You can see a list of supported browsers in our Help Center.
Marc Zeller
Today I Learned (thx ) the concept of solidity fallback functions and that implemented them on their exchanges contracts, if we link that with some magic we obtain ENS address such as buykleros.eth (send any amount of eth and get PNK)
Reply Retweet Like More
Nodar⚡️ Dec 30
We set this up for each Zap. E.g. You can send any amount of ETH to CHAIUnipool.DeFiZap.eth and become liquidity provider on Uniswap.
Reply Retweet Like
Marc Zeller Dec 30
Simple and efficient. 😅 that's cool! 👏
Reply Retweet Like
Leo Morozovskii Dec 30
Figured that just couple of weeks ago too. Any idea of utilizing ENS to convert ERC20 back to ETH?
Reply Retweet Like
Marc Zeller Dec 30
yes, I have a bit of work today but will write something ASAP, TL;DR custom mini-contract with fallback function that gets ERC20s, check allowance, then call tokenToEthTransferInput()
Reply Retweet Like
stani.eth 👻 v2 is live 👻 Dec 30
these ENS domains are becoming quite useful in the DeFi space. Above is especially helpful for newcomers.
Reply Retweet Like
Marc Zeller Dec 30
I'm building a buyLEND.eth linked to 😅 a bit harder need to deploy a proxy contract.
Reply Retweet Like
Hayden Adams 🦄 Dec 30
Biggest issue at the moment is you can't set a limit on front running from slippage so its only good for smaller amounts. Once we have price feeds based on historical data in v2 you could have the transaction fail if it moves more than 2% from the 1 hour average, for example!
Reply Retweet Like
Hayden Adams 🦄 Dec 30
> you can't set a limit on front running from slippage Because there's no input parameters to fallback functions, if that was unclear
Reply Retweet Like
Martin(a) Krung Dec 30
This would be great to see working. Just send eth end autoexchange.
Reply Retweet Like
ChoiceThoery Dec 30
So easy a naive AI can figure it out
Reply Retweet Like