Skip to content

Commit

Permalink
chore: update js deps (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffel authored Jul 2, 2021
1 parent 95a18cc commit 0964695
Show file tree
Hide file tree
Showing 3 changed files with 198 additions and 266 deletions.
9 changes: 4 additions & 5 deletions contracts/BaseWrapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,10 @@ abstract contract BaseWrapper {

if (amount != WITHDRAW_EVERYTHING) {
// Compute amount to withdraw fully to satisfy the request
uint256 estimatedShares =
amount
.sub(withdrawn) // NOTE: Changes every iteration
.mul(10**uint256(vaults[id].decimals()))
.div(vaults[id].pricePerShare()); // NOTE: Every Vault is different
uint256 estimatedShares = amount
.sub(withdrawn) // NOTE: Changes every iteration
.mul(10**uint256(vaults[id].decimals()))
.div(vaults[id].pricePerShare()); // NOTE: Every Vault is different

// Limit amount to withdraw to the maximum made available to this contract
// NOTE: Avoid corner case where `estimatedShares` isn't precise enough
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"husky": "^6.0.0",
"prettier": "^2.3.0",
"prettier-plugin-solidity": "^1.0.0-beta.11",
"pretty-quick": "^3.1.0",
"husky": "^7.0.0",
"prettier": "^2.3.2",
"prettier-plugin-solidity": "^1.0.0-beta.13",
"pretty-quick": "^3.1.1",
"solhint": "^3.3.6",
"solhint-plugin-prettier": "^0.0.5"
},
Expand Down
Loading

0 comments on commit 0964695

Please sign in to comment.