Skip to content

Commit

Permalink
Carbon Vortex 2.0 - minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanzhelyazkov committed Apr 17, 2024
1 parent 4be31be commit 626b9da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/vortex/CarbonVortex.sol
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ contract CarbonVortex is ICarbonVortex, Upgradeable, ReentrancyGuardUpgradeable,
.toUint128();
// reset the price to price * priceResetMultiplier and restart trading
Price memory price = tokenPrice(_targetToken);
price.sourceAmount = price.sourceAmount * _priceResetMultiplier;
price.sourceAmount *= _priceResetMultiplier;
_initialPrice[_targetToken] = price;
_tradingStartTimes[_targetToken] = uint32(block.timestamp);
// slow down halflife to `targetTokenPriceDecayHalfLifeOnReset`
Expand Down

0 comments on commit 626b9da

Please sign in to comment.