Eigen
About
Eigen is a protocol for users to hedge interest rate risks. It provides mechanism for users to long or short the current defi interest rate with leverage.
Two tokens are issued to represent users' long and short positions.
Users can generate the Long
and Short
tokens by depositing margin into the protocol. By trading Long
and Short
tokens, users can hedge, speculate on the existing defi interest rate.
The Long
and Short
tokens are settled using the following rules:
-
Long
: Will be settled to the interest rate change between the term start date and the end date of the underlying defi borrowing & lending protocols. Concretely the value is:interest earned
*leverage
. The highest settle value is caped at 1. -
Short
: It will settle to1 - Long
.
Testing
anchor build
yarn idl:generate
yarn test:e2e
Addresses
Program addresses are the same on devnet and mainnet-beta:
EigenQdfrZKVTwHefDU9ShzCrHbWM7PnJHXa3HTNUfFj
License
Eigen is licensed under the GNU Affero General Public License v3.0.
In short, this means that any changes to this code must be made open source and available under the AGPL-v3.0 license, even if only used privately.