DMDcoin / diamond-contracts-dao

Solidity contracts for the dmd diamond dao
GNU General Public License v3.0
1 stars 4 forks source link

phaseSwitch() and automatisation. #18

Closed SurfingNerd closed 1 month ago

SurfingNerd commented 2 months ago

currently the dao contracts require someone that executes phaseSwitch() and finalize() at the correct point in time. we need an automated solution for that.

SurfingNerd commented 2 months ago

new function on DAO Contracts: onBlockEnd(): does all the checks and executes switchPhase() if time has come.

Core Contracts will call this new Dao Contracts: onBlockEnd().

SurfingNerd commented 1 month ago

Dao Contracts are now referenced via Interface from the Core Contracts. No need to do anything here in the DAO contracts