mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
fix:typo error
This commit is contained in:
parent
71891feaac
commit
8e0f883e22
|
@ -49,7 +49,7 @@ abstract contract BasicConnector is Events, DSMath, Basic {
|
||||||
wmul(minSharesPerToken, _underlyingAmt)
|
wmul(minSharesPerToken, _underlyingAmt)
|
||||||
);
|
);
|
||||||
|
|
||||||
uint256 _initalVaultBal = vaultTokenContract.balanceOf(address(this));
|
uint256 _initialVaultBal = vaultTokenContract.balanceOf(address(this));
|
||||||
|
|
||||||
approve(underlyingTokenContract, token, _underlyingAmt);
|
approve(underlyingTokenContract, token, _underlyingAmt);
|
||||||
vaultTokenContract.deposit(_underlyingAmt, address(this));
|
vaultTokenContract.deposit(_underlyingAmt, address(this));
|
||||||
|
@ -57,7 +57,7 @@ abstract contract BasicConnector is Events, DSMath, Basic {
|
||||||
uint256 _finalVaultBal = vaultTokenContract.balanceOf(address(this));
|
uint256 _finalVaultBal = vaultTokenContract.balanceOf(address(this));
|
||||||
|
|
||||||
require(
|
require(
|
||||||
_minShares <= sub(_finalVaultBal, _initalVaultBal),
|
_minShares <= sub(_finalVaultBal, _initialVaultBal),
|
||||||
"minShares-exceeds"
|
"minShares-exceeds"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -178,14 +178,14 @@ abstract contract BasicConnector is Events, DSMath, Basic {
|
||||||
wmul(maxSharesPerToken, _underlyingAmt)
|
wmul(maxSharesPerToken, _underlyingAmt)
|
||||||
);
|
);
|
||||||
|
|
||||||
uint256 _initalVaultBal = vaultTokenContract.balanceOf(to);
|
uint256 _initialVaultBal = vaultTokenContract.balanceOf(to);
|
||||||
|
|
||||||
vaultTokenContract.withdraw(_underlyingAmt, to, address(this));
|
vaultTokenContract.withdraw(_underlyingAmt, to, address(this));
|
||||||
|
|
||||||
uint256 _finalVaultBal = vaultTokenContract.balanceOf(to);
|
uint256 _finalVaultBal = vaultTokenContract.balanceOf(to);
|
||||||
|
|
||||||
require(
|
require(
|
||||||
_maxShares >= sub(_finalVaultBal, _initalVaultBal),
|
_maxShares >= sub(_finalVaultBal, _initialVaultBal),
|
||||||
"minShares-exceeds"
|
"minShares-exceeds"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user