Skip to content

Commit

Permalink
chore: ignore slither warning
Browse files Browse the repository at this point in the history
  • Loading branch information
philbow61 committed Nov 25, 2024
1 parent 3d6a1f8 commit be11e7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/goodDollar/BancorExchangeProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ contract BancorExchangeProvider is IExchangeProvider, IBancorExchangeProvider, B
) public virtual onlyBroker returns (uint256 amountOut) {
PoolExchange memory exchange = getPoolExchange(exchangeId);
uint256 scaledAmountIn = amountIn * tokenPrecisionMultipliers[tokenIn];
// slither-disable-next-line uninitialized-local
uint256 exitContribution;

if (tokenIn == exchange.tokenAddress) {
Expand Down Expand Up @@ -241,8 +242,9 @@ contract BancorExchangeProvider is IExchangeProvider, IBancorExchangeProvider, B
PoolExchange memory exchange = getPoolExchange(exchangeId);
uint256 scaledAmountOut = amountOut * tokenPrecisionMultipliers[tokenOut];
uint256 scaledAmountIn = _getScaledAmountIn(exchange, tokenIn, tokenOut, scaledAmountOut);

// slither-disable-next-line uninitialized-local
uint256 exitContribution;

if (tokenIn == exchange.tokenAddress) {
// apply exit contribution
uint256 scaledAmountInWithExitContribution = (scaledAmountIn * MAX_WEIGHT) /
Expand Down

0 comments on commit be11e7a

Please sign in to comment.