> For the complete documentation index, see [llms.txt](https://docs.defisaver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.defisaver.com/triggers/aavev4/aavev4ratiotrigger.md).

# AaveV4RatioTrigger

### Description

Trigger that triggers when the ratio of a user's position in aaveV4 spoke is over or under a certain ratio

### Trigger ID

`0xb611c174`

### SDK Action

```ts
const aaveV4RatioTrigger = new dfs.triggers.AaveV4RatioTrigger(
    user,
    spoke,
    ratio,
    state
);
```

### Subscription Parameters

```solidity
/// @param user Address of the user.
/// @param spoke Address of the aaveV4 spoke.
/// @param ratio Ratio that represents the triggerable point.
/// @param state Represents if we want the current state to be higher or lower than ratio param.
struct SubParams {
    address user;
    address spoke;
    uint256 ratio;
    uint8 state;
}
```

### Calldata Parameters

```solidity
None
```

### IsChangeable

`false`
