Deposits with timelock
Last updated
Last updated
Yelay allows clients to create pools where user liquidity will be 'locked' for the given period of time.
Two use cases are supported:
Deposit lock where all deposits of pool ID A have different unlock times
Scenarios:
a. User A deposits 2000 USDC on October, 16th. User A can start withdrawing up to 2000 USDC on November, 15th
b. User B deposits 3000 USDC on October, 25th. User B can start withdrawing up to 3000 USDC on November, 24th
c. User A deposits 1000 USDC on November, 1st. If User A didn’t withdraw before, she can start withdrawing up to 3000 (2000+1000) USDC on December, 1st.
Deposit lock where all deposits of pool ID A have fixed unlock time
For example, the pool 'lives' from September 1 to December 1.
This means that if a user adds a deposit to the pool at any time during this period, she can withdraw only after the end of the pool, on December 1.
Code snippets to be provided ().