Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: standardize rounding in favour of swapper #246

Merged
merged 2 commits into from
Apr 19, 2024
Merged

Conversation

marktoda
Copy link
Collaborator

@marktoda marktoda commented Apr 5, 2024

This commit changes decay to standardize rounding in favour of swapper

  • rounding output amounts up and input amounts down

@marktoda marktoda force-pushed the standardize-rounding branch from e46572d to c71c423 Compare April 15, 2024 21:27
zhongeric
zhongeric previously approved these changes Apr 15, 2024
import {MockExclusivityLib} from "../util/mock/MockExclusivityLib.sol";
import {ExclusivityLib} from "../../src/lib/ExclusivityLib.sol";
import {OrderInfo, ResolvedOrder, OutputToken} from "../../src/base/ReactorStructs.sol";
import {OrderInfoBuilder} from "../util/OrderInfoBuilder.sol";

contract ExclusivityLibTest is Test {
using FixedPointMathLib for uint256;
using FixedPointMathLib for uint128;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imported but no added test?

zhongeric
zhongeric previously approved these changes Apr 18, 2024
This commit changes decay to standardize rounding in favour of swapper
- rounding output amounts up and input amounts down
@marktoda marktoda merged commit 0e7be6e into main Apr 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants