LayerZero-Labs / devtools

LayerZero Developer Utilities
https://docs.layerzero.network/
97 stars 157 forks source link

🗞️ add MintBurnOFTAdapter to oft-evm package #1054

Open St0rmBr3w opened 2 days ago

St0rmBr3w commented 2 days ago

In this PR:

This PR introduces the audited MintBurnOFTAdapter example to the oft-evm package and updates the relevant tests to ensure its proper functionality. The MintBurnOFTAdapter provides a generic solution for integrating tokens that utilize mint and burn mechanisms into the LayerZero Omnichain Fungible Token (OFT) framework.

Key Changes:

Added MintBurnOFTAdapter Contract:

Updated Tests:

Discussion Points:

Discrepancies Between Generic Version and FRAX Implementation:

Developers should have clear guidelines on how to adapt the MintBurnOFTAdapter to their specific token logic.

To-Do: