Skip to content

Tags: yearn/veYFI

Tags

audit-1

Toggle audit-1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
feat: cleaner veyfi (#169)

* fix: better casting of immutable interfaces

* docs: add a note on how to install dev vyper

* fix: add reward pool view, fix natspec

* chore: prepare to move tests to foundry

* test: add setup to deploy veyfi and reward pool

* style: explicity show operator precedence

add partenthesis since multiple people have found the operator precedence rules confusing

* style: change locked to lock

* feat: add user slope changes

* feat: get last user point

* feat: cleaner checkpointing

* feat: burn amount

* refactor: remove nonreentrant

* feat: optimize storage

* feat: delete supply at

chainsecurity-2

Toggle chainsecurity-2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: wrong merge (#168)

chainsecurity-1

Toggle chainsecurity-1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
feat: permissionless veyfi (#160)

* fix: snapshot extra rewards with _beforeTokenTransfer

* fix: event should match 4626

* feat: penalty event

* feat: delete migration

* feat: upgrade vyper

* feat: delete unlocker

* refactor: import erc20 interface

* feat: delete admin

* feat: set reward pool on init

* feat: delete set reward pool, delete ownership

* refactor: constant name, symbol, decimals

* feat: delete create lock for

* feat: delete penalty queue, optimize withdraw

* refactor: change locked balance to uint256

* feat: combine early withdraw into one function

* chore: docs

* style: snake style

* feat: add timestamp to supply event

* feat: update deposit event and deposit for

* feat: non underscored arguments

* feat: delete queue rewards

* feat: bring back curve burner api

* feat: add default return value

* chore: update to vyper 0.3.4

* refactor: use hashmap for snapshots

* feat: add enums

* refactor: change point history to hashmap

* feat: preview withdraw

* feat: change claim many to a dynamically sized array

* refactor: remove is killed

* refactor: remove token argument from burn

* feat: make yfi immutable

* refactor: simplify claim many

* refactor: simplify init

* feat: make yfi and veyfi addrs immutable

* feat: simplify rewards init

* style: less underscores

* feat: delete deposit for, create lock, increase amount, increase unlock time

* feat: allow unlimited lock duration

allows locking for longer than 4 years, essentially allowing for a constant max voting power. you can decrease lock duration for such superlocks to 4 years to start unwinding.

fixes #161

* feat: return new lock for modify lock

* feat: return amounts for claim many, fix api

* feat: allow relock on your behalf

* feat: allowed to relock

* chore: rename contracts

* fix: comment

* docs: add spec

Co-authored-by: panda <87183122+pandadefi@users.noreply.github.com>