Loopring DEX
Loopring Smart Wallet
RICE Red-Packet Luckydraw Rules Announcement
The RICE Party wallet reward event jointly organized by Loopring and DAOSquare has ended successfully. Now the lottery entitlement wallet address list and lottery mechanism are announced as follows.

### Lottery entitlement wallet address list

The following is the address for completing the task and qualifying for the lottery: https://loopring.io/activities/DAOSquare/en/.

### Lottery mechanism

1. 1.
We take the 12491024 block of the Ethereum mainnet as the initial lottery block number;
2. 2.
Sort all the remaining addresses in the lottery in ascending lexicographical order, starting with 0;
3. 3.
The number of the winners this time is the block hash value corresponding to the current lottery block number and the remainder after taking the modulo of the total number of participants in the lottery;
4. 4.
5. 5.
The lottery block number plus one;
6. 6.
Repeat steps 2-5 for a total of 10 times.

### Lottery example

Assuming that 9 people participated in the lucky draw, there are 2 winners, the lottery block number starts from the 12282650 block of the Ethereum mainnet.
(Note! The nine example addresses here are virtual. The Ethereum block here is only used as an example, the block used in the RICE red-packet lottery is 12491024.)
List of addresses for 9 people:
[
"0x5c357c78ff1c24b35c4d9cd07454e998f4bc3fea",
"0xb8ab4a88ef8be82f1668ddb6236d91fa4feef69b",
"0x3a8bb1d333f402f7ca2da08e74c97de1aa2d6f58",
"0xcb8a6c0a54f7e60ae48d90ccb63a61b72ea0a0bd",
"0xb7d04e67e89bd42134cf7f3fb0d6b6e6b31d84b3",
"0xc6961b47b8d594c596aff3583c1ddfb3399b069b",
"0xf50dea0e8fa335a90a0c79ec3cf9e0b0c73ca257"
]
After sorting in ascending lexicographical order, and numbering from 0:
[
(1, '0x3a8bb1d333f402f7ca2da08e74c97de1aa2d6f58')
(2, '0x5c357c78ff1c24b35c4d9cd07454e998f4bc3fea')
(4, '0xb7d04e67e89bd42134cf7f3fb0d6b6e6b31d84b3')
(5, '0xb8ab4a88ef8be82f1668ddb6236d91fa4feef69b')
(6, '0xc6961b47b8d594c596aff3583c1ddfb3399b069b')
(7, '0xcb8a6c0a54f7e60ae48d90ccb63a61b72ea0a0bd')
(8, '0xf50dea0e8fa335a90a0c79ec3cf9e0b0c73ca257')
]
The hash value of Ethereum 12282650 block:
0x34326756290c7a4bf3857927fef8d7d07423fdaa20e74dd0822838fd482e063e.
$\text{0x34326756290c7a4bf3857927fef8d7d07423fdaa20e74dd0822838fd482e063e}\mod9=3$
Therefore, the number of the first winner is 3 and the address is
The second round of the lucky draw list is:
[
(1, '0x3a8bb1d333f402f7ca2da08e74c97de1aa2d6f58')
(2, '0x5c357c78ff1c24b35c4d9cd07454e998f4bc3fea')
(3, '0xb7d04e67e89bd42134cf7f3fb0d6b6e6b31d84b3')
(4, '0xb8ab4a88ef8be82f1668ddb6236d91fa4feef69b')
(5, '0xc6961b47b8d594c596aff3583c1ddfb3399b069b')
(6, '0xcb8a6c0a54f7e60ae48d90ccb63a61b72ea0a0bd')
(7, '0xf50dea0e8fa335a90a0c79ec3cf9e0b0c73ca257')
]
The hash value of Ethereum 12282651
$\text{0xf4adaf307383ac80fce717083567d8296f8586bcb4f5d6368cd79b016a40991c}\mod8=4$