What a timelock contract is and what it is used for?

Hey, I noticed Uniswap is also using a Timelock contract. I’m new to this field and wondering if you could please explain what a timelock contract is and what it is used for? Thanks.

1 Like

Sorry, I am not sure, but which repo do you find the Timelock contract? uniswap-v2-core or uniswap-v2-periphery?

Hi @maxaero,

In general a timelock is used to ensure that an action doesn’t occur until after a specified time has past.

See: https://docs.openzeppelin.com/contracts/4.x/api/token/erc20#TokenTimelock
Also: https://docs.openzeppelin.com/contracts/4.x/access-control#delayed_operation

1 Like

I found the smart contract address here at the bottom: https://uniswap.org/blog/uni/

https://etherscan.io/address/0x1a9c8182c09f50c8318d769245bea52c32be35bc,

1 Like