Skip to content

Implement OFT Wrapper for Existing Token (Without Token Upgrade) #5

@blueogin

Description

@blueogin

Motivation

We want to enable cross-chain transfers for our existing token through the LayerZero OFT (Omnichain Fungible Token) standard.
However, instead of upgrading or redeploying the original token contract, we’ll introduce an OFT-compatible wrapper.
This approach allows us to integrate bridge functionality while preserving the existing token’s address, state, and user balances.

Details

  • Implement an OFT wrapper contract that holds the original token and has permission to mint the G$ token.
  • Integrate with LayerZero endpoints for message passing and bridge operations.
  • Support bridge transfer, mint, and burn functions following OFT standards.
  • Ensure compatibility with LayerZero’s latest OFTv2 specification (or should we use OFTv1?).
  • Add unit tests for wrapping, unwrapping, and cross-chain transfers.
  • Provide deployment and configuration scripts for supported chains.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions