VaultValueChecker
VaultValueChecker
vault
contract IVault vault
ousd
contract IOUSD ousd
SNAPSHOT_EXPIRES
uint256 SNAPSHOT_EXPIRES
Snapshot
struct Snapshot {
uint256 vaultValue;
uint256 totalSupply;
uint256 time;
}
snapshots
mapping(address => struct VaultValueChecker.Snapshot) snapshots
constructor
constructor(address _vault, address _ousd) public
takeSnapshot
function takeSnapshot() external
checkDelta
function checkDelta(int256 expectedProfit, int256 profitVariance, int256 expectedVaultChange, int256 vaultChangeVariance) external
toInt256
function toInt256(uint256 value) internal pure returns (int256)