> For the complete documentation index, see [llms.txt](https://docs.fairway.global/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fairway.global/developers/build-on-evm/attestation-led-compliance-eas-erc-1271-erc-3643/example-integration.md).

# Example Integration

**Scenario:** dApp requires:

* KYC ≤ 6 months old.
* Must match latest sanctions epoch.
* EU residents only.

```solidity
bytes32 constant POLICY_EU = keccak256("POOL.KYC2.EU");

bytes memory rule = abi.encode(
    POLICY_EU,
    userEASUID[msg.sender],
    bytes32(0),  // expected epoch root (latest)
    180 days     // max KYC age
);

(bool ok, uint32 reason) = policyEngine.isEligible(msg.sender, rule);
require(ok, _reason(reason));

```
