Kinetex Docs
Comment on page

Deposit collateral

Collateral deposit overview
This sequence of actions is vital for the security and integrity of the Flash Trade system. By requiring a Resolver to deposit collateral, the system ensures there is an additional layer of security protecting Users' funds. If the Resolver fails to process a transaction correctly, the order will still be executed due to the presence of collateral.
  1. 1.
    Before the Resolver can begin processing transactions, the Resolver is required to deposit collateral with the CollateralManager smart contract.
  2. 2.
    Once the CollateralManager receives the Resolver's collateral deposit, it updates its records. The CollateralManager maintains records of the total collateral amount it is holding and the amount of collateral not currently in use (known as the "unlocked" collateral amount). With each new deposit from the Resolver, the CollateralManager updates its records, increasing the total collateral amount by the new deposit's amount.