|
1 | 1 | import RewardSimulator from "@/components/RewardSimulator";
|
| 2 | +import DualModeImage from "../../../components/DualModeImage"; |
2 | 3 | import Image from "next/image";
|
3 | 4 | import OIS_Rewards_Example_Dark_1 from "../../../images/ois/OIS_Rewards_Example_Dark_1.png";
|
4 | 5 | import OIS_Rewards_Example_Light_1 from "../../../images/ois/OIS_Rewards_Example_Light_1.png";
|
|
36 | 37 | \end{aligned}
|
37 | 38 | $$
|
38 | 39 |
|
39 |
| -<Image |
40 |
| - src={OIS_Rewards_Example_Light_1} |
| 40 | +<DualModeImage |
| 41 | + darkSrc={OIS_Rewards_Example_Dark_1} |
| 42 | + lightSrc={OIS_Rewards_Example_Light_1} |
41 | 43 | alt="Example 1"
|
42 | 44 | sizes="100%"
|
43 | 45 | placeholder="blur"
|
44 |
| - className="dark:hidden" |
45 |
| -/> |
46 |
| -<Image |
47 |
| - src={OIS_Rewards_Example_Dark_1} |
48 |
| - alt="Example 1" |
49 |
| - sizes="100%" |
50 |
| - placeholder="blur" |
51 |
| - className="hidden dark:block" |
52 | 46 | />
|
53 | 47 |
|
54 | 48 | ## Example 2: Publisher and Delegator Stake
|
|
72 | 66 | \end{aligned}
|
73 | 67 | $$
|
74 | 68 |
|
75 |
| -<Image |
76 |
| - src={OIS_Rewards_Example_Light_2} |
77 |
| - alt="Example 2" |
78 |
| - sizes="100%" |
79 |
| - placeholder="blur" |
80 |
| - className="dark:hidden" |
81 |
| -/> |
82 |
| -<Image |
83 |
| - src={OIS_Rewards_Example_Dark_2} |
| 69 | +<DualModeImage |
| 70 | + darkSrc={OIS_Rewards_Example_Dark_2} |
| 71 | + lightSrc={OIS_Rewards_Example_Light_2} |
84 | 72 | alt="Example 2"
|
85 | 73 | sizes="100%"
|
86 | 74 | placeholder="blur"
|
87 |
| - className="hidden dark:block" |
88 | 75 | />
|
89 | 76 |
|
90 | 77 | ## Example 3: Publisher and Delegator Stake more than the Cap
|
|
108 | 95 | \end{aligned}
|
109 | 96 | $$
|
110 | 97 |
|
111 |
| -<Image |
112 |
| - src={OIS_Rewards_Example_Light_3} |
| 98 | +<DualModeImage |
| 99 | + darkSrc={OIS_Rewards_Example_Dark_3} |
| 100 | + lightSrc={OIS_Rewards_Example_Light_3} |
113 | 101 | alt="Example 3"
|
114 | 102 | sizes="100%"
|
115 | 103 | placeholder="blur"
|
116 |
| - className="dark:hidden" |
117 |
| -/> |
118 |
| -<Image |
119 |
| - src={OIS_Rewards_Example_Dark_3} |
120 |
| - alt="Example 3" |
121 |
| - sizes="100%" |
122 |
| - placeholder="blur" |
123 |
| - className="hidden dark:block" |
124 | 104 | />
|
125 | 105 |
|
126 | 106 | ## Example 4: Introducing Delegator Fees
|
|
148 | 128 | \end{aligned}
|
149 | 129 | $$
|
150 | 130 |
|
151 |
| -<Image |
152 |
| - src={OIS_Rewards_Example_Light_4} |
153 |
| - alt="Example 4" |
154 |
| - sizes="100%" |
155 |
| - placeholder="blur" |
156 |
| - className="dark:hidden" |
157 |
| -/> |
158 |
| -<Image |
159 |
| - src={OIS_Rewards_Example_Dark_4} |
| 131 | +<DualModeImage |
| 132 | + darkSrc={OIS_Rewards_Example_Dark_4} |
| 133 | + lightSrc={OIS_Rewards_Example_Light_4} |
160 | 134 | alt="Example 4"
|
161 | 135 | sizes="100%"
|
162 | 136 | placeholder="blur"
|
163 |
| - className="hidden dark:block" |
164 | 137 | />
|
165 | 138 |
|
166 | 139 | In the example, the delegator pays a 2\% fee on their rewards to the publisher. This fee is deducted from the delegator's reward and added to the publisher's reward.
|
|
0 commit comments