From 8326483a4032fcfd54caa706415eaf104fd5af5d Mon Sep 17 00:00:00 2001 From: Krishna kumar S Date: Tue, 8 Oct 2024 16:41:41 +0530 Subject: [PATCH] Oz mapping build fix (#129) * upgraded oz to v5.0 * fixed math lib path --- packages/contracts/src/vault/FixedYieldVault.sol | 2 +- packages/contracts/src/vault/UpsideVault.sol | 2 +- packages/contracts/src/vault/Vault.sol | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/contracts/src/vault/FixedYieldVault.sol b/packages/contracts/src/vault/FixedYieldVault.sol index d2c7d735c..e4504a713 100644 --- a/packages/contracts/src/vault/FixedYieldVault.sol +++ b/packages/contracts/src/vault/FixedYieldVault.sol @@ -3,7 +3,7 @@ pragma solidity ^0.8.20; import { AccessControl } from "@openzeppelin/contracts/access/AccessControl.sol"; -import { Math } from "openzeppelin-contracts/contracts/utils/math/Math.sol"; +import { Math } from "@openzeppelin/contracts/utils/math/Math.sol"; import { MaturityVault } from "./MaturityVault.sol"; import { WhiteListPlugin } from "../plugin/WhiteListPlugin.sol"; diff --git a/packages/contracts/src/vault/UpsideVault.sol b/packages/contracts/src/vault/UpsideVault.sol index 7e3b35081..b180ff9bd 100644 --- a/packages/contracts/src/vault/UpsideVault.sol +++ b/packages/contracts/src/vault/UpsideVault.sol @@ -2,7 +2,7 @@ pragma solidity ^0.8.20; import { IERC20 } from "@openzeppelin/contracts/interfaces/IERC20.sol"; -import { Math } from "openzeppelin-contracts/contracts/utils/math/Math.sol"; +import { Math } from "@openzeppelin/contracts/utils/math/Math.sol"; import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import { FixedYieldVault } from "./FixedYieldVault.sol"; diff --git a/packages/contracts/src/vault/Vault.sol b/packages/contracts/src/vault/Vault.sol index 2d6321c99..075c088e7 100644 --- a/packages/contracts/src/vault/Vault.sol +++ b/packages/contracts/src/vault/Vault.sol @@ -6,7 +6,7 @@ import { ERC4626 } from "@openzeppelin/contracts/token/ERC20/extensions/ERC4626. import { IERC20 } from "@openzeppelin/contracts/interfaces/IERC20.sol"; import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; -import { Math } from "openzeppelin-contracts/contracts/utils/math/Math.sol"; +import { Math } from "@openzeppelin/contracts/utils/math/Math.sol"; import { Pausable } from "@openzeppelin/contracts/utils/Pausable.sol"; /**