Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
Updated some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
bweick committed Sep 27, 2018
1 parent ec1c502 commit 6f3e52f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/core/RebalancingSetToken.sol
Expand Up @@ -393,15 +393,15 @@ contract RebalancingSetToken is
nextUnit.mul(auctionPriceDivisor).sub(currentUnit.mul(priceNumerator))
).div(priceNumerator);

// Set outflow amount to 0 for component i
// Set outflow amount to 0 for component i, since tokens need to be injected in rebalance
outflowUnitArray[i] = 0;
} else {
// Calculate outflow amount
outflowUnitArray[i] = unitsMultiplier.mul(
currentUnit.mul(priceNumerator).sub(nextUnit.mul(auctionPriceDivisor))
).div(priceNumerator);

// Set inflow amount to 0 for component i
// Set inflow amount to 0 for component i, since tokens need to be returned in rebalance
inflowUnitArray[i] = 0;
}
}
Expand Down
1 change: 1 addition & 0 deletions test/core/rebalancingSetToken.spec.ts
Expand Up @@ -850,6 +850,7 @@ contract('RebalancingSetToken', accounts => {

describe("but the new proposed set's natural unit is not a multiple of the current set", async () => {
before(async () => {
// a setToken with natural unit ether(.003) and setToken with natural unit ether(.002) are being used
naturalUnits = [ether(.003), ether(.002), ether(.001)];
});

Expand Down

0 comments on commit 6f3e52f

Please sign in to comment.