From 8027823dc987c4d7f33d8f3c94d0ec10d8049938 Mon Sep 17 00:00:00 2001 From: letteldream Date: Mon, 14 Aug 2023 09:20:40 -0400 Subject: [PATCH] fix: type error --- contracts/mainnet/connectors/basic-ERC4626/main.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/mainnet/connectors/basic-ERC4626/main.sol b/contracts/mainnet/connectors/basic-ERC4626/main.sol index 6b01ac95..3b128097 100644 --- a/contracts/mainnet/connectors/basic-ERC4626/main.sol +++ b/contracts/mainnet/connectors/basic-ERC4626/main.sol @@ -126,7 +126,7 @@ abstract contract BasicConnector is Events, DSMath, Basic { require( maxTokenPerShares >= sub(_initalUnderlyingBal, _finalUnderlyingBal), - "maxUnderlyingAmt-exceeds" + "maxTokenPerShares-exceeds" ); setUint(setId, _shareAmt); @@ -186,7 +186,7 @@ abstract contract BasicConnector is Events, DSMath, Basic { require( _maxShares >= sub(_finalVaultBal, _initialVaultBal), - "minShares-exceeds" + "maxShares-exceeds" ); setUint(setId, _underlyingAmt); @@ -251,7 +251,7 @@ abstract contract BasicConnector is Events, DSMath, Basic { require( _minUnderlyingAmt <= sub(_finalUnderlyingBal, _initalUnderlyingBal), - "minTokens-exceeds" + "_minUnderlyingAmt-exceeds" ); setUint(setId, _shareAmt);