Lending Pool is a smart contract application on Plutus Platform. The smart contract protocol is based on Aave, but does not strictly follow it.
- Install nix
- Clone https://github.com/input-output-hk/plutus
- Set up your machine to build things with Nix, following the Plutus README (make sure to set up the binary cache!)
We have provided two PAB applications in ./pab and ./pab-simulation. The first one is made for real world usage and interaction through frontend client, the second one is a big test scenario.
With the PAB we can serve and interact with contracts over a web API. You can read more about the PAB here: PAB Architecture.
- Enter the nix shell (from
lending-pooldirectory):
nix-shell
- Build the PAB executables (cd to plutus-use-cases/MetaLamp/lending-pool):
cabal build all
- Run the PAB binary:
cabal run pab
This will then start up the server on port 9080.
- To run test simulation do:
cabal run pab-simulation
See the client readme.
See note.
See the description of user endpoints here