Skip to content

Commit 0178cf5

Browse files
committed
fixed cw-vesting piecewise linear docs
1 parent db35081 commit 0178cf5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

contracts/external/cw-vesting/README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,22 @@ that looks like this:
7373
As you can see, it travels through `(0, 0)` in a straight line to `(2,
7474
2)`, then increases its slope and travels to `(4, 8)`.
7575

76-
A curve where 50% vests the first month starting January 1st 2023, and
77-
the remaining 50% vests over the next year. For 100 Juno.
76+
Here is a curve where 50% vests the first 30 days (2,592,000 seconds), and the
77+
remaining 50% vests over the next year (31,536,000 seconds):
7878

7979
```json
8080
{
8181
"piecewise_linear": [
82-
(1672531200, "0"),
83-
(1675209600, "50000000"),
84-
(1706745600, "100000000")
82+
(0, "0"),
83+
(2592000, "50000000"),
84+
(31536000, "100000000")
8585
]
8686
}
8787
```
8888

89+
These are tuples of `(seconds_since_start, tokens_released)`. The first must be
90+
`(0, 0)`.
91+
8992
### Creating native token vesting
9093

9194
If vesting native tokens, you need to include the exact amount in native funds that you are vesting when you instantiate the contract.

0 commit comments

Comments
 (0)