# Getting paid

The payer (principal amount), payee (interest amount) and fee receiver (fee amount) will receive their funds on the due date of the payment.&#x20;

The payout function gets called automatically, thanks to [Gelato's Web3 Functions](https://www.gelato.network/blog/web3-functions-serverless-apps).

The protocol charges a 10% fee on the interest amount (subject to change).

### How much will I earn?

The rewards for supplying assets can vary per block, so it's hard to predict how much interest you'll gather exactly. Rewards are compounded each block.

Here's a quick example of interest calculation with a fixed APR, not counting compounding rewards and protocol fees:

| APR (Annual Percentage Rate) | 7%        |
| ---------------------------- | --------- |
| Principal amount             | 1000 USDC |
| Days paid in advance         | 30 days   |

1000\*(30/365)\*7% = **5.7534 USDC**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://paytr.gitbook.io/product-docs/overview/getting-started/getting-paid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
