Please don't be too harsh on me.

I have followed the steps I found to create a smart contract, not knowing anything I'm doing - and I have successfully funded it.

Is there a way for me to recover the funds from this contract? here's the code https://pastebin.com/HYrV2tei

I'm the owner.

thanks for any input.

  • Which network is the contract deployed in? And can u show the code the address is not enough if the contract is not verified
    – Majd TL
    Dec 25, 2021 at 19:36
  • it's developed on Avalanche, here's the code pastebin.com/HYrV2tei Dec 25, 2021 at 19:40
  • Sorry for your loss but the link is a scam contract. Using an ipfs link for code without any valid reason.
    – Ismael
    Dec 26, 2021 at 18:27

1 Answer 1


This is a scam contract. All it does is send the funds you sent it to somebody else. After you sent funds to it, they can only be sent to the scammer. Sorry. This is why it is dangerous to execute code you don't understand.

  • but the AVAX I funded to this contract are still there.. I am the only one that has made transactions with it. Do you see the address that would receive the AVAX? I don't. Dec 26, 2021 at 13:20
  • Yes, I see the address. This line address(uint160(router.pangolinSwapAddress())).transfer( will send the balance to the address in router.pangolinSwapAddress(). The router is initiated via the ipfs url in the contract. Go to that ipfs url and you'll see the address in pangolinSwapAddress. Your funds are locked in the contract - the only withdraw method will withdraw it to the scammer's address. Dec 26, 2021 at 14:06
  • How do you decide what is fraud activity and what is not? You can see that the pangolin swap address is not a contract. Also, swaps don't work by just transferring funds to them, usually some function is called. You can also see that the whole code is commented out and the function you'll call will end up doing nothing but send the funds to that address. Dec 26, 2021 at 14:34
  • so you say that AVAX is lost, huh? Dec 26, 2021 at 15:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.