-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add flash loan support to the GAS native contract #2441
Comments
I love this idea. It is an useful feature for Neo users. |
What are flash loans? |
Send transaction not need gas fee, how to avoid a lot of flash loan transactions blocking network? |
You can't avoid a flash loan, because you can create a flash loan protocol in neo. I like your idea @lock9 but I think that it's a dapp |
Those who will provide load will they get some % interest? |
a good idea would be to create a pool of gas and users can automatically loan/borrow with interest |
I think all of this boils down to sponsored transactions. Loans are nice, but I'd agree with @shargon, it's a dApp, not something requiring changes to GAS or NEO contracts. |
@shargon @roman-khimov but how can I invoke a dapp without GAS?
Can a dApp solve these problems? |
I get your point @lock9, an interesting idea. Do you plan to lend GAS for quick usage and users keep some tokens locked as collateral?
Right now, I don't know how to fix that without NEP-TTT neo-project/proposals#137 or some P2P engine. |
You can create a SmartContract, and this smartcontract can be used as a sender to pay the fee. Or we can approve this patch #2008 :) |
@igormcoelho A flash loan doesn't need collateral. It is a loan that you take and pay within the same transaction (with a fee). Guys, to be very clear, I don't want the smart contract to provide 'financial services'. My main goal is to solve the problems mentioned here:
If this is possible by other means, I would like to know how I can implement it. Again: I don't think these flash loans should be of unlimited value, but rather something that would allow users to 'get GAS if they don't have GAS' by either swapping NEO or just claiming GAS. There may have other use cases, like withdraw some locked GAS. |
Man, I thought you were opening a crypto bank 😂 My opinions, one by one:
|
I don't really want 'flash loans'. Any solution for those problems is ok for me (as long as they are decentralized). |
there is already CEX, or flamingo swap potentially will provide the ability to acquire GAS? |
It looks to me that at least a part of the problem is people buying wrong tokens. Because the case of Of course there are rules that allow you to get dividends from your shares. But yes, these rules at the moment may require you to pay some GAS. But it's not always the case. For example, you've been hodling a 1000 NEO for some time and you have X unclaimed GAS. To get this X amount of GAS you need to move NEO on your account in some way. This can be done with self-transferring transaction (that will cost you something in GAS), but it might as well be done with 1 NEO transfer to your account. So if you just buy 1 NEO that will move to the same account this transfer will trigger GAS distribution as well. Can GAS distribution be improved to happen automatically? Maybe. But it's not trivial. And #2008 unfortunately just has technical issues that we don't yet know how to solve. But we have contract-sponsored transactions. So you don't have to be transaction sender ( And these relations can either be completely settled by contract's |
Summary or problem description
I can't claim GAS without GAS.
I can't perform a swap without GAS.
I can't get GAS if I don't have GAS (unless somebody sends it to me)
Do you have any solution you want to propose?
We could add "flash loans" to GAS and allow it to be used to claim gas and other activities that may result in my account having more GAS than it currently has. I suppose that we would charge a protocol fee to use this feature.
Neo Version
Where in the software does this update applies to?
The text was updated successfully, but these errors were encountered: