Skip to content

Commit

Permalink
Merge pull request #277 from euler-xyz/whitepaper-update
Browse files Browse the repository at this point in the history
Whitepaper: formatting fix
  • Loading branch information
hoytech authored Sep 25, 2024
2 parents c3c9f15 + d2d11e9 commit 3fcfe02
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/whitepaper.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,11 +564,13 @@ Since the EVK is a *kit*, it attempts to be maximally flexible and doesn't enfor

Perspectives provide a mechanism for validating properties of a vault using on-chain verifiable logic. A perspective is any contract that implements the following interface:

interface IPerspective {
function perspectiveVerify(address vault, bool failEarly) external;
```solidity
interface IPerspective {
function perspectiveVerify(address vault, bool failEarly) external;
function isVerified(address vault) external view returns (bool);
}
function isVerified(address vault) external view returns (bool);
}
```

`perspectiveVerify()` will inspect the configuration of the provided vault and determine whether it meets the desired properties of this particular perspective and, if so, will record this fact in its storage. This recorded fact can be thought of as a cached or memoised value, so the gas-expensive verification only needs to happen once. Afterwards, `isVerified()` can be used to cheaply read this cached result.

Expand Down

0 comments on commit 3fcfe02

Please sign in to comment.