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

Refactor ConstraintsLib and InputLib plus added new flags #204

Merged
merged 8 commits into from
Feb 9, 2023

Conversation

k06a
Copy link
Member

@k06a k06a commented Feb 7, 2023

·····································|··········|··········|··········|·······
|  fillContractOrderRFQToWithPermit  ·   78422  ·   95522  ·   86972  ·   2  │
·····································|··········|··········|··········|·······
|  fillOrder                         ·   79451  ·  130802  ·  105144  ·  39  │
·····································|··········|··········|··········|·······
|  fillOrderRFQ                      ·   80064  ·  117832  ·   98560  ·   7  │
·····································|··········|··········|··········|·······
|  fillOrderRFQToWithPermit          ·  125855  ·  125979  ·  125917  ·   2  │
·····································|··········|··········|··········|·······
|  fillOrderToWithPermit             ·  131360  ·  131502  ·  131431  ·   2  │
·····································|··········|··········|··········|·······

=>

·····································|··········|··········|··········|·······
|  fillContractOrderRFQToWithPermit  ·   78274  ·   95374  ·   86824  ·   2  │
·····································|··········|··········|··········|·······
|  fillOrder                         ·   79282  ·  130663  ·  105117  ·  39  │
·····································|··········|··········|··········|·······
|  fillOrderRFQ                      ·   79927  ·  117720  ·   97975  ·  10  │
·····································|··········|··········|··········|·······
|  fillOrderRFQToWithPermit          ·  125750  ·  125874  ·  125812  ·   2  │
·····································|··········|··········|··········|·······
|  fillOrderToWithPermit             ·  131333  ·  131427  ·  131380  ·   2  │
·····································|··········|··········|··········|·······

@codecov
Copy link

codecov bot commented Feb 7, 2023

Codecov Report

Base: 0.00% // Head: 0.00% // No change to project coverage 👍

Coverage data is based on head (47fa8d5) compared to base (da9c761).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #204   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files          18      19    +1     
  Lines         420     418    -2     
  Branches      104     104           
======================================
+ Misses        420     418    -2     
Impacted Files Coverage Δ
contracts/OrderLib.sol 0.00% <0.00%> (ø)
contracts/OrderMixin.sol 0.00% <0.00%> (ø)
contracts/OrderRFQLib.sol 0.00% <ø> (ø)
contracts/OrderRFQMixin.sol 0.00% <0.00%> (ø)
contracts/helpers/OrderIdInvalidator.sol 0.00% <ø> (ø)
contracts/helpers/PredicateHelper.sol 0.00% <0.00%> (ø)
contracts/helpers/SeriesNonceManager.sol 0.00% <0.00%> (ø)
contracts/libraries/ConstraintsLib.sol 0.00% <0.00%> (ø)
contracts/libraries/InputLib.sol 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -5,12 +5,32 @@ pragma solidity 0.8.17;
import "@1inch/solidity-utils/contracts/libraries/ECDSA.sol";
import "@1inch/solidity-utils/contracts/libraries/AddressLib.sol";

type TraitsRFQ is uint256;

library TraitsRFQLib {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why "Traits" instead of "Details"?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is kind of restrictions

@k06a k06a force-pushed the feature/rfq-no-partial-fills branch from e29b34a to 97ae79d Compare February 8, 2023 11:48
@k06a k06a force-pushed the feature/rfq-no-partial-fills branch from b9f8c36 to 6b0b779 Compare February 8, 2023 14:18
@k06a k06a force-pushed the feature/rfq-no-partial-fills branch from a280b0b to d896752 Compare February 8, 2023 16:47
// proceed only if taker is willing to execute permit and its length is enough to store address
address token = address(bytes20(permit));
bytes calldata permitCalldata = permit[20:];
IERC20(token).safePermit(permitCalldata); // TODO: inline both arguments
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not TODO now?

Copy link
Member Author

Choose a reason for hiding this comment

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

Can be refactored simultaneously in multiple places

@k06a k06a changed the title Flag to allow partial fills and rate improvement of RFQ orders Refactor ConstraintsLib and InputLib plus added new flags Feb 8, 2023
Copy link
Contributor

@typicalbuster typicalbuster left a comment

Choose a reason for hiding this comment

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

LGTM

@k06a k06a changed the base branch from master to develop February 9, 2023 16:53
@k06a k06a merged commit 3aa8290 into develop Feb 9, 2023
@k06a k06a deleted the feature/rfq-no-partial-fills branch February 10, 2023 00:13
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