Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (34 loc) · 1.31 KB

timelock.mdx

File metadata and controls

39 lines (34 loc) · 1.31 KB
title description sidebar_custom_props
Timelock
Lockup some token to be claimed by another user under set conditions.
tutorial
level
intermediate
<title> Lockup some token to be claimed by another user under set conditions </title>

The timelock example demonstrates how to write a timelock and implements a greatly simplified claimable balance similar to the claimable balance feature available on Stellar.

[Open in Gitpod][oigp] [oigp]: https://gitpod.io/#https://github.com/stellar/soroban-examples/tree/v20.0.0

The contract accepts deposits of an amount of a token, and allows other users to claim it before or after a time point.