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