Skip to content

Make OUSD EIP-7702 compatible and simplify yield delegation process. #2543

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

clement-ux
Copy link
Collaborator

@clement-ux clement-ux commented Jun 24, 2025

Description

Main point

Due to EIP-7702, some EOAs can be reported as smart contracts when using the _account.code.length > 0 check.
This PR aims to fix this and enable EIP-7702 users to use OUSD like other “traditional” EOAs.

Sources:

Secondary Point

After multiple months of experience, managing delegateYield() and undelegateYield() through governance has turned out to be a pain point. This PR aims to reduce that friction by allowing the strategist to call these two functions.
This does not reduce security, as the only potential impact of a rogue strategist would be causing a user to lose yield.

Notion project:

Code Change Checklist

To be completed before internal review begins:

  • The contract code is complete
  • Executable deployment file
  • Fork tests that test after the deployment file runs
  • Unit tests *if needed
  • The owner has done a full checklist review of the code + tests

Internal review:

  • Two approvals by internal reviewers

@clement-ux clement-ux self-assigned this Jun 24, 2025
@clement-ux clement-ux added contracts Works related to contracts OUSD OUSD releated things labels Jun 24, 2025
Copy link

github-actions bot commented Jun 24, 2025

Warnings
⚠️ 👀 This PR needs at least 2 reviewers

Generated by 🚫 dangerJS against 6b8c58c

@clement-ux clement-ux marked this pull request as draft June 24, 2025 10:57
Copy link

codecov bot commented Jun 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.18%. Comparing base (d8af1ee) to head (6b8c58c).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2543   +/-   ##
=======================================
  Coverage   41.18%   41.18%           
=======================================
  Files         106      106           
  Lines        4956     4956           
  Branches     1302     1302           
=======================================
  Hits         2041     2041           
  Misses       2913     2913           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contracts Works related to contracts OUSD OUSD releated things
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant