An complete and thoroughly tested implementation of the Phantasm Protocol (v1)
Using Foundry because it seems cool
Contracts and their Specs
The role of the Phantasm Manager is primarily in accounting, to keep track of all open positions, their ownership, and their Health.
Allow Phantasm Manager to control debt, and lend money through the Aave protocol.
Facilitate the trading through the Spookyswap protocol so Phantasm Manager can buy more collateral