Please I want to understand
How this flashloan smart contract work's
1) can I deploy it to BSC mainnet or all other Blockchain mainnet
2) if I request for the loan
It will be sent directly to the Smart contract
How do I get it out from the smart contract and how would I use it to buy coin on uniswap or other exchange and how will I get my profit send to my own wallet address.
3) please how long can I hold the loan before repayment of it.
Mar 19, 2023, 2:58 PM
You repay the loan in the same block
Not likely unless you frontrun theirs
Mar 19, 2023, 3:07 PM
Tell me more Sensei
Mar 19, 2023, 3:07 PM
1. Flashloans are supported on most major networks. Depends on the flashloan provider you use
2. Yes it will be sent to the contract that requested the loan as long as it meets all the criteria
After receiving the funds you would make the swap or any interaction you need with the borrowed tokens
3. You must pay back the loan plus the fee in the same block
Whatever is left over as profit you keep to yourself
2. Yes it will be sent to the contract that requested the loan as long as it meets all the criteria
After receiving the funds you would make the swap or any interaction you need with the borrowed tokens
3. You must pay back the loan plus the fee in the same block
Whatever is left over as profit you keep to yourself
Mar 19, 2023, 3:08 PM
Your contract borrows that money via flashloan. It can be deployed
Just add the function to withdraw the tokens or send it to other dex, sth else
You should repay for it in the same tx
Just add the function to withdraw the tokens or send it to other dex, sth else
You should repay for it in the same tx
Mar 19, 2023, 3:09 PM
https://support.metamask.io/hc/en-us/articles/5716855323675-Fighting-back-against-sweeper-bots
Mar 19, 2023, 3:10 PM
You’ll need to build a bot that’s basically more optimized than the one the hacker put on your wallet, which most of the time isn’t worth it unless you’ve got some serious bags you need to recover. So if you got a happymeal worth of tokens staked somewhere, consider it lost.
Mar 19, 2023, 3:12 PM
Ooops
Thanks a lot Jay💚
Mar 19, 2023, 3:23 PM
put frontrun bot maybe can help
Mar 19, 2023, 3:31 PM
how much money are you risking?
if over 1k flashbot can help
Mar 19, 2023, 3:55 PM
Please how Much can I borrow from this flashloan loan?
And please what is the name of the token this flashloan Can give me
I don't understand what you mean by sending it to other dex
Boss please explain more to me 🙏
And how can I repay it back in the same transaction
Do you mean sending it to the contract address
And please what is the name of the token this flashloan Can give me
I don't understand what you mean by sending it to other dex
Boss please explain more to me 🙏
And how can I repay it back in the same transaction
Do you mean sending it to the contract address
Mar 19, 2023, 3:57 PM
Hello sir my account has arb airdrop tokens but hacker setup an bot which transfer arb eth instantly anything can be done to recover it
Mar 19, 2023, 3:57 PM
you mean your wallet is gone?
Mar 19, 2023, 3:58 PM
Compromised and gone
Mar 19, 2023, 3:59 PM
Compromised
Sweeper bot
Mar 19, 2023, 3:59 PM
on arbitrum there is no mev
Mar 19, 2023, 4:00 PM
Not possible token get my airdrop ??
Mar 19, 2023, 4:01 PM
share your address
Mar 19, 2023, 4:01 PM
Ok bro
Mar 19, 2023, 4:01 PM
You might want to actually read what a flashloan is because you seem to have no clue.
Mar 19, 2023, 4:02 PM
https://docs.aave.com/developers/guides/flash-loans
Mar 19, 2023, 4:02 PM
Please but how can I make the swap with the token that is on the contract address
Please how is it possible
And how much can I request from this flashloan, I mean the max I can borrow.
I need it to be on polygon mainnet
Please how is it possible
And how much can I request from this flashloan, I mean the max I can borrow.
I need it to be on polygon mainnet
Mar 19, 2023, 4:03 PM
0x07A5414AFEF339668D37eCcb9277C9ADad4295aD
Mar 19, 2023, 4:03 PM
Okay 👍
Mar 19, 2023, 4:03 PM
you have money in it
doesn't seem it is gettign exploited
Mar 19, 2023, 4:04 PM
They might leave funds there deliberately to have him send over gas.
Mar 19, 2023, 4:05 PM
You can read the docs of the project offering flashloans
such as aave or watch some tutorials for beginners on Youtube
Mar 19, 2023, 4:05 PM
See sir
Mar 19, 2023, 4:05 PM
show me where he exploited you
Mar 19, 2023, 4:06 PM
I have tried watching YouTube videos but I am not understanding anything there
The one I understand there is that you need to deposit collateral on aave website before you can borrow some usdc there
The one I understand there is that you need to deposit collateral on aave website before you can borrow some usdc there
Mar 19, 2023, 4:09 PM
don't dm me please it is not needed
Mar 19, 2023, 4:09 PM
Ok sir
https://arbiscan.io/address/0x07a5414afef339668d37eccb9277c9adad4295ad
Mar 19, 2023, 4:10 PM
Please sir some friendly advice just stick to leverage trading on CEXs instead of doing flashloans when you have no clue what it is.
Mar 19, 2023, 4:10 PM
Please do you have someone flash loan code you will give me 🙏
Mar 19, 2023, 4:10 PM
Incoming victim of the famous YouTube flashloan CA skem.
Mar 19, 2023, 4:11 PM
Yes I understand boss but
I want to learn about it
I want to learn about it
Mar 19, 2023, 4:11 PM
There are borrow stuff with collateral and flashloans without collateral
Mar 19, 2023, 4:12 PM
Learn basics first, don’t start to learn at flashloan.
Mar 19, 2023, 4:12 PM
At least I can make some cool cash from it
Mar 19, 2023, 4:12 PM
Trying to take shortcuts thinking you will make a lot of money fast is not a good approach
Mar 19, 2023, 4:12 PM
Spoiler: you will not.
Mar 19, 2023, 4:12 PM
I see
you will lose moneyy ahah
Mar 19, 2023, 4:13 PM
If you have no coding experience, I will now give you a code - how will you audit and know that it does what you think it does? Maybe it will drain your wallet?
Mar 19, 2023, 4:13 PM
Any way sir??
Mar 19, 2023, 4:13 PM
create shitcoin and rugpul, super easy cash 😂
Mar 19, 2023, 4:14 PM
nope
Mar 19, 2023, 4:14 PM
Not as easy anymore either.
Mar 19, 2023, 4:14 PM
i do
Mar 19, 2023, 4:14 PM
*Cries in 2021*
Mar 19, 2023, 4:15 PM
There is a YouTube video
I watch but the guy didn't
Explain how he send the usdc he borrowed to his own wallet for the tx on swap dex
That's where I am confuse
And how to send it back after the transaction
I have some knowledge
It's just only this question is what I need answers to
I watch but the guy didn't
Explain how he send the usdc he borrowed to his own wallet for the tx on swap dex
That's where I am confuse
And how to send it back after the transaction
I have some knowledge
It's just only this question is what I need answers to
And can I use it to buy any coin buid under polygon?
Mar 19, 2023, 4:19 PM
Inside the same function, after receiving the borrowed tokens you can add the logic to perform a swap
Use aave and it will automatically repay by using a callback function
Mar 19, 2023, 4:21 PM
Please can you dm me let me send you the code
So you check it your self
Mar 19, 2023, 4:23 PM
Flash loans need to be paid back inthe same block, so to use it you need to write a contract that borrows, does whatever swapping you want to do, then pays it back all in one call. (like Jay said)
Mar 19, 2023, 4:26 PM
If you borrow the loan and it is in the contract address
How can you send it to you metamas
And use it on uniswap or sushi swap
After buying for example maybe dai with the money you borrow
And go to uniswap sell it to usdc
How can you send it back to where you borrowed it from
How can you send it to you metamas
And use it on uniswap or sushi swap
After buying for example maybe dai with the money you borrow
And go to uniswap sell it to usdc
How can you send it back to where you borrowed it from
And can you use it to buy any coin buid under polygon mainnet
Mar 19, 2023, 4:32 PM
Then study how flash loan works. There are pools with millions in it just waiting for you knowledge to use them
This ain't a download & gain game, you have to work your ass off if you wanna start doing something
https://chain.link/education-hub/flash-loans#:~:text=A%20flash%20loan%20is%20a%20type%20of%20uncollateralized%20loan%20that,within%20the%20same%20blockchain%20transaction.
Have fun
Mar 19, 2023, 5:16 PM
Listen to everyone here man, take their advice
Mar 19, 2023, 5:16 PM
I had someone saying in his bio “blockchain developer” last week ask me how to change the tax on his own token.
Mar 19, 2023, 6:34 PM
Not even up to $100...
But I ran some Airdops on it, and the rewards might be coming in soon
But I ran some Airdops on it, and the rewards might be coming in soon
Mar 19, 2023, 11:20 PM
Any way to surpass these bad actors?
Looks like they'll claim once airdrop goes live
ANd they are just removing the eth sent to the wallet
Which should be used to revoke the contract
Mar 23, 2023, 11:36 AM
who?
context?
Mar 23, 2023, 11:55 AM
Folks
What do you use to exclude files from foundry coverage?
This framework is a piece of tr???sh
Mar 23, 2023, 1:45 PM
Add a mock test function in the contracts you wanna exclude.
function testMock() external {}
function testMock() external {}
Mar 23, 2023, 1:48 PM
Buddy, does it also work for .s.sol?
Mar 23, 2023, 2:06 PM
Yeah it works on every file. Only small issue is it will come up in the test runs
Mar 23, 2023, 2:38 PM
for .s.sol it doesn't
they are not being excluded
Mar 23, 2023, 2:38 PM
Hmm it shouldn't really matter the file extension. Foundry will detect it as a test file if any of the function name starting with "test" is included in the file
Mar 23, 2023, 2:40 PM
Has anybody built a dockerfile for foundry project?
Would be grateful
Mar 23, 2023, 2:41 PM
https://gist.github.com/0xask3/66423cfb78bae37db1e539d7fd3324a0
Or you can try this, will generate lcov file, strip out unnecessary contracts and generates an html report
Or you can try this, will generate lcov file, strip out unnecessary contracts and generates an html report
Mar 23, 2023, 2:42 PM
Has anybody worked with Vyper?
Mar 23, 2023, 2:45 PM
Compiler raise exceptions in python 🤷♂
Mar 23, 2023, 2:45 PM
I need to increase the compiler version, but it conflicts with the current python
Mar 23, 2023, 2:45 PM
Haha exactly
Mar 23, 2023, 2:45 PM
I used docker
it works
I think I hafta create a shitty docker file
Lemme die
)
Mar 23, 2023, 2:46 PM
are you sure you're on https://pancakeswap.finance/ ?
Mar 23, 2023, 4:13 PM
yup, that's weird idk its looks like not a normal wallet, looks like hot wallet maybe ?
Mar 23, 2023, 4:14 PM
seems a normal wallet
1inch use a very cool way to let you pay gas with the token you're using in the swap
https://docs.1inch.io/docs/fusion-swap/introduction
Mar 23, 2023, 4:50 PM
yeah it's pretty cool,
other dex's should adapt
other dex's should adapt
Mar 23, 2023, 4:54 PM
How do you find the time to sit in here?
Mar 23, 2023, 9:10 PM
what you mean? :o
Mar 23, 2023, 9:17 PM
I mean when do you find the time to sit in here?
Mar 23, 2023, 9:23 PM
i got 24 of them each day :3
Mar 23, 2023, 9:23 PM
hes single
Mar 23, 2023, 9:24 PM
The same
Mar 23, 2023, 9:25 PM
luckly yes
Mar 23, 2023, 9:38 PM
2nd page says "whitelist". So it's centralized? Or is it worth to continue reading?
Mar 24, 2023, 8:10 PM
indeed worth
Mar 24, 2023, 8:17 PM
Is the whitelist controlled by a DAO?
Mar 24, 2023, 8:22 PM
Mar 24, 2023, 8:22 PM