Crates.io | permalock |
lib.rs | permalock |
version | 0.2.0 |
source | src |
created_at | 2022-03-05 17:02:51.630743 |
updated_at | 2022-03-11 23:49:48.498468 |
description | Tribeca voting escrows with infinite lockup. |
homepage | https://tribeca.so |
repository | https://github.com/TribecaHQ/permalock |
max_upload_size | |
id | 544127 |
size | 20,583 |
Permalock: Tribeca vote escrows with infinite lockup durations.
The Permalock program allows the creation of permalocks: vote escrows which are always locked to the maximum duration.
It works by allowing any user to refresh the lockup period of the vote escrow to the maximum period, ensuring that the owner of the Permalock can never unstake the tokens. Since the Tribeca DAO holds the program upgrade keys, a DAO can be certain that a permalock will never be unlocked, ever.
Detailed documentation may be found on the Tribeca Documentation site.
First, transfer tokens to the Permalock's pending_tokens
account. The pending_tokens
account holds all tokens that
are ready to be max-locked.
Next, refresh the Permalock with [permalock::refresh_lock
]. This refreshes the Permalock's escrow
to max lock the tokens that have been deposited, plus refreshes the lock period of all existing Escrow tokens.
Program addresses are the same on devnet, testnet, and mainnet-beta.
PLKZAXAYmZSfQv61tL2XALX4c14fcEhJj2CJhU1KcKd
Thank you for your interest in contributing to Tribeca Protocol! All contributions are welcome no matter how big or small. This includes (but is not limited to) filing issues, adding documentation, fixing bugs, creating examples, and implementing features.
When contributing, please make sure your code adheres to some basic coding guidlines:
rustfmt
and prettier
).The Tribeca Permalock program is licensed under the Affero General Public License, version 3.0.