Skip to content

Beraborrowofficial/hackathon-lsp-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiquidStabilityPool Module

LiquidStabilityPool is a contract that offsets the liquidation debt in our CDP module. We believe we can bring higher capital efficiency to the $NECT parked in the contract by having other protocols making use of the available liquidity on the condition that said use would be profitable to LSP ($sNECT) holders.

Develop a module that can plug into the LiquidStabilityPool::offset() function, ensuring that any other protocol can make use of its liquidity without introducing any unintended side effects related to said liquidity.

Qualification Requirements

All submissions must have a description and a GitHub repository with a descriptive README on the following:

  • How your module safely leverages LSP liquidity

  • Why it's beneficial to both protocols and LSP depositors

  • There has to be at least one practical example of a known protocol making a sound use of your developed module that plugs into the LSP.

  • The implementation needs to be technically and economically sound.

  • The code must be open source and modular enough to plug into future protocols.

  • The implementation should be deployable on Berachain Mainnet.

Examples

  • Lending liquidations (Aave, Dolomite)
  • Perpetuals liquidations (GMX, Hyperliquid)

Links & Resources

https://beraborrow.gitbook.io/docs/nect-stablecoin/liquid-stability-pool-lsp

Foundry Documentation

https://book.getfoundry.sh/

Usage

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Deploy

$ forge script script/DeployLsp.s.sol:DeployLsp --rpc-url <your_rpc_url> --private-key <your_private_key>

Cast

$ cast <subcommand>

Help

$ forge --help
$ anvil --help
$ cast --help

About

Quickstart repository for the LiquidStabilityPool module hackathon track.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors