Architecture of Bluejay Protocol
The protocol consists of multiple key components. The roles of the various components are described below:
The module is used to quote the user the price of the bond as well as to allow them to purchase and redeem the bonds. Proceeds from the sale will be transferred to the
Note: The design is similar to OlympusDAO's Bond Depository except that a user may purchase multiple bonds without resetting the vesting period.
The module is used by the DAO to specify the different parameters around the different treasury bonds. These parameters will be used by the
TreasuryBondDepositoryto price its bonds.
The module is used to allow users to stake and lock up their BLU tokens. The staked BLU (sBLU) token is redeemable 1-1 for the BLU token. The module automatically compounds the amount of staked tokens each second. The DAO may adjust the monetary policy by setting a different staking reward here.
The module is used to hold all assets, reserve tokens & liquidity tokens, on behalf of the protocol. In addition, it's the only module that can mint BLU tokens. The module allows the
StablecoinEnginemodule to withdraw assets for staking in the liquidity pools. It also allows the bond depositories and staking contract to mint more BLU tokens. All BLU tokens generated are backed by the value of the assets held in the treasury.
The module is used to create the various stablecoins. When a stablecoin is created, it must be backed by the reserve asset. An equal value of stablecoin and reserve assets will be staked in the
LiquidityPooland immediately made available for anyone to buy or sell. Only the DAO can instruct the module to add or remove liquidity to a certain stablecoin's liquidity pool, depending on the proportion of the treasury to allocate to each pool. Additionally, the engine allows the
Stabilizermodule to perform a swap on the
LiquidityPoolwhen the price of the stablecoin is off-pegged and the
StabilizingBondDepositoryis incapable of bringing it back to peg under extreme conditions.
The module is an automatic mechanism to allow the protocol to bring the different stablecoins' prices to peg with their external oracle prices. It offers either expansionary bonds or contractionary bonds, depending on the direction of price deviation, to bonder at a discount determined by the magnitude of the price deviation. When bonds are purchased, the module either buys the stablecoin to burn it to increase the price of the stablecoin on the pool or mints more stablecoin to swap for reserve assets to decrease the price of stablecoin on the pool.
The module is an interface for getting the price of an asset relative to another. It is connected to external price oracles like Chainlink for stablecoin prices. The oracle is used by the
StabilizingBondDepositoryto determine the discounted price of the stabilizing bonds and the
Stabilizerto determine how much assets the
StablecoinEngineneeds to swap on the
LiquidityPoolto bring the prices to peg as well as the direction for swap.
The module is a Uniswap V2 Pair contract that allows users to swap reserve assets for stablecoins or vice versa. It will be deployed from Uniswap's factory contract and will allow the stablecoins to be available on the Uniswap exchange interface.
The DAO is a Gnosis multi-sig wallet that is operated by several trusted members of the team.
Last modified 1yr ago