OriginProtocol / OriginProtocol/origin-dollar

Out of Gas on Allowance Approval

Open
#741 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P2
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.