sf-parking / sf-smart-contracts

6 stars 1 forks source link

Error on Lend-orders #1

Open ralle121212 opened 1 year ago

ralle121212 commented 1 year ago

Hello, I participate in the testnet, I have encountered an error making at lest me unable to do the quest on Galxe, maybe it effect more people? however its worth investigating so it don't lead to a hack on mainnet. As all my lend orders don't work and I get errors, both with FIL and USDC which I have tried. I also tried to withdraw collateral under portfolio management to check if it was an global error on every transaction, which it was not. That transaction went fine. So the error on lend, may be bounded to the smart-contract maybe?

However the error message received when trying to execute transaction: transaction failed [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (transactionHash="0xecccf7a77c7b352dbfa4d5465913d14ad0093f7519a015b5d15a9e14f38a21e2", transaction={"hash":"0xecccf7a77c7b352dbfa4d5465913d14ad0093f7519a015b5d15a9e14f38a21e2","type":2,"accessList":null,"blockHash":null,"blockNumber":null,"transactionIndex":null,"confirmations":0,"from":"0x74D3a46fE7CcA165B2B5b68C7f19a37f1a040F0f","gasPrice":{"type":"BigNumber","hex":"0x01afe4a1ee"},"maxPriorityFeePerGas":{"type":"BigNumber","hex":"0x59682f00"},"maxFeePerGas":{"type":"BigNumber","hex":"0x01afe4a1ee"},"gasLimit":{"type":"BigNumber","hex":"0x0a4d75"},"to":"0x09963afB7A6fa5592F52472d28BB396833670aE6","value":{"type":"BigNumber","hex":"0x00"},"nonce":64,"data":"0x448255c74546494c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065161380000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c283d4103941000000000000000000000000000000000000000000000000000000000000000000000","r":"0x2645c4e7b80d06315d2576134671afd7e73bc8d871bc0508e8dbee0a2ac5f8f5","s":"0x459342172cf3f3bf1a030b0f383723bb9ef42042dcf584d62bf328c67fb8ffda","v":0,"creates":null,"chainId":0}, receipt={"to":"0x09963afB7A6fa5592F52472d28BB396833670aE6","from":"0x74D3a46fE7CcA165B2B5b68C7f19a37f1a040F0f","contractAddress":null,"transactionIndex":61,"gasUsed":{"type":"BigNumber","hex":"0x0a260b"},"logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","blockHash":"0x0da498642c9764cf2dccc9503f91584f33fbf3b8ac4ae12ad197d56b73f4f224","transactionHash":"0xecccf7a77c7b352dbfa4d5465913d14ad0093f7519a015b5d15a9e14f38a21e2","logs":[],"blockNumber":8971538,"confirmations":1,"cumulativeGasUsed":{"type":"BigNumber","hex":"0x010d7356"},"effectiveGasPrice":{"type":"BigNumber","hex":"0x01372f2bcd"},"status":0,"type":2,"byzantium":true}, code=CALL_EXCEPTION, version=providers/5.7.2)

a print screen of the error: SecuredFinacenLendError

ralle121212 commented 1 year ago

I have not the knowledge to resolve this, or in clear way debuggit to get out the main error causing it. Some help would be awesome!

biga816 commented 1 year ago

@ralle121212 Thank you for raising the issue. As far as I see your tx, the out-of-gas error might occur in the contract called from the proxy contract using a Delegatecall. Could you take a look at your wallet setting?

ralle121212 commented 1 year ago

No problem!, my goal is to work within web3, in a soon future!. So just glad to help!

Absolute, what do you want me to take a look at?

/Rasmus


Från: akihiro tanaka @.> Skickat: den 16 maj 2023 08:00 Till: Secured-Finance/sf-smart-contracts @.> Kopia: Rasmus M. Andersson @.>; Mention @.> Ämne: Re: [Secured-Finance/sf-smart-contracts] Error on Lend-orders (Issue #1)

@ralle121212https://github.com/ralle121212 Thank you for raising the issue. As far as I see your tx, the out-of-gas error might occur in the contract called from the proxy contract using a Delegatecall. Could you take a look at your wallet setting?

— Reply to this email directly, view it on GitHubhttps://github.com/Secured-Finance/sf-smart-contracts/issues/1#issuecomment-1549038256, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUBPZJQSAPDE3XIY22MIQW3XGMJWFANCNFSM6AAAAAAX3ZDNC4. You are receiving this because you were mentioned.Message ID: @.***>

biga816 commented 1 year ago

@ralle121212 I want you to take a look at your wallet, and check if there is a gas limit setting or not. If you are using Metamask, you can check it in the popup modal opened when you execute a tx. MetaMask_Notification