CelsiusX
Search…
Interfacing With Enzyme Vaults
In order to interact with Enzyme Vaults, a Chainlink external adaptor is utilized. Specifically, when querying for the total quantity of tokens in the reserve vaults, Collateral Manager calls
1
uint256 answer = IVaultCalculator(v.calculator).calculate(v.vault);
Copied!
This interface utilizes the following calculate function
1
function calculate(address vaultProxy) public override returns (uint256)
Copied!
vaultProxy: the address of the Enzyme vault
The overall process for interacting between an Enzyme Vault, a Chainlink oracle, and the wrapped asset can be illustrated as
Copy link