OriginProtocol / OriginProtocol/origin-dollar
Out of Gas on Allowance Approval
Nobody has claimed this yet.
- Dominant language
- Solidity
- Stars
- 152
- Forks
- 115
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 17
Description
We recently had a user whose approve call on the OUSD Swap contract ran out of gas with a limit of 52,228 and then succeeded with a limit of 60,760. I would be surprised if the user manually lowered the gas limit by only 14% and then didn't use a round number. What else might have caused this?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the two linked Etherscan transactions for the OUSD Swap contract's approve call, including their gas limits and execution details. Determine what caused the differing gas usage or limits and document an evidence-backed explanation for the failed and successful transactions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- solidity
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100