# Sun: The Source of Life on the Farm

The Sun is the native timekeeping mechanism fueling Pinto’s autonomous adjustments, giving order and life to the protocol. The protocol requires a way to automatically trigger and pay for protocol adjustments. The Sun handles both of these requirements.&#x20;

### **Timekeeping**

Time in the Pinto protocol is measured in Seasons. Every Season lasts \~1 hour. Pinto uses Base blocks as a proxy for time. Due to the consistent time between Base blocks, the protocol can accurately calculate the time based on the Base block number. Once the Base block number has eclipsed the threshold indicating the passage of the top of the next hour, anyone can call the `gm()` function to trigger the Sunrise that begins the next Season.

The first Season began when Pinto was deployed on November 19, 2024 at 17:00 UTC.

### **Incentivizing The Sunrise**

In order to incentivize the `gm()` function call while minimizing the cost to the protocol for each Sunrise, the protocol offers a reward in the form of newly minted Pinto for successfully triggering the Sunrise. The award starts at 1 Pinto and increases by 1.0201% for each successive block beyond the threshold that elapses without a successful `gm()` call, ensuring that the protocol pays as little as possible without the Sunrise occurring more than a short period of time after the top of each hour.

### **Changes to the Protocol**

Upon each Sunrise, the protocol:

1. Increments the Season counter;
2. Calculates TWA∆P, the sum of the time weighted average shortages or excesses of Pinto across liquidity pools on the [Minting Whitelist](/responding-to-state/minting.md#current-minting-whitelist);
3. Updates the [Maximum Temperature](/pinto-mechanics/field-the-most-innovative-lending-facility-in-crypto.md#fine-tuning-the-field-efficient-borrowing-in-practice);
4. Updates the [Crop Ratio](/responding-to-state/crop-ratio-changes.md);
5. Updates the [Gauge Points](/pinto-mechanics/silo-the-perfect-complement-to-credit/optimizing-liquidity-distribution-via-the-seed-gauge-system.md#lp-distribution-seed-gauge-points);
6. Updates the [Silo](/pinto-mechanics/silo-the-perfect-complement-to-credit.md) to issue Stalk that grows from Seeds;
7. Starts or stops the [Rain](/resources/glossary.md#rain), if applicable;
8. Starts or stops the [Flood](/responding-to-state/flood.md), if applicable;
9. Sets the supply of [available Soil](/pinto-mechanics/field-the-most-innovative-lending-facility-in-crypto/the-field-simply-put.md#soil);
10. Mints Pinto based on TWA∆P to the appropriate [Shipping Routes](/responding-to-state/minting.md#shipping-routes); and
11. Awards Pinto to the address that successfully called the `gm()` function.

The Sun powers the constant dynamism of Pinto, enabling the protocol to autonomously respond to market conditions quickly and cheaply.


---

# 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://docs.pinto.money/pinto-mechanics/sun-the-source-of-life-on-the-farm.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.
