FloorDAO / floor-v2

Floor aims to create a fully onchain governance mechanism for sweeping and deploying NFTs to profitable NFT-Fi strategies as well as seeding liquidity for its own NFT-Fi products.
https://floor.xyz
2 stars 0 forks source link

Allow treasury DAO to sweep even after 1 epoch #60

Closed tomwade closed 1 year ago

tomwade commented 1 year ago

This fixes an issue raised (here: https://github.com/FloorDAO/floor-v2/issues/51) that meant the {Treasury} DAO caller would need to additionally hold the minimum token threshold to sweep. This was not supposed to be the case, as the DAO should always be able to sweep from the next epoch onwards.

Whilst investigating the aforementioned issue, I noticed that a number of {Treasury} functions were lacking tests, especially in regards to sweeps. I spent some extra time filling in the holes in the tests.