feat: asset-swapper mooniswap (#2675)

* feat: asset-swapper sampler early exit

* feat: asset-swapper mooniswap

* tests and linter

* deploy to mainnet

* CHANGELOGs

* fix excluded sources difference

* typo
This commit is contained in:
Jacob Evans
2020-08-24 11:21:01 +10:00
committed by GitHub
parent af78238507
commit cc31445189
34 changed files with 519 additions and 58 deletions

View File

@@ -69,10 +69,12 @@ contract MultiBridgeSampler {
uint256 buyAmount = 0;
if (didSucceed) {
buyAmount = abi.decode(resultData, (uint256));
} else {
// Exit early if the amount is too high for the liquidity provider to serve
}
// Exit early if the amount is too high for the source to serve
if (buyAmount == 0) {
break;
}
makerTokenAmounts[i] = buyAmount;
}
}