Skip to main content

Questions tagged [timelock]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
13 views

Simulating the passing of time in forge test for a timelocked contract?

Context I wrote a contract that aims to raise uint256 investmentTarget funds, within a time period of uint32 private _raisePeriod; after the constructor has been initialised at _startTime = block....
a.t.'s user avatar
  • 79
0 votes
0 answers
17 views

Is there a reason the OZ governor contract can't see it's own function or is it the way I am calling it?

So I am having an issue with a DAO. I'm using https://docs.openzeppelin.com/contracts/4.x/api/governance and https://docs.openzeppelin.com/contracts/4.x/api/governance#TimelockController function ...
SolidTeaDev's user avatar
0 votes
1 answer
23 views

Does Anyone Know How To Implement CHAINLINK AUTOAMTION (Keepers) To be the "Executor" of the "Timelock" contract in a DAO?

I am trying to add a different element to a DAO - and that is to make Chainlink be the automatic "executor" of the "timelock" contract when the minDelay amount of time has passed. ...
Samuel Dominguez's user avatar
0 votes
0 answers
17 views

How to build Timelock Dao with Access Control?

import {TimelockController} from "@openzeppelin/contracts/governance/TimelockController.sol"; contract DaoTimelockController is TimelockController { constructor( address _core, ...
anonauditor's user avatar
0 votes
1 answer
22 views

How to limit canceller role in OpenZeppelin governance?

In openzeppelin governance contracts, a proposal can be cancelled by a wallet that has the canceller role. As the deployer of the DAO, I want to ensure the security of my DAO, hence I want to be able ...
MehmedB's user avatar
  • 241
0 votes
1 answer
86 views

Lock multiple token batches for 30 days

Similar question, in need of something simpler Specs: Each time a user interacts with my contract, I want to deposit 100 USDC into Spirals tokens should be locked for at least 30 days deposited ...
Alvin Sartor's user avatar
2 votes
0 answers
67 views

Temporarily restricting access to your own funds

I want to do my personal banking in cryptocurrency because I want the customizability, convenience and freedom of money being open source software instead of being heavily limited by the huge variety ...
Julius Hamilton's user avatar
1 vote
1 answer
496 views

Timelock and Metamask: We were not able to estimate gas. Write deposit function fails

// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract Timelock { uint public constant duration = 365 days; uint ...
Hakikat41's user avatar
0 votes
0 answers
89 views

The transaction failed during the simulation throwing error execution error in the contract at 0xf48f2b2d2a534e402487b3ee7c18c33aec0fe5e4

We are testing gnosis safe to call a timelock contract function, it's stuck at gnosis safe, safe support says it's contract incompatibility, anyone knows a fix to this problem?
user113936's user avatar
0 votes
0 answers
28 views

I am trying to create a DAO and Unable to execute proposal after successfful queuing of it through timelock contract

here is the error i am getting in the console "underlying transaction reverted".
Hrx tos's user avatar
1 vote
2 answers
880 views

How does `msg.sender == address(this)` work in compound protocol?

I was going through compound's Timelock.sol contract and found this function. function setDelay(uint delay_) public { require( msg.sender == address(this), "...
Shubham Sharma's user avatar
0 votes
2 answers
78 views

Don't understand why this overflows revert

I have a timelock on an ERC20 contract, from year 0 to 9, it works until year 4, but from year 5 onwards it reverts. It fails both on minting and checking (Using 52 seconds intead of weeks for testing)...
Angel Guastaferro's user avatar
0 votes
1 answer
89 views

What's the actual use case for using Timelock (queue) for governance?

If there was no timelock to begin with, this step (execute) can be ran immediately after the proposal succeeds. To me above makes more sense than adding a timelock to send another queue transaction ...
bbusdriver's user avatar
  • 1,154
1 vote
1 answer
106 views

Trouble with calling "executeTransaction" function on timelock contract

The transaction was already queued but can't execute now. To use empty string as a value of signature parameter, I used '' as a parameter when call queueTransaction, used "" when call ...
Steve Gerrad's user avatar
-1 votes
1 answer
138 views

smart contract owner choose to reject or accept a transaction?

How keep transaction the user send and owner accept the transaction ? NFT will be mint in the game (ERC 721). And I have to give users permission to mint, but because everyone can mint outside the ...
ArIaNFury's user avatar
2 votes
0 answers
596 views

How to Implement a Time-Locked Crowd sale with Multiple Vesting Schedule and Token Distribution for an ERC20 token PreICO, ICO & PostICO stages

I am working on a ERC20 token crowd sale project. The token distribution and vesting schedule is a little bit complicated. So Here is the scenario: Total Supply: 1,000,000,000 Token Distribution: ...
AllJs's user avatar
  • 135
0 votes
1 answer
199 views

Why am I getting "not implicitly convertible" and "member not found" errors when trying to use TokenTimelock?

I am rewriting some code in order to be able to set 4 timelocks from a fixed date to team members. I always get the error ~/code/ANCToken$ truffle compile Compiling your contracts... ================...
ealco85's user avatar
  • 23
1 vote
1 answer
40 views

How do contracts with timing functions get executed?

Let's say, there's a contract with timelock or vesting. In it there's a condition that check whether or not the right time has come, in order to release some tokens to some people. But said condition ...
Okkun's user avatar
  • 23
5 votes
0 answers
337 views

Deploy Governance how to configure simple timelock from remix

I went to OpenZeppelin's wizard to attempt to set up a simple token with Governance, I'm can see examples of the token but I'm wondering what the standard deployment for a TimelockController is. I ...
johnny 5's user avatar
  • 310
0 votes
1 answer
299 views

Creating a multi use Timelock Contract

I have created a basic Timelock contract. I'm going to have to lock and vest a bunch of different amounts of my ERC20. I was wondering if there was a way that this contract could hold different ...
Slimtradeywestcoast's user avatar
0 votes
1 answer
48 views

Trying to add view balance function to Timelock contract

I'm trying to add a function that would publicly return the total amount of tokens a timelock contract is holding. I'm trying to call balanceOf address(this) from IERC20 but it's not compiling pragma ...
Slimtradeywestcoast's user avatar
0 votes
1 answer
249 views

Correct Constructor arguments for basic timelock contract

just wondering why I can't get this constructor to pass. What am i doing wrong ? // SPDX-License-Identifier: MIT // TeamLockTest pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/...
Slimtradeywestcoast's user avatar
0 votes
1 answer
371 views

what is the purpose of minimum delay in timelock/governance by open zeppelin?

In Open Zeppelin's Governance/Timelock contracts, what is the purpose of minDelay and how is it used?
user82768's user avatar
1 vote
0 answers
207 views

I am unable to publish and verify my contract on etherscan kovan test network. (Year 2021)

I am trying to publish my contract on kovan testnet but in the compiler output section, I am getting the same error again and again. I tried to do everything which was asked there, but couldn't find a ...
Caxva's user avatar
  • 11
0 votes
1 answer
186 views

Is it possible to add withdraw tokens/transfer from vesting contract?

This is the contract:https://github.com/laronlineworld/vestingcontract/blob/main/VestingContract.sol Is it possible to add withdraw/transfer token from vesting contract? And the access is for owner ...
Lloyd Ramos's user avatar
1 vote
1 answer
357 views

My Timelock contract won't set a release time under 100000000000

Newbie here. Really excited to be joining the community. I've been trying to compile a basic timelock contract. I've finally managed to deploy it but I can only set the release time to 100000000000000 ...
Slimtradeywestcoast's user avatar
0 votes
1 answer
451 views

Time locked wallet contract withdraw revert

I have a time locked wallet code which withdraws the fund after some period: // SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; ...
user73476's user avatar
0 votes
1 answer
71 views

How to calculate this function for both Ethereum networks mainnet and ropsten getBlockTimestamp().add(delay)?

I have a question: How to calculate this function for both Ethereum networks mainnet and ropsten getBlockTimestamp().add(delay)? I installed web3.eth and tried web3.eth.getBlockTimestamp().add(delay) ...
Dario's user avatar
  • 1
0 votes
0 answers
585 views

add() function with more parameters on solidity?

I'm trying to help a friend debug a timelocked transaction within a BSC smart contract written in solidity 0.6.12 but this is the first time I read code on this language and platform. We're trying to ...
lupus's user avatar
  • 1
0 votes
1 answer
219 views

Open Zeppelin TokenTimeLock - gas required exceeds allowance (10000000) or always failing transaction

I am creating an ERC20 contract using OpenZeppelin, to lock up my ERC20 tokens for a specific period of time. I am trying to deploy this contract onto the Rinkeby test network through remix.ethereum....
Barney Chambers's user avatar
1 vote
1 answer
770 views

how to get input of time in solidity?

I want to run a session for a product in auction , my product struct contains the time interval we need for being the session of the bidding. While initializing a product, I need to take the input of ...
CryptoScroller's user avatar
4 votes
1 answer
10k views

Time Lock and vesting smart contract

I would like to create a smart contract that will take care of locking and/or vesting funds to several beneficiaries (inputted by the owner of the smart contract). The funds that it will vest and lock ...
Cyzanfar's user avatar
  • 165
0 votes
1 answer
831 views

Help adding timelock vesting to a deployed token

I´m working in a smart contract where the tokens are distributed to 4 addresses. My intention is to set a timelock vesting to 3 addresses, so the tokens of those wallets will be released after 48 ...
Gerardo's user avatar
  • 13
3 votes
1 answer
1k views

Locking certain amount of tokens

I need to implement a timelock in my token. I was thinking about using the openzeppelin TokenTimelock.sol contract, but I am unsure how to implment it. When would this constructor function be called? ...
koukotsu's user avatar
  • 361
1 vote
1 answer
170 views

What is timelock crypto and how can it be used for random number generation?

In this video Vitalik Buterin talks about timelock crypto and that it's his favorite option for provably fair random number generation https://youtu.be/p5qwbOkCZSc?t=4958. Can anyone explain what ...
medvedev1088's user avatar