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

feat: add erc20 wrapper #710

Merged
merged 4 commits into from
Nov 12, 2024
Merged

feat: add erc20 wrapper #710

merged 4 commits into from
Nov 12, 2024

Conversation

halaprix
Copy link
Member

Ticket URL

Please provide a link to the ticket:
[TICKET_NUMBER]

Description of Changes

Please list the changes introduced by this PR:

  • Added new ERC20 wrapper interface (IMorphoWrapper.sol) with deposit, withdraw, and underlying asset functions
  • Added MORPHO_LEGACY token configurations across multiple networks:
    • Mainnet
    • Arbitrum
    • Optimism
    • Goerli
    • Sepolia
    • Local/Test environments
  • Updated system configurations to include Wrapper in MorphoBlue protocol contracts
  • Added new approveAndWrap function for streamlined token wrapping
  • Updated ERC20ProxyActions and AaveRewardsProxyActions configurations

How to Test

Please provide instructions on how to test the changes in this PR:

  1. Deploy the wrapper contract to a test network
  2. Test deposit functionality:
    • Approve MORPHO tokens for the wrapper contract
    • Deposit MORPHO tokens into the wrapper
    • Verify wrapped token balance increases
  3. Test withdraw functionality:
    • Approve wrapped tokens
    • Withdraw MORPHO tokens
    • Verify original token balance increases
  4. Test approveAndWrap function:
    • Call approveAndWrap with MORPHO tokens
    • Verify single-transaction wrapping succeeds

PR Definition of Done

Please ensure the following requirements have been met before marking the PR as ready for review:

  • All checks are passing
  • PR is linked to a corresponding ticket
  • PR title is clear and concise
  • Code has been self-reviewed and any fixes or improvements noted (See Code review standards in Notion)
  • Documentation has been updated if necessary

@halaprix halaprix merged commit 4be9981 into dev Nov 12, 2024
2 checks passed
@halaprix halaprix deleted the kk/morpho-wrapper branch November 12, 2024 20:22
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

Successfully merging this pull request may close these issues.

2 participants