tac0turtle / Entropy

13 stars 1 forks source link
![entropy image](entropy.svg)

Contents

Overview

Entropy is a protocol that enables the trading of currencies supported by the token swap program on margin. This protocol allows traders to leverage their tokens to amplify their gains or losses, while providing interest to liquidity providers.

In this margin trade, a trader puts collateral into an obligation account and borrows a leveraged amount of the opposite token through a modified token lending program, which is immediately swapped through the token swap/DEX program into the collateral denomination. This enables traders to leverage their positions of any token pair that can be swapped on chain.

The trader can increase the amount of leverage, which increases the amount borrowed and swapped, but means the position can be liquidated if the price drops by a smaller amount. Liquidation can be triggered by any user on the network once the collateral and swapped tokens drops below the amount needed to swap and repay the loan with interest after slippage.

The protocol is built on Solana and includes lending pools, margin accounts, liquidation bots, an insurance fund and finally a governance mechanism. This is all wrapped up in a UI designed for ease of use.