Skip to content

Conversation

@fedgiac
Copy link
Contributor

@fedgiac fedgiac commented Nov 27, 2025

It's being discussed to have the DAO stream COW token to third party as part of a DAO proposal.

Using the code in this repository would be a simple solution: by design, it allows to dynamically allocate some COW to users linearly for a specific amount of time.
It was originally designed to claim vCOW into COW before selling, but it can be used as well in the case where there's no vCOW tokens but only COW, as it's the case for the DAO.

Changes

  • Add new deployment script with different parameters.
  • Update hardhat-deploy to the latest version.
  • Extend the existing unit test to work with both deployments. The only expected logic change is that the distributor balance is compared in aggregate (vCOW+COW) rather than each balance independently. This is because the DAO only holds COW and no vCOW, so the relative balance change is different in the two cases.
  • Add Sepolia for testing.

My thanks to wighawag for his help with hardhat-deploy!

Test Plan

New mainnet forked test (based on the already existing test).

Also, try to deploy the modules on Sepolia following the instructions. You can try to execute it partially: first only the first deployment and then the second one, to make sure that the existing contract is detected and reused.

Constants needed for Sepolia
export const COW_TOKEN = "0x0625aFB445C3B6B7B929342a04A22599fd5dBB59";
export const VIRTUAL_COW_TOKEN = "0x21d06A222BBB94Ec1406a0a8Ba86B4D761bc9864";

@socket-security
Copy link

socket-security bot commented Nov 27, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedsolhint-plugin-prettier@​0.0.5981007479100
Addedts-node@​10.7.09710010082100
Addedsolhint@​3.3.79910010084100
Addedsolidity-coverage@​0.8.169810010085100
Addedprettier-plugin-solidity@​1.0.0-beta.1910010010087100
Addedyargs@​17.4.09810010087100
Addedtypescript@​5.9.31001009010090
Updatedhardhat-deploy@​0.11.4 ⏵ 1.0.497100100 +195100
Addedprettier@​2.6.210010010097100

View full report

@fedgiac fedgiac requested a review from a team November 27, 2025 16:03
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