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

Erc4626 extension #465

Draft
wants to merge 93 commits into
base: main
Choose a base branch
from

Conversation

Ifechukwudaniel
Copy link
Contributor

@Ifechukwudaniel Ifechukwudaniel commented Dec 19, 2024

Resolves #356

PR Checklist

  • Tests
  • Documentation
  • Changelog

Copy link

netlify bot commented Dec 19, 2024

Deploy Preview for contracts-stylus canceled.

Name Link
🔨 Latest commit 17e6d42
🔍 Latest deploy log https://app.netlify.com/sites/contracts-stylus/deploys/67828bde4ca78a000870a9d1

@Ifechukwudaniel
Copy link
Contributor Author

I just stared this

@0xNeshi
Copy link
Collaborator

0xNeshi commented Dec 19, 2024

I'll convert this to a draft, so that the team does not invest time reviewing a WIP

@0xNeshi 0xNeshi marked this pull request as draft December 19, 2024 07:38
@0xNeshi 0xNeshi self-requested a review December 19, 2024 09:26
@Ifechukwudaniel
Copy link
Contributor Author

@0xNeshi
The Solidity implementation uses safe transfer

SafeERC20.safeTransferFrom(_asset, caller, address(this), assets);

In the Solidity implementation, SafeERC20 is a utility library. However, in the Stylus implementation, SafeTransfer is a contract. What do you think

@0xNeshi
Copy link
Collaborator

0xNeshi commented Dec 19, 2024

@0xNeshi The Solidity implementation uses safe transfer

SafeERC20.safeTransferFrom(_asset, caller, address(this), assets);

In the Solidity implementation, SafeERC20 is a utility library. However, in the Stylus implementation, SafeTransfer is a contract. What do you think

See how VestingWallet handles this

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

Attention: Patch coverage is 23.78641% with 157 lines in your changes missing coverage. Please review.

Project coverage is 86.2%. Comparing base (6210620) to head (d486031).

Files with missing lines Patch % Lines
contracts/src/token/erc20/extensions/erc4626.rs 23.7% 157 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
contracts/src/token/erc20/extensions/erc4626.rs 23.7% <23.7%> (ø)

@Ifechukwudaniel
Copy link
Contributor Author

Ifechukwudaniel commented Jan 9, 2025

@0xNeshi what do you think about this current approach

@0xNeshi
Copy link
Collaborator

0xNeshi commented Jan 10, 2025

Hi @Ifechukwudaniel, you should follow the originally proposed approach, see #465 (comment)

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.

[Feature]: ERC4626 extension
3 participants