Maximum fee
The cap is a constant. No update can raise it.
Lock tokens until a date or forever, or throw them in the fire. One open-source contract on Elysium.
Pick a token, an amount and a date. The tokens stay in the contract until that day. After it, only the lock’s owner can withdraw them.
A permanent lock never opens, not even for you. It is the plainest way to prove that liquidity stays where it is.
The admin sets the fee, capped at 1 HYPE in the code, and nothing else. No pause, and no function that touches your tokens.
The cap is a constant. No update can raise it.
Only a lock’s owner can withdraw, and only after its date.
Unit, fuzz and invariant tests. The code is public under the MIT license.
Elysian Pyre calls the token’s own burn function, so its supply really goes down. Without one, the tokens go to the dead address. Every burn is counted.
supply after the burn = supply before − amount burned
The contract is not deployed yet: the app runs as a preview and nothing can be signed.
0.1 HYPE per lock or burn, plus gas. The fee can never go above 1 HYPE: that cap is written into the contract.
No. Only the lock’s owner can withdraw, and only after the unlock date. The admin has no function that moves tokens.
The tokens stay in the contract forever. Nobody, the owner included, can ever withdraw them.
Yes, when the token has a burn function. Otherwise the tokens go to the dead address 0x…dEaD and can never move again.
Standard ERC-20 tokens on Elysium. Tokens that take a fee on transfer are refused for locks, and rebasing tokens are not supported.
Not yet, and it is not deployed yet either. Its code is public with 49 tests; once it is live, anyone can check its bytecode against this source.
uint256 public constant MAX_FEE = 1 ether; function withdraw(uint256 id) external nonReentrant { Lock storage l = _getLock(id); if (msg.sender != l.owner) revert NotLockOwner(); if (l.withdrawn) revert AlreadyWithdrawn(); // a permanent lock never opens if (l.unlockTime == PERMANENT || block.timestamp < l.unlockTime) revert StillLocked(l.unlockTime); ... }Read the code on GitHub