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

Sell order function #1

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Sell order function #1

merged 2 commits into from
Dec 9, 2024

Conversation

Zitzak
Copy link
Collaborator

@Zitzak Zitzak commented Dec 9, 2024

What has been done?

  • Remove check for collateral balance in _sellOrder
  • Overridden function to store collateral fee in state
  • Removed collateral transfer during sell operation within the function _handleCollateralTokensAfterSell as the payout is handled through the queue

- The function `handleCollateralTokensAfterSell` was still expecting to
transfer collateral, which would revert in the current implementation.
- The _sellOrder` function had a conditional check which would let
the contract revert given there will not be any collateral in the
contract
@Zitzak Zitzak requested a review from vendrell46 December 9, 2024 11:38
@@ -54,28 +54,30 @@ interface IERC20Issuance_Blacklist_v1 is IERC20Issuance_v1 {
error ERC20Issuance_Blacklist_BlacklistedAddress(address account);

/// @notice Thrown when batch operation exceeds the maximum allowed size
error ERC20Issuance_Blacklist_BatchLimitExceeded(uint256 provided, uint256 limit);
error ERC20Issuance_Blacklist_BatchLimitExceeded(uint provided, uint limit);

Choose a reason for hiding this comment

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

What's the reason for using uint instead of uint256?

@vendrell46 vendrell46 merged commit de3bbc0 into dev-1 Dec 9, 2024
0 of 6 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