tx · 9L1xfWtqhNYuyrt5YASqJiGpmiTXgBSQdkh5Yiu1gnE8 3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u: -0.01440000 Waves 2020.12.30 15:05 [1331404] smart account 3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u > SELF 0.00000000 Waves
{ "type": 13, "id": "9L1xfWtqhNYuyrt5YASqJiGpmiTXgBSQdkh5Yiu1gnE8", "fee": 1440000, "feeAssetId": null, "timestamp": 1609329912574, "version": 2, "chainId": 84, "sender": "3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u", "senderPublicKey": "FFDorDp8bC9dyUK2w8hYPWPVEcbbk9zYkpHn3gcq9svn", "proofs": [ "3ch3ztKF657ZUsHCJs9ZLjL1ABXdhBKmRhkr2BHAhb9rMTPEg8wK6iqnsCVK1oBa8w9yfF8ht4a1kboSyRgWTR2n" ], "script": "base64:AAIDAAAAAAAAABgIARIAEgASABIAEgMKAQESAwoBARIAEgAAAAAAAAAACAAAAAFpAQAAAAxSZWFkUG9vbERhdGEAAAAABAAAAA5Hb3Zlcm5Ub2tlbktleQIAAAAVR292ZXJuVG9rZW5NYXhEZXBvc2l0BAAAABpNYXhHb3Zlcm5Ub2tlbkRlcG9zaXRlcktleQIAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkEAAAAC1N0YWtlZFRva2VuAQAAACDiQKu0A82IcExE9i8wJd5OEGroqVF/pzF7jJS9VLZqhQQAAAALR292ZXJuVG9rZW4BAAAAIBKJZ/hXRGzhKnClqqGfZt9WOe3WY87qm3tHxlJnqDFeBAAAABJVc2VyU3Rha2VkVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMCAAAAAV8JAAJYAAAAAQUAAAALU3Rha2VkVG9rZW4EAAAAElVzZXJHb3Zlcm5Ub2tlbktleQkAASwAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAA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AZjYWxsZXIFAAAAC1ByaXplQW1vdW50BQAAAAtTdGFrZWRUb2tlbgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAGQFAAAAC0dvdmVyblRva2VuBQAAAANuaWwJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAHFlvdSBzaG91bGQgZGVwb3NpdCBhdCBsZWFzdCAJAAGkAAAAAQUAAAAVTWF4R292ZXJuVG9rZW5EZXBvc2l0AgAAABsgdG8gYmUgYWJsZSB0byBjbGFpbSByZXdhcmQJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAEdZb3UgaGF2ZSB0byBkZXBvc2l0IDEwMCBHb3Zlcm5Ub2tlbiB0byBjbGFpbSBSZXdhcmQgCiBZb3VyIEJhbGFuY2UgaXM6IAkAAaQAAAABBQAAABVVc2VyR292ZXJuVG9rZW5BbW91bnQCAAAAEwogRGVwb3NpdCBkb25lIGF0OiAJAAGkAAAAAQUAAAALUHJpemVIZWlnaHQCAAAACyAgQW5kIHdhaXQ6CQABpAAAAAEJAABkAAAAAgUAAAALUHJpemVIZWlnaHQAAAAAAAAAAAoCAAAADkFuZCBIZWlnaHQgaXM6CQABpAAAAAEFAAAABmhlaWdodAAAAAC6fFuJ", "height": 1331404, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4beRApbmNPARcbmxds3fto63oZj6bteYDvUip5APsYYc Next: Dc4xYkY2dhhdQGeciHBMXx7boNZuRVdXoo5GsozRqoYn Diff:
Old | New | Differences | |
---|---|---|---|
330 | 330 | func ClaimPrize () = { | |
331 | 331 | let StakedToken = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
332 | 332 | let GovernToken = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
333 | - | let UserStakedTokenKey = | |
333 | + | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
334 | 334 | let UserGovernTokenKey = toBase58String(i.caller.bytes) | |
335 | 335 | let GovernTokenAmount = assetBalance(this, GovernToken) | |
336 | 336 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func ReadPoolData () = { | |
8 | 8 | let GovernTokenKey = "GovernTokenMaxDeposit" | |
9 | 9 | let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey" | |
10 | 10 | let StakedToken = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
11 | 11 | let GovernToken = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
12 | 12 | let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken)) | |
13 | 13 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
14 | 14 | let Winner = getStringValue(this, MaxGovernTokenDepositerKey) | |
15 | 15 | let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) { | |
16 | 16 | case a: Int => | |
17 | 17 | a | |
18 | 18 | case _ => | |
19 | 19 | 0 | |
20 | 20 | } | |
21 | 21 | let ReadUserGovernTokenKey = getStringValue(this, UserGovernTokenKey) | |
22 | 22 | let UserGovernTokenBalance = match getInteger(this, UserGovernTokenKey) { | |
23 | 23 | case a: Int => | |
24 | 24 | a | |
25 | 25 | case _ => | |
26 | 26 | 0 | |
27 | 27 | } | |
28 | 28 | let ReadUserStakedTokenKey = getStringValue(this, UserStakedTokenKey) | |
29 | 29 | let UserStakedTokenBalance = match getInteger(this, UserStakedTokenKey) { | |
30 | 30 | case a: Int => | |
31 | 31 | a | |
32 | 32 | case _ => | |
33 | 33 | 0 | |
34 | 34 | } | |
35 | 35 | throw(((((((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)) + " | |
36 | 36 | Staked Token in your Balance is.....: ") + toString(UserStakedTokenBalance)) + " | |
37 | 37 | Govern Token in your Balance is.....: ") + toString(UserGovernTokenBalance))) | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | ||
42 | 42 | @Callable(i) | |
43 | 43 | func ResetAccount () = { | |
44 | 44 | let StakedToken = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
45 | 45 | let GovernToken = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
46 | 46 | let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken)) | |
47 | 47 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
48 | 48 | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
49 | 49 | WriteSet([DataEntry(UserGovernTokenKey, 0), DataEntry(UserStakedTokenKey, 0), DataEntry(UserStakeTransactionsKey, 0), DataEntry("DelayCost", 0), DataEntry("Delay", 0)]) | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | ||
54 | 54 | @Callable(i) | |
55 | 55 | func PushReward () = { | |
56 | 56 | let StakedToken = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
57 | 57 | let GovernToken = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
58 | 58 | let pmt = extract(i.payment) | |
59 | 59 | let currentKey = toBase58String(i.caller.bytes) | |
60 | 60 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
61 | 61 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
62 | 62 | case a: Int => | |
63 | 63 | a | |
64 | 64 | case _ => | |
65 | 65 | 0 | |
66 | 66 | } | |
67 | 67 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
68 | 68 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
69 | 69 | case a: Int => | |
70 | 70 | a | |
71 | 71 | case _ => | |
72 | 72 | 0 | |
73 | 73 | } | |
74 | 74 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
75 | 75 | then (PrizeAmount != 0) | |
76 | 76 | else false) | |
77 | 77 | then WriteSet([DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height)]) | |
78 | 78 | else WriteSet([DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height)]) | |
79 | 79 | if (if ((pmt.amount > 0)) | |
80 | 80 | then (pmt.assetId == GovernToken) | |
81 | 81 | else false) | |
82 | 82 | then { | |
83 | 83 | let GovernTokenKey = "GovernTokenMaxDeposit" | |
84 | 84 | let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey" | |
85 | 85 | let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) { | |
86 | 86 | case a: Int => | |
87 | 87 | a | |
88 | 88 | case _ => | |
89 | 89 | 0 | |
90 | 90 | } | |
91 | 91 | let currentAmount = match getInteger(this, currentKey) { | |
92 | 92 | case a: Int => | |
93 | 93 | a | |
94 | 94 | case _ => | |
95 | 95 | 0 | |
96 | 96 | } | |
97 | 97 | let CurrrentGovernTokenDeposit = pmt.amount | |
98 | 98 | if ((CurrrentGovernTokenDeposit > MaxGovernTokenDeposit)) | |
99 | 99 | then WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit), DataEntry(GovernTokenKey, CurrrentGovernTokenDeposit), DataEntry(MaxGovernTokenDepositerKey, currentKey)]) | |
100 | 100 | else throw((("You have to deposit more than " + toString(MaxGovernTokenDeposit)) + " Troika")) | |
101 | 101 | } | |
102 | 102 | else throw("Can deposit only StakeToken") | |
103 | 103 | } | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | ||
107 | 107 | @Callable(i) | |
108 | 108 | func Stake () = { | |
109 | 109 | let StakedToken = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
110 | 110 | let GovernToken = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
111 | 111 | let GovernTokenSmartContractBalance = assetBalance(this, GovernToken) | |
112 | 112 | let StakedTokenSmartContractBalance = assetBalance(this, StakedToken) | |
113 | 113 | let pmt = extract(i.payment) | |
114 | 114 | if (if ((pmt.amount > 0)) | |
115 | 115 | then (pmt.assetId == StakedToken) | |
116 | 116 | else false) | |
117 | 117 | then { | |
118 | 118 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
119 | 119 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
120 | 120 | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
121 | 121 | let AddressHeight = (toBase58String(i.caller.bytes) + "_PrizeHeight") | |
122 | 122 | let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) { | |
123 | 123 | case a: Int => | |
124 | 124 | a | |
125 | 125 | case _ => | |
126 | 126 | 0 | |
127 | 127 | } | |
128 | 128 | let NewUserStakeTransactions = (UserStakeTransactions + 1) | |
129 | 129 | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
130 | 130 | case a: Int => | |
131 | 131 | a | |
132 | 132 | case _ => | |
133 | 133 | 0 | |
134 | 134 | } | |
135 | 135 | let newAmountStakedToken = (currentAmountStakedToken + pmt.amount) | |
136 | 136 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
137 | 137 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
138 | 138 | case a: Int => | |
139 | 139 | a | |
140 | 140 | case _ => | |
141 | 141 | 0 | |
142 | 142 | } | |
143 | 143 | let StakeBalanceAmount = (StakeBalance + pmt.amount) | |
144 | 144 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
145 | 145 | let currentAmountGovernToken = match getInteger(this, UserGovernTokenKey) { | |
146 | 146 | case a: Int => | |
147 | 147 | a | |
148 | 148 | case _ => | |
149 | 149 | 0 | |
150 | 150 | } | |
151 | 151 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
152 | 152 | case a: Int => | |
153 | 153 | a | |
154 | 154 | case _ => | |
155 | 155 | 0 | |
156 | 156 | } | |
157 | 157 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
158 | 158 | then (PrizeAmount != 0) | |
159 | 159 | else false) | |
160 | 160 | then height | |
161 | 161 | else 0 | |
162 | 162 | if ((1 > GovernTokenSmartContractBalance)) | |
163 | 163 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
164 | 164 | else { | |
165 | 165 | let Reward = if ((StakedTokenSmartContractBalance == 0)) | |
166 | 166 | then 10 | |
167 | 167 | else if ((NewUserStakeTransactions > 50)) | |
168 | 168 | then ((10 * NewUserStakeTransactions) * (newAmountStakedToken / StakedTokenSmartContractBalance)) | |
169 | 169 | else (10 * (newAmountStakedToken / StakedTokenSmartContractBalance)) | |
170 | 170 | let newAmountGovernToken = (currentAmountGovernToken + Reward) | |
171 | 171 | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmountGovernToken), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", PrizeHeightValue)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
172 | 172 | } | |
173 | 173 | } | |
174 | 174 | else throw("Can deposit only StakeToken") | |
175 | 175 | } | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | ||
179 | 179 | @Callable(i) | |
180 | 180 | func WithdrawStakedFunds (amount) = { | |
181 | 181 | let StakedToken = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
182 | 182 | let GovernToken = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
183 | 183 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
184 | 184 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
185 | 185 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
186 | 186 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
187 | 187 | case a: Int => | |
188 | 188 | a | |
189 | 189 | case _ => | |
190 | 190 | 0 | |
191 | 191 | } | |
192 | 192 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
193 | 193 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
194 | 194 | case a: Int => | |
195 | 195 | a | |
196 | 196 | case _ => | |
197 | 197 | 0 | |
198 | 198 | } | |
199 | 199 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
200 | 200 | then (PrizeAmount != 0) | |
201 | 201 | else false) | |
202 | 202 | then WriteSet([DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height)]) | |
203 | 203 | else WriteSet([DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height)]) | |
204 | 204 | let currentKey = toBase58String(i.caller.bytes) | |
205 | 205 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
206 | 206 | case a: Int => | |
207 | 207 | a | |
208 | 208 | case _ => | |
209 | 209 | 0 | |
210 | 210 | } | |
211 | 211 | let newAmount = (currentAmount - amount) | |
212 | 212 | let StakeBalanceAmount = (StakeBalance - amount) | |
213 | 213 | if ((0 > amount)) | |
214 | 214 | then throw("Can't withdraw negative amount") | |
215 | 215 | else if ((0 > newAmount)) | |
216 | 216 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(currentAmount))) | |
217 | 217 | else { | |
218 | 218 | let GovernTokenAmount = assetBalance(this, GovernToken) | |
219 | 219 | if ((1 > GovernTokenAmount)) | |
220 | 220 | then throw("No enough GovernToken In Contract") | |
221 | 221 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 1), DataEntry(UserStakedTokenKey, newAmount), DataEntry("StakeBalance", StakeBalanceAmount)]), TransferSet([ScriptTransfer(i.caller, 1, GovernToken), ScriptTransfer(i.caller, amount, StakedToken)])) | |
222 | 222 | } | |
223 | 223 | } | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | ||
227 | 227 | @Callable(i) | |
228 | 228 | func HarvestGovernToiken (amount) = { | |
229 | 229 | let StakedToken = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
230 | 230 | let GovernToken = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
231 | 231 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_Farm_") + toBase58String(GovernToken)) | |
232 | 232 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
233 | 233 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
234 | 234 | case a: Int => | |
235 | 235 | a | |
236 | 236 | case _ => | |
237 | 237 | 0 | |
238 | 238 | } | |
239 | 239 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
240 | 240 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
241 | 241 | case a: Int => | |
242 | 242 | a | |
243 | 243 | case _ => | |
244 | 244 | 0 | |
245 | 245 | } | |
246 | 246 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
247 | 247 | then (PrizeAmount != 0) | |
248 | 248 | else false) | |
249 | 249 | then WriteSet([DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height)]) | |
250 | 250 | else WriteSet([DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height)]) | |
251 | 251 | let currentKey = toBase58String(i.caller.bytes) | |
252 | 252 | let currentAmount = match getInteger(this, UserGovernTokenKey) { | |
253 | 253 | case a: Int => | |
254 | 254 | a | |
255 | 255 | case _ => | |
256 | 256 | 0 | |
257 | 257 | } | |
258 | 258 | let newAmount = (currentAmount - amount) | |
259 | 259 | if ((0 > amount)) | |
260 | 260 | then throw("Can't withdraw negative amount") | |
261 | 261 | else if ((0 > newAmount)) | |
262 | 262 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString(currentAmount))) | |
263 | 263 | else { | |
264 | 264 | let GovernTokenAmount = assetBalance(this, GovernToken) | |
265 | 265 | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, GovernToken)])) | |
266 | 266 | } | |
267 | 267 | } | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | ||
271 | 271 | @Callable(i) | |
272 | 272 | func delayprize () = { | |
273 | 273 | let StakedToken = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
274 | 274 | let GovernToken = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
275 | 275 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
276 | 276 | let UserWalletSGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
277 | 277 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
278 | 278 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
279 | 279 | case a: Int => | |
280 | 280 | a | |
281 | 281 | case _ => | |
282 | 282 | 0 | |
283 | 283 | } | |
284 | 284 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
285 | 285 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
286 | 286 | case a: Int => | |
287 | 287 | a | |
288 | 288 | case _ => | |
289 | 289 | 0 | |
290 | 290 | } | |
291 | 291 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
292 | 292 | then (PrizeAmount != 0) | |
293 | 293 | else false) | |
294 | 294 | then WriteSet([DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height)]) | |
295 | 295 | else WriteSet([DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height)]) | |
296 | 296 | let ActualDelay = match getInteger(this, "Delay") { | |
297 | 297 | case a: Int => | |
298 | 298 | a | |
299 | 299 | case _ => | |
300 | 300 | 0 | |
301 | 301 | } | |
302 | 302 | let ActualDelayCost = match getInteger(this, "DelayCost") { | |
303 | 303 | case a: Int => | |
304 | 304 | a | |
305 | 305 | case _ => | |
306 | 306 | 10 | |
307 | 307 | } | |
308 | 308 | let pmt = extract(i.payment) | |
309 | 309 | if (if (isDefined(pmt.assetId)) | |
310 | 310 | then (extract(pmt.assetId) == GovernToken) | |
311 | 311 | else false) | |
312 | 312 | then { | |
313 | 313 | let UserGovernTokenAmount = pmt.amount | |
314 | 314 | let NewDelayCost = if ((ActualDelayCost == 0)) | |
315 | 315 | then 10 | |
316 | 316 | else (2 * ActualDelayCost) | |
317 | 317 | if ((UserGovernTokenAmount >= NewDelayCost)) | |
318 | 318 | then { | |
319 | 319 | let NewDelay = (ActualDelay + 10) | |
320 | 320 | WriteSet([DataEntry("Delay", NewDelay), DataEntry("DelayCost", NewDelayCost)]) | |
321 | 321 | } | |
322 | 322 | else throw((("To delay the release of the reward ONE DAY later than expected, you need " + toString(NewDelayCost)) + "TROIKAs")) | |
323 | 323 | } | |
324 | 324 | else throw("Can Use only Govern Token to Delay Reward") | |
325 | 325 | } | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | ||
329 | 329 | @Callable(i) | |
330 | 330 | func ClaimPrize () = { | |
331 | 331 | let StakedToken = base58'GECLRH2fx2Xxix5gmrGV92AMt1A9LPohRpqwqRE16mwr' | |
332 | 332 | let GovernToken = base58'2FMrxDLdQhauSY7d1uDUyKP1MpxkM7BeWA2UMnk3cG3P' | |
333 | - | let UserStakedTokenKey = | |
333 | + | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
334 | 334 | let UserGovernTokenKey = toBase58String(i.caller.bytes) | |
335 | 335 | let GovernTokenAmount = assetBalance(this, GovernToken) | |
336 | 336 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
337 | 337 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
338 | 338 | case a: Int => | |
339 | 339 | a | |
340 | 340 | case _ => | |
341 | 341 | 0 | |
342 | 342 | } | |
343 | 343 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
344 | 344 | let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) { | |
345 | 345 | case a: Int => | |
346 | 346 | a | |
347 | 347 | case _ => | |
348 | 348 | 0 | |
349 | 349 | } | |
350 | 350 | let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) { | |
351 | 351 | case a: Int => | |
352 | 352 | a | |
353 | 353 | case _ => | |
354 | 354 | 0 | |
355 | 355 | } | |
356 | 356 | let ActualDelay = match getInteger(this, "Delay") { | |
357 | 357 | case a: Int => | |
358 | 358 | a | |
359 | 359 | case _ => | |
360 | 360 | 0 | |
361 | 361 | } | |
362 | 362 | let GovernTokenKey = "GovernTokenMaxDeposit" | |
363 | 363 | let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey" | |
364 | 364 | let PrizeWinner = getStringValue(this, MaxGovernTokenDepositerKey) | |
365 | 365 | let PrizeHeight = match getInteger(this, "PrizeHeight") { | |
366 | 366 | case a: Int => | |
367 | 367 | a | |
368 | 368 | case _ => | |
369 | 369 | 0 | |
370 | 370 | } | |
371 | 371 | let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) { | |
372 | 372 | case a: Int => | |
373 | 373 | a | |
374 | 374 | case _ => | |
375 | 375 | 0 | |
376 | 376 | } | |
377 | 377 | if (if ((PrizeAmount == 0)) | |
378 | 378 | then true | |
379 | 379 | else (100 > GovernTokenAmount)) | |
380 | 380 | then throw("No prize to Claim or No enough Govern Token en Contract") | |
381 | 381 | else if ((UserGovernTokenKey != PrizeWinner)) | |
382 | 382 | then throw("You are not the winner hence cannot claim the reward ") | |
383 | 383 | else if ((1 > UserStakedTokenAmount)) | |
384 | 384 | then throw(("You have to Stake StakedToken to claim reward | |
385 | 385 | Your Balance of Staked Tokens is: " + toString(UserStakedTokenAmount))) | |
386 | 386 | else if (if (if ((UserGovernTokenAmount >= 100)) | |
387 | 387 | then (height >= (PrizeHeight + ActualDelay)) | |
388 | 388 | else false) | |
389 | 389 | then (height > 0) | |
390 | 390 | else false) | |
391 | 391 | then if ((UserGovernTokenAmount >= MaxGovernTokenDeposit)) | |
392 | 392 | then ScriptResult(WriteSet([DataEntry(PrizeWinner, PrizeAmount), DataEntry("FundBox", 0), DataEntry(GovernTokenKey, 0), DataEntry(UserGovernTokenKey, 0), DataEntry(MaxGovernTokenDepositerKey, ""), DataEntry("PrizeHeight", 0), DataEntry("Delay", 0), DataEntry("DelayCost", 0)]), TransferSet([ScriptTransfer(i.caller, PrizeAmount, StakedToken), ScriptTransfer(i.caller, 100, GovernToken)])) | |
393 | 393 | else throw((("You should deposit at least " + toString(MaxGovernTokenDeposit)) + " to be able to claim reward")) | |
394 | 394 | else throw(((((((("You have to deposit 100 GovernToken to claim Reward | |
395 | 395 | Your Balance is: " + toString(UserGovernTokenAmount)) + " | |
396 | 396 | Deposit done at: ") + toString(PrizeHeight)) + " And wait:") + toString((PrizeHeight + 10))) + "And Height is:") + toString(height))) | |
397 | 397 | } | |
398 | 398 | ||
399 | 399 |
github/deemru/w8io/026f985 84.21 ms ◑