Skip to content
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

Wrapping sUSDbC and sWETH in Farm Using MAX Button Causes Transaction Failure #7

Open
0xforestwalker opened this issue Sep 12, 2023 · 1 comment

Comments

@0xforestwalker
Copy link

Describe the bug
When trying to wrap sUSDbC or sWETH, hitting max then wrap causes trxn failure. It just pops up in Farm front end as failure and does not have anything show-up or pop up on metamask. Wrapping smaller (non Max) numbers, works smoothly, as intentioned.

NOTE: Wrapping numbers that are very close to the max number result in failures, when you start wrapping much smaller numbers (like 3/4ths as large) it allows you to wrap. Sometimes this error even pops up after you've wrapped when you stake with Max button, but after trying a few times it goes away unlike when you're trying when wrapping

Anecdotal, but an old wallet I have does not have this error but a new wallet I tested with today is having this error (D also has error). My old wallet was successfully testing all weekend and still can wrap unwrap with max button, but a new wallet just interacting with protocol today has the issue.

Here is the complete console log:
"StatsContext.tsx:199 Objectcode: -32603data: {code: -32000, message: 'header not found'}message: "Internal JSON-RPC error."[[Prototype]]: Object
(anonymous) @ StatsContext.tsx:199
3price.ts:52 TypeError: Cannot read properties of undefined (reading 'usd')
at price.ts:45:37
at l (runtime.js:63:40)
at Generator._invoke (runtime.js:293:22)
at Generator.next (runtime.js:118:21)
at n (asyncToGenerator.js:3:20)
at u (asyncToGenerator.js:25:9)
(anonymous) @ price.ts:52
7The resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
inpage.js:1 MetaMask - RPC Error: MetaMask Tx Signature: User denied transaction signature. Object
(anonymous) @ inpage.js:1
farms.seamlessprotocol.com/:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
inpage.js:1 MetaMask - RPC Error: Internal JSON-RPC error. Object
(anonymous) @ inpage.js:1
inpage.js:1 MetaMask - RPC Error: Internal JSON-RPC error. Object
(anonymous) @ inpage.js:1
inpage.js:1 MetaMask - RPC Error: Internal JSON-RPC error. Object
(anonymous) @ inpage.js:1
farms.seamlessprotocol.com/:1 Uncaught (in promise) Object
inpage.js:1 MetaMask - RPC Error: Internal JSON-RPC error. Object
(anonymous) @ inpage.js:1
farms.seamlessprotocol.com/:1 Uncaught (in promise) Object
inpage.js:1 MetaMask - RPC Error: Internal JSON-RPC error. Object
(anonymous) @ inpage.js:1
DevTools failed to load source map: Could not load content for chrome-extension://liecbddmkiiihnedobmlmillhodjkdmb/js/companionBubble.js.map: System error: net::ERR_BLOCKED_BY_CLIENT"

To Reproduce
Go to sUSDbC Farm --> choose max on the wrapper tab and attempt to wrap USDbC

Screenshots

Image

Image

Image

video6050616834158235935.mp4

Desktop (please complete the following information if possible):
Wallet: Metamask
Wallet Connect: No
OS: Yes
Browser: Chrome

@0xforestwalker
Copy link
Author

Execution reverted: 35 means HEALTH_FACTOR_LOWER_THAN_LIQUIDATION_THRESHOLD. We can disregard that error log in debugging this issue since it was handled by seamless-protocol/og-points#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants