https://github.com/rubilmax/locketh
https://github.com/rubilmax/locketh
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rubilmax/locketh
- Owner: Rubilmax
- Created: 2023-10-27T16:43:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-27T17:28:08.000Z (over 2 years ago)
- Last Synced: 2025-03-31T09:13:28.598Z (about 1 year ago)
- Language: Solidity
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Locketh
Locket is an autonomous, immutable protocol that enables to lock ETH until a given timestamp has passed.
In exchange for the ETH locked until timestamp X, the depositor receives `lockETH-X` tokens that can be exchanged freely on secondary markets like [Uniswap](https://app.uniswap.org/).
It notably defines a risk-free rate: the holder of `lockETH-X` is guaranteed to be able to redeem their tokens for the same amount of ETH starting from timestamp X,
but they can sell it at a discount on secondary markets for short-term liquidity.
The price will implicitly define an interest rate on ETH between the time it was purchased and X.
For example, a price of 0.95 (0.95 ETH can be exchanged for 1 lockETH-X) will imply a risk-free rate of 5% until X.
Bonus: it also works for any ERC20!