Deposit
The first step to using the protocol
This documentation is a work in progress!
In order to mint any Kresko Asset, users must have value backing it up. This value is gained by depositing any of the whitelisted Collateral Assets available into the protocol.
This process requires the user to give Approval for the protocol to transfer the tokens from the users wallet into the main protocol contract where they reside until the user withdraws them or gets liquidated.
Unlike in minting, burning or withdrawals - anyone can deposit collateral for another account. Note that this is equal to donation if you are not controlling the account receiving the collateral.
Each deposit will emit an event with relevant information
/**
* @notice Emitted when an account deposits collateral.
* @param account The address of the account depositing collateral.
* @param collateralAsset The address of the collateral asset.
* @param amount The amount of the collateral asset that was deposited.
*/
event CollateralDeposited(address indexed account, address indexed collateralAsset, uint256 indexed amount);
In an emergency situation the Safety Council multisig can pause the depositing of a Collateral Asset to prevent possible negative impact it would have.
Last modified 4mo ago