Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Halo collector will always revert on sweep #275

Open
stevieraykatz opened this issue Aug 7, 2023 · 0 comments
Open

Halo collector will always revert on sweep #275

stevieraykatz opened this issue Aug 7, 2023 · 0 comments
Labels
Audit Finding from the audit process

Comments

@stevieraykatz
Copy link
Contributor

From auditor:

I know halo wasn't in scope but I saw that, so just pointing it out. The contracts/halo/collector/Collector.sol sweep() function is not done apparently:
uint256 amountOut = 0; // TO DO: Need to properly wire up for swaps
uint256 distributeAmount = (amountOut * state.config.rewardFactor) / 100;
That will remain 0 and always revert

@stevieraykatz stevieraykatz added the Audit Finding from the audit process label Aug 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Audit Finding from the audit process
Projects
None yet
Development

No branches or pull requests

1 participant