New Ethereum talks, every Monday. The week's conference uploads by event, in your inbox.

Loading player…

GasSwap: Paying ETH to Smart Contracts without Passing ETH by Sorawit Suriyakarn (Devcon5)

DevconFri, Oct 9, 2020, 12:00 AM

One of the hassles when it comes to developing smart contracts and try to make them interoperable is how to pass ETH around. If one contract in a dependency requires a payment in ETH, every contract in the call-chain between the payer (either the transaction originator or a smart contract) and the receiver must pass along the ETH. This makes developer experience and contract interface design unnecessarily hard. At Band Protocol, we plan to release GasSwap, an on-chain simple library that allows a contract to directly get ETH from transaction sender via Gas. By combining [Uniswap](https://uniswap.io), a decentralized on-chain liquidity pool, and [GasToken](https://gastoken.io), a trustless Gas-ETH token conversion system, a contract can mint Gas token, at the cost of tx originator and use Uniswap to trade for ETH, simplifying the process. With GasSwap there are three benefits: 1. No need to decorate `payable` everywhere. Contracts can just mint ETH with GasSwap. It can also work with other tokens too. 2. User does not necessarily feel like they are paying for anything; it's just a seamless, more expensive gas cost experience. 3. ETH gas price will be more stable as there will be a liquid place to hedge/bet against gas price movement. While it's true that Ethereum community is trying to move away from the current storage model, making GasToken's life harder. We believe GasSwap is a breakthrough in smart contract design that's worth exploring.

Transcript

[Applause] [Music] so you have two contacts and all those requite eat now needs to accept eat and then speak to eat around also needs to know how much you need to pay and that's very messed up so it put even if this contractor and each of the clock track basically from there just like the way you contract and so here comes guess what so you may probably you can come against it it's basically a combination of gas token and you swap ranks if you get either a domain you can you know connect commissioners protocol together to get money for days so yes this like something that made up money future the inner part is not the statement was all for example and that may be talking about useful in the future and that's also me guess what we might look to but with that let's just jump in so you can go to the link get stuck in the title that's the but essentially yes twenty that you can mint by spending some gas you you ok started and when you burn the talking to get some cash prefer to say you drop some gas cost in the future and that's essentially gets pocket and this what that's the name you guys probably dollar it is a magical curve that if you send some each to the contract it returns UTSC 20 token and if ii see 20 token to the curve it returns to e so we cancel in the past you know mean function basically thinks they're not even due to have a special project so to me if you just make us one conservative it's wrong and you just say the best okay so now the center part leading to Casa de each contract had just committed such as s1 and then the eat leading us around not a mystery table and just gas so how's the instability right here that is to ke ready to ferry people native has eaten half and in channel so that's not until you have a deep pocket of gas monkey gets what you become its most stable the best thing is that it's pretty temperature right now to make gas you to make a subject you pay a lot more than you get with refund it's also not to your crew Edison here so that's it thank you [Applause] you

Automatic transcript — names and jargon may be misspelled.