Questions tagged [timelock]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 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
  • 253
0 votes
0 answers
10 views

Censorship of latest state in state channel

Does shifting to Proof-of-Stake prevent censoring of latest channel state in ethereum-based state channels? As far as my understanding, censoring of transaction will persist as the miners can still be ...
Subhra Mazumdar's user avatar
0 votes
1 answer
56 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
48 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 H.'s user avatar
  • 131
1 vote
1 answer
345 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
56 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
27 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
588 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
66 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
77 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,114
1 vote
1 answer
90 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
121 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
543 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
149 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
321 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
  • 292
0 votes
1 answer
268 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
46 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
243 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
332 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
179 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
175 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
343 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
446 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
529 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
216 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
723 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
828 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
  • 351
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
  • 10.9k