Skip to content

Commit

Permalink
tweaK: fix more imports
Browse files Browse the repository at this point in the history
  • Loading branch information
alcueca committed Aug 13, 2021
1 parent 9e5d4a2 commit 92159d6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions contracts/Strategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ contract Strategy is AccessControl, ERC20Rewards {
);
base = base_;
baseId = baseId_;
baseJoin = ladle_.joins(baseId_);
baseJoin = address(ladle_.joins(baseId_));

ladle = ladle_;
cauldron = ladle_.cauldron();
Expand Down Expand Up @@ -118,7 +118,7 @@ contract Strategy is AccessControl, ERC20Rewards {
poolNotSelected
auth
{
baseJoin = ladle.joins(baseId);
baseJoin = address(ladle.joins(baseId));
emit TokenJoinReset(baseJoin);
}

Expand Down Expand Up @@ -220,7 +220,7 @@ contract Strategy is AccessControl, ERC20Rewards {

// Repay with underlying if there is still any debt
if (debt > 0) {
base.safeTransfer(address(baseJoin), cauldron.debtToBase(seriesId, debt.u128())); // The strategy can't lose money due to the pool invariant, there will always be enough if we get here.
base.safeTransfer(baseJoin, cauldron.debtToBase(seriesId, debt.u128())); // The strategy can't lose money due to the pool invariant, there will always be enough if we get here.
int128 debt_ = debt.i128();
ladle.close(vaultId, address(this), 0, -debt_); // Takes a fyToken amount as art parameter
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yield-protocol/strategy-v2",
"version": "0.0.4",
"version": "0.0.5",
"description": "YieldSpace v2 Liquidity Providing Strategy",
"author": "Yield Inc.",
"files": [
Expand All @@ -26,7 +26,7 @@
"@truffle/hdwallet-provider": "^1.0.40",
"@types/mocha": "^8.0.0",
"@yield-protocol/utils-v2": "^2.2.24",
"@yield-protocol/vault-interfaces": "^2.0.40",
"@yield-protocol/vault-interfaces": "^2.0.41",
"@yield-protocol/yieldspace-interfaces": "^2.0.17",
"chai": "4.2.0",
"chai-bignumber": "3.0.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2299,10 +2299,10 @@
ethereumjs-util "^7.0.8"
ethers "^5.0.7"

"@yield-protocol/vault-interfaces@^2.0.40":
version "2.0.40"
resolved "https://registry.yarnpkg.com/@yield-protocol/vault-interfaces/-/vault-interfaces-2.0.40.tgz#321a78859905080c0184ab3420c16e9e82afa321"
integrity sha512-pTaT3GRoI+Cquh6pONenS0FC+B8aIoBXgxCiYz9LLNQ9UtByzuXkihpWXAgeH3a9BDY4VSjrAiT5gUr1FbowIA==
"@yield-protocol/vault-interfaces@^2.0.41":
version "2.0.41"
resolved "https://registry.yarnpkg.com/@yield-protocol/vault-interfaces/-/vault-interfaces-2.0.41.tgz#4831495e1317ea2cd09c21b49501bfb73d2ca68e"
integrity sha512-KeARm+VJ5aqYiA/GfDvc/LIm7NQtx1hbsV2EZvzjVoMbNyj+tWDQ4uZmM4cCkNz4cXNvz6Bi+l4GgkcVrdA4Aw==

"@yield-protocol/yieldspace-interfaces@^2.0.17":
version "2.0.17"
Expand Down

0 comments on commit 92159d6

Please sign in to comment.