Skip to content

Commit

Permalink
Add return value to swap
Browse files Browse the repository at this point in the history
  • Loading branch information
superduck35 committed Nov 26, 2020
1 parent cbac3da commit b264183
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/masset/Masset.sol
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ contract Masset is
surplus = cache.surplus.add(amt.scaledFee);

emit Swapped(msg.sender, args.input, args.output, amt.net, recipient);

return amt.net;
}

/**
Expand Down

0 comments on commit b264183

Please sign in to comment.