Questions tagged [timelock]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 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 ...
user avatar
-1 votes
1 answer
59 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 ...
user avatar
1 vote
0 answers
296 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: ...
user avatar
  • 125
0 votes
0 answers
56 views

Logic for vesting tokens that will release tokens to each role after every 15 minutes

I need to develop Ethereum Token Vesting contract on ERC20 Token. With total supply of 100M tokens. Investor : 50M Contributor : 25M Founders : 25M Need to write an algorithm for vesting which will ...
user avatar
  • 25
0 votes
0 answers
24 views

The basic algorithm for vesting/timelocking?

In vesting or timing smart contracts, in the simplest cases, how does the process or algorithm of releasing tokens usually work? (1) Does the admin call a function called something like ...
user avatar
  • 13
0 votes
1 answer
71 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... ================...
user avatar
  • 23
1 vote
1 answer
36 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 ...
user avatar
  • 13
0 votes
0 answers
42 views

Governance Voting Power based on staking

I am using openzeppelin Governance contract i want to made some changes in terms of "how to calculate the voting power" I want to calculate voting power like that VP = T * M Where: ● VP is ...
user avatar
4 votes
0 answers
188 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 ...
user avatar
  • 212
0 votes
1 answer
139 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 ...
user avatar
0 votes
1 answer
34 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 ...
user avatar
0 votes
1 answer
174 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/...
user avatar
0 votes
0 answers
19 views

Basic difference among time lock, staking, hodling, liquidity pooling?

Can some one make me to clear with this keywords in short. In the process of learning block chain technology I got stuck and confused among this terminology. I got some basic understanding between ...
user avatar
0 votes
1 answer
141 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?
user avatar
0 votes
0 answers
101 views

dynamically set duration constructor smart contract

I have a timelock smart contract hardcoded with a duration value (1 year in this example). I can of course redeploy infinitely this smart contract if I need another duration by changing the hardcoded ...
user avatar
1 vote
0 answers
42 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 ...
user avatar
  • 11
0 votes
0 answers
11 views

Did not add freezing functionality to token contract. Where is a trustworthy place I can timelock our coins?

I already distributed my tokens and added liquidity on Uniswap. I dont really want to start all over again, so is there a trustworthy dapp I can timelock my tokens into?
user avatar
0 votes
1 answer
137 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 ...
user avatar
1 vote
1 answer
268 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 ...
user avatar
0 votes
1 answer
382 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'; ...
user avatar
0 votes
1 answer
68 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) ...
user avatar
  • 1
0 votes
0 answers
267 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 ...
user avatar
  • 1
0 votes
1 answer
205 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....
user avatar
1 vote
1 answer
494 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 ...
user avatar
3 votes
1 answer
8k 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 ...
user avatar
  • 157
0 votes
1 answer
786 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 ...
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? ...
user avatar
  • 341
1 vote
1 answer
161 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 ...
user avatar
  • 10.3k