@@ -8,22 +8,22 @@ import "./Lockable.sol";
88import "./interfaces/LpTokenFactoryInterface.sol " ;
99import "./external/interfaces/WETH9Interface.sol " ;
1010
11- import "@ uma/core/contracts/common/implementation/Testable.sol " ;
12- import "@ uma/core/contracts/common/implementation/MultiCaller.sol " ;
13- import "@ uma/core/contracts/common/interfaces/AddressWhitelistInterface.sol " ;
11+ import "contracts/external/ uma/core/contracts/common/implementation/Testable.sol " ;
12+ import "contracts/external/ uma/core/contracts/common/implementation/MultiCaller.sol " ;
13+ import "contracts/external/ uma/core/contracts/common/interfaces/AddressWhitelistInterface.sol " ;
1414
15- import "@ uma/core/contracts/data-verification-mechanism/interfaces/FinderInterface.sol " ;
16- import "@ uma/core/contracts/data-verification-mechanism/interfaces/IdentifierWhitelistInterface.sol " ;
17- import "@ uma/core/contracts/data-verification-mechanism/interfaces/StoreInterface.sol " ;
18- import "@ uma/core/contracts/data-verification-mechanism/implementation/Constants.sol " ;
15+ import "contracts/external/ uma/core/contracts/data-verification-mechanism/interfaces/FinderInterface.sol " ;
16+ import "contracts/external/ uma/core/contracts/data-verification-mechanism/interfaces/IdentifierWhitelistInterface.sol " ;
17+ import "contracts/external/ uma/core/contracts/data-verification-mechanism/interfaces/StoreInterface.sol " ;
18+ import "contracts/external/ uma/core/contracts/data-verification-mechanism/implementation/Constants.sol " ;
1919
20- import "@ uma/core/contracts/optimistic-oracle-v2/interfaces/SkinnyOptimisticOracleInterface.sol " ;
21- import "@ uma/core/contracts/common/interfaces/ExpandedIERC20.sol " ;
20+ import "contracts/external/ uma/core/contracts/optimistic-oracle-v2/interfaces/SkinnyOptimisticOracleInterface.sol " ;
21+ import "contracts/external/ uma/core/contracts/common/interfaces/ExpandedIERC20.sol " ;
2222
23- import "@openzeppelin/contracts/access/Ownable.sol " ;
24- import "@openzeppelin/contracts/token/ERC20/IERC20.sol " ;
25- import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol " ;
26- import "@openzeppelin/contracts/utils/Address.sol " ;
23+ import "@openzeppelin/contracts-v4 /access/Ownable.sol " ;
24+ import "@openzeppelin/contracts-v4 /token/ERC20/IERC20.sol " ;
25+ import "@openzeppelin/contracts-v4 /token/ERC20/utils/SafeERC20.sol " ;
26+ import "@openzeppelin/contracts-v4 /utils/Address.sol " ;
2727
2828/**
2929 * @notice Contract deployed on Ethereum that houses L1 token liquidity for all SpokePools. A dataworker can interact
@@ -246,12 +246,10 @@ contract HubPool is HubPoolInterface, Testable, Lockable, MultiCaller, Ownable {
246246 * @param chainId Chain with SpokePool to send message to.
247247 * @param functionData ABI encoded function call to send to SpokePool, but can be any arbitrary data technically.
248248 */
249- function relaySpokePoolAdminFunction (uint256 chainId , bytes memory functionData )
250- public
251- override
252- onlyOwner
253- nonReentrant
254- {
249+ function relaySpokePoolAdminFunction (
250+ uint256 chainId ,
251+ bytes memory functionData
252+ ) public override onlyOwner nonReentrant {
255253 _relaySpokePoolAdminFunction (chainId, functionData);
256254 }
257255
@@ -260,12 +258,10 @@ contract HubPool is HubPoolInterface, Testable, Lockable, MultiCaller, Ownable {
260258 * @param newProtocolFeeCaptureAddress New protocol fee capture address.
261259 * @param newProtocolFeeCapturePct New protocol fee capture %.
262260 */
263- function setProtocolFeeCapture (address newProtocolFeeCaptureAddress , uint256 newProtocolFeeCapturePct )
264- public
265- override
266- onlyOwner
267- nonReentrant
268- {
261+ function setProtocolFeeCapture (
262+ address newProtocolFeeCaptureAddress ,
263+ uint256 newProtocolFeeCapturePct
264+ ) public override onlyOwner nonReentrant {
269265 require (newProtocolFeeCapturePct <= 1e18 , "Bad protocolFeeCapturePct " );
270266 require (newProtocolFeeCaptureAddress != address (0 ), "Bad protocolFeeCaptureAddress " );
271267 protocolFeeCaptureAddress = newProtocolFeeCaptureAddress;
@@ -278,13 +274,10 @@ contract HubPool is HubPoolInterface, Testable, Lockable, MultiCaller, Ownable {
278274 * @param newBondToken New bond currency.
279275 * @param newBondAmount New bond amount.
280276 */
281- function setBond (IERC20 newBondToken , uint256 newBondAmount )
282- public
283- override
284- onlyOwner
285- noActiveRequests
286- nonReentrant
287- {
277+ function setBond (
278+ IERC20 newBondToken ,
279+ uint256 newBondAmount
280+ ) public override onlyOwner noActiveRequests nonReentrant {
288281 // Bond should not equal final fee otherwise every proposal will get cancelled in a dispute.
289282 // In practice we expect that bond amounts are set >> final fees so this shouldn't be an inconvenience.
290283 // The only way for the bond amount to be equal to the final fee is if the newBondAmount == 0.
@@ -527,11 +520,10 @@ contract HubPool is HubPoolInterface, Testable, Lockable, MultiCaller, Ownable {
527520 * @param relayedAmount The higher this amount, the higher the utilization.
528521 * @return % of liquid reserves currently being "used" and sitting in SpokePools plus the relayedAmount.
529522 */
530- function liquidityUtilizationPostRelay (address l1Token , uint256 relayedAmount )
531- public
532- nonReentrant
533- returns (uint256 )
534- {
523+ function liquidityUtilizationPostRelay (
524+ address l1Token ,
525+ uint256 relayedAmount
526+ ) public nonReentrant returns (uint256 ) {
535527 return _liquidityUtilizationPostRelay (l1Token, relayedAmount);
536528 }
537529
@@ -826,12 +818,10 @@ contract HubPool is HubPoolInterface, Testable, Lockable, MultiCaller, Ownable {
826818 * @return destinationToken address The destination token that is sent to spoke pools after this contract bridges
827819 * the l1Token to the destination chain.
828820 */
829- function poolRebalanceRoute (uint256 destinationChainId , address l1Token )
830- external
831- view
832- override
833- returns (address destinationToken )
834- {
821+ function poolRebalanceRoute (
822+ uint256 destinationChainId ,
823+ address l1Token
824+ ) external view override returns (address destinationToken ) {
835825 return poolRebalanceRoutes[_poolRebalanceRouteKey (l1Token, destinationChainId)];
836826 }
837827
@@ -1043,11 +1033,9 @@ contract HubPool is HubPoolInterface, Testable, Lockable, MultiCaller, Ownable {
10431033 return keccak256 (abi.encode (l1Token, destinationChainId));
10441034 }
10451035
1046- function _getInitializedCrossChainContracts (uint256 chainId )
1047- internal
1048- view
1049- returns (address adapter , address spokePool )
1050- {
1036+ function _getInitializedCrossChainContracts (
1037+ uint256 chainId
1038+ ) internal view returns (address adapter , address spokePool ) {
10511039 adapter = crossChainContracts[chainId].adapter;
10521040 spokePool = crossChainContracts[chainId].spokePool;
10531041 require (spokePool != address (0 ), "SpokePool not initialized " );
0 commit comments