11// SPDX-License-Identifier: MIT
2- pragma solidity ^ 0.8.18 ;
2+ pragma solidity 0.8.25 ;
33pragma experimental ABIEncoderV2;
44
55import "./Bridge.sol " ;
66import "./QuotesV2.sol " ;
77import "./SignatureValidator.sol " ;
88import "@rsksmart/btc-transaction-solidity-helper/contracts/BtcUtils.sol " ;
99import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol " ;
10- import "@openzeppelin/contracts-upgradeable/security /ReentrancyGuardUpgradeable.sol " ;
10+ import "@openzeppelin/contracts-upgradeable/utils /ReentrancyGuardUpgradeable.sol " ;
1111
1212/**
1313 @title Contract that assists with the Flyover protocol
1414 */
1515
16- contract LiquidityBridgeContractV2 is Initializable , OwnableUpgradeable , ReentrancyGuardUpgradeable {
16+ contract LiquidityBridgeContractV2 is OwnableUpgradeable , ReentrancyGuardUpgradeable {
1717 uint16 constant public MAX_CALL_GAS_COST = 35000 ;
1818 uint16 constant public MAX_REFUND_GAS_LIMIT = 2300 ;
1919
@@ -135,6 +135,11 @@ contract LiquidityBridgeContractV2 is Initializable, OwnableUpgradeable, Reentra
135135 _;
136136 }
137137
138+ function initializeV2 () public initializer {
139+ __Ownable_init_unchained (msg .sender );
140+ __ReentrancyGuard_init_unchained ();
141+ }
142+
138143 function setProviderStatus (
139144 uint _providerId ,
140145 bool status
@@ -150,22 +155,10 @@ contract LiquidityBridgeContractV2 is Initializable, OwnableUpgradeable, Reentra
150155 return "1.3.0 " ;
151156 }
152157
153- function getProviderIds () external view returns (uint ) {
154- return providerId;
155- }
156-
157- function getBridgeAddress () external view returns (address ) {
158- return address (bridge);
159- }
160-
161158 function getMinCollateral () public view returns (uint ) {
162159 return minCollateral;
163160 }
164161
165- function getMinPegIn () external view returns (uint ) {
166- return minPegIn;
167- }
168-
169162 function getRewardPercentage () external view returns (uint ) {
170163 return rewardP;
171164 }
@@ -174,14 +167,6 @@ contract LiquidityBridgeContractV2 is Initializable, OwnableUpgradeable, Reentra
174167 return resignDelayInBlocks;
175168 }
176169
177- function getDustThreshold () external view returns (uint ) {
178- return dust;
179- }
180-
181- function isPegOutQuoteCompleted (bytes32 quoteHash ) external view returns (bool ) {
182- return pegoutRegistry[quoteHash].completed;
183- }
184-
185170 /**
186171 @dev Checks whether a liquidity provider can deliver a pegin service
187172 @return Whether the liquidity provider is registered and has enough locked collateral
0 commit comments