@@ -18,20 +18,38 @@ error InvalidSignature();
18
18
error InvalidRelayer ();
19
19
20
20
contract AIAgentShare is ERC20 , Ownable , EIP712 , ERC20Permit {
21
+ // Minimum share amount per participant 100 tokens
21
22
uint256 public constant MIN_AMOUNT_MINUS_ONE = 99 * 10 ** 18 ;
23
+
24
+ // Maximum share amount per participant 50000 tokens
22
25
uint256 public constant MAX_AMOUNT_PLUS_ONE = 50001 * 10 ** 18 ;
26
+
27
+ // Total user participants
23
28
uint256 public constant TOTAL_PARTICIPANTS = 260 ;
24
- uint256 public constant BITS_PER_UINT = 256 ; // 256 bits
29
+
30
+ // 256 bits per 1 uint256 state variable
31
+ uint256 public constant BITS_PER_UINT = 256 ;
32
+
33
+ // Relayer fee 5% commission
25
34
uint256 public constant RELAYER_FEE = 5 * 10 ** 18 ;
35
+
36
+ // Set type hash for buy approval
26
37
bytes32 public constant STRUCT_TYPE_HASH = keccak256 ("BuyApproval(uint256 amount, int256 deadline) " );
27
38
28
- uint256 public immutable BUY_PERIOD_ENDS = block .timestamp + 10 days ; // 10 days buying period
39
+ // Set 10 days buys period
40
+ uint256 public immutable BUY_PERIOD_ENDS = block .timestamp + 10 days ;
41
+
42
+ // Store tree root
29
43
bytes32 public immutable root;
30
44
45
+ // Store user relayer
31
46
address public relayer;
32
47
33
- uint256 public shareHoldersPool = 5_000_000 * 10 ** 18 ; // 5 million tokens for share holders
34
- uint256 public price = 0.1 ether ; // 0.1 ether price per 1 token
48
+ // Add 5 million tokens to the pool for my buyers participants
49
+ uint256 public shareHoldersPool = 5_000_000 * 10 ** 18 ;
50
+
51
+ // Set price per 1 token == 0.10 ether
52
+ uint256 public price = 0.1 ether ;
35
53
36
54
/**
37
55
*
0 commit comments