Introduce "Wrapped IP" Token #1
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces the "Wrapped IP" (WIP) token, which is based on the WETH9 and WETH9.1 implementations. The WIP token includes support for the
permit(ERC-2612) andpermit2functionalities, allowing for gas-efficient approvals.Features
Implementation Details
src/WIP.sol.script/Deploy.s.solto facilitate the deployment of the WIP contract.Usage
depositfunction to convert IP tokens to WIP tokens.withdrawfunction to convert WIP tokens back to IP tokens.permitfunction to approve token transfers via off-chain signatures.permit2function for enhanced approval mechanisms.References
Example
Notes
permitandpermit2functions enhance user experience by reducing the need for on-chain approval transactions.