From 9747183f2ad9db0adc44298abfbebe15dd00b73b Mon Sep 17 00:00:00 2001 From: Matthew Krak Date: Sun, 25 Feb 2024 16:49:47 -0800 Subject: [PATCH 1/2] Added dev notice that this is a LayerZero V1 contract. --- contracts/token/oft/v2/OFTV2.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contracts/token/oft/v2/OFTV2.sol b/contracts/token/oft/v2/OFTV2.sol index b91d210e..f67d4801 100644 --- a/contracts/token/oft/v2/OFTV2.sol +++ b/contracts/token/oft/v2/OFTV2.sol @@ -5,6 +5,9 @@ pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./BaseOFTV2.sol"; +/// @dev Notice: This contract represents OFT V1.2. +/// It was created prior to LayerZero V2 and does not use any of the new protocol contracts. + contract OFTV2 is BaseOFTV2, ERC20 { uint internal immutable ld2sdRate; From 996e3acd1c22d486376dc4c0494fd4cc18ef2055 Mon Sep 17 00:00:00 2001 From: caleb Date: Mon, 26 Feb 2024 09:30:51 -0800 Subject: [PATCH 2/2] Update OFTV2.sol --- contracts/token/oft/v2/OFTV2.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/token/oft/v2/OFTV2.sol b/contracts/token/oft/v2/OFTV2.sol index f67d4801..75a12939 100644 --- a/contracts/token/oft/v2/OFTV2.sol +++ b/contracts/token/oft/v2/OFTV2.sol @@ -6,7 +6,7 @@ import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./BaseOFTV2.sol"; /// @dev Notice: This contract represents OFT V1.2. -/// It was created prior to LayerZero V2 and does not use any of the new protocol contracts. +/// This contract only works on Endpoint.sol (protocol version 1). contract OFTV2 is BaseOFTV2, ERC20 { uint internal immutable ld2sdRate;