Description
If a call reverts in the first if statement, the following else is not required.
Recommendation
Replace
if (balance < amount) {
revert ConnextRouter__xReceive_notReceivedAssetBalance();
} else {
_tempTokenToCheck = Snapshot(asset, balance - amount);
}with
if (balance < amount) {
revert ConnextRouter__xReceive_notReceivedAssetBalance();
}
_tempTokenToCheck = Snapshot(asset, balance - amount);Status
Addressed here: Fujicracy/fuji-v2#625 and Fujicracy/fuji-v2#622