deadalus-labs / deadalus-contracts

0 stars 0 forks source link

Develop Get Controller algorithm #6

Open web3technologies opened 7 months ago

web3technologies commented 7 months ago

In order for a user to control the deposited contract we need an algorithm to calculate the time and verify against the ownership of their controller tokens for a given contract. Every time a user attempts to interact with a contract function the algorithm should run validating and returning the current controller of the contract.

This algorithm should be implemented within the FractionVault Contract

Things to consider:

  1. How can we use the block time or block number to get current day, month, year?
  2. How can this be calculated?
  3. This function should be a public function that can also be utilized on the front end but should also be used as validation on the increment and decrement functions
linear[bot] commented 7 months ago

STK-19 Develop Claim Control algorithm