#balance #height #token #queried #staked #cw20 #contract

cw20-stake

CW20 token that can be staked and staked balance can be queried at any height

8 releases (stable)

2.6.0 Nov 8, 2024
2.5.0 Oct 31, 2024
2.4.2 Jul 22, 2024
2.3.0 Oct 18, 2023
0.2.6 Jul 3, 2023

#2 in #staked

Download history 101/week @ 2024-08-03 445/week @ 2024-08-10 54/week @ 2024-08-17 56/week @ 2024-08-24 70/week @ 2024-08-31 170/week @ 2024-09-07 112/week @ 2024-09-14 140/week @ 2024-09-21 69/week @ 2024-09-28 51/week @ 2024-10-05 280/week @ 2024-10-12 91/week @ 2024-10-19 425/week @ 2024-10-26 296/week @ 2024-11-02 104/week @ 2024-11-09 73/week @ 2024-11-16

906 downloads per month
Used in 10 crates

BSD-3-Clause

240KB
5.5K SLoC

CW20 Stake

cw20-stake on crates.io docs.rs

This is a basic implementation of a cw20 staking contract. Staked tokens can be unbonded with a configurable unbonding period. Staked balances can be queried at any arbitrary height by external contracts.

Dependencies

~10MB
~217K SLoC