#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)

new 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

#865 in Magic Beans

Download history 1150/week @ 2024-07-18 216/week @ 2024-07-25 336/week @ 2024-08-01 300/week @ 2024-08-08 202/week @ 2024-08-15 55/week @ 2024-08-22 61/week @ 2024-08-29 117/week @ 2024-09-05 181/week @ 2024-09-12 114/week @ 2024-09-19 80/week @ 2024-09-26 48/week @ 2024-10-03 177/week @ 2024-10-10 199/week @ 2024-10-17 72/week @ 2024-10-24 444/week @ 2024-10-31

900 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