Page cover

Regions

Regions are represented by Hexagons. Based on Uber's H3 index, the surface of the earth can be represented by a grid of hexagons at different resolutions, with higher resolutions covering a larger area, and the smallest resolution covering centimeters of the earth.

Res
Hex Area (km2)
Pentagon Area (km2)

0

4,357,449.416078381

2,562,182.162955496

1

609,788.441794133

328,434.586246469

2

86,801.780398997

44,930.898497879

3

12,393.434655088

6,315.472267516

4

1,770.347654491

896.582383141

5

252.903858182

127.785583023

6

36.129062164

18.238749548

7

5.161293360

2.604669397

8

0.737327598

0.372048038

9

0.105332513

0.053147195

10

0.015047502

0.007592318

11

0.002149643

0.001084609

12

0.000307092

0.000154944

13

0.000043870

0.000022135

14

0.000006267

0.000003162

15

0.000000895

0.000000452

DayFi uses a H6 default resolution.

The beauty of Hexagons is indexed data can be quickly joined across disparate datasets and aggregated at different levels of precision. This allows the protocol to aggregate its network depending on the needs of service providers and customers - whether at the hexagon, zip code, utility, state, ISO, or national level.

For privacy, the network explorer will show connected nodes within a Hex, but will not show individual, precise locations on the public explorer.

The RegionalGridStaking.sol contract enables the distribution of a portion of $DAY revenue from energy sales to stakers in specific regions. When rewards are deposited, stakers receive a pro-rata share based on their stake at that time, with rewards automatically reinvested.

Designed for full decentralization at launch, the contract ensures transparent and autonomous reward distribution. It employs a lazy algorithm to efficiently compute each staker’s share of $DAY rewards per block, seamlessly accommodating new stakers and addition of stake in existing positions. Gas costs scale only with the withdrawal period length, optimizing efficiency.

Last updated

Was this helpful?