Skip to content

Commit

Permalink
Checkpoint of improving logic of ratios
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoavf committed Jul 14, 2023
1 parent 9246aa5 commit d5b6412
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/bridges/Gamma/GammaDepositBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ contract GammaDepositBridge is IGammaDeposit {
amountsIn[1]
);

if (startB > amountsIn[0]) {
if (startA > amountsIn[0]) {
return (amountsIn[0], Math.min(amountsIn[1], endB));
}
else if (startA > amountsIn[1]) {
else if (startB > amountsIn[1]) {
return (Math.min(amountsIn[0], endA), amountsIn[1]);
}
else {
Expand Down

0 comments on commit d5b6412

Please sign in to comment.