Skip to content

Commit

Permalink
fix: Removed redundant require (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyRy79261 authored Nov 22, 2024
1 parent f321915 commit d51019c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion contracts/goodDollar/BancorExchangeProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ contract BancorExchangeProvider is IExchangeProvider, IBancorExchangeProvider, B
/// @inheritdoc IBancorExchangeProvider
function currentPrice(bytes32 exchangeId) public view returns (uint256 price) {
// calculates: reserveBalance / (tokenSupply * reserveRatio)
require(exchanges[exchangeId].reserveAsset != address(0), "Exchange does not exist");
PoolExchange memory exchange = getPoolExchange(exchangeId);
uint256 scaledReserveRatio = uint256(exchange.reserveRatio) * 1e10;
UD60x18 denominator = wrap(exchange.tokenSupply).mul(wrap(scaledReserveRatio));
Expand Down

0 comments on commit d51019c

Please sign in to comment.