tx · G6kh8aucLpWnPAjbtJoDowmWHBFRKV3zEWdtrMjNA2cf

3NBB3iv7YDRsD8ZM2Pw2V5eTcsfqh3j2mvF:  -0.01400000 Waves

2019.07.10 01:50 [578723] smart account 3NBB3iv7YDRsD8ZM2Pw2V5eTcsfqh3j2mvF > SELF 0.00000000 Waves

{ "type": 13, "id": "G6kh8aucLpWnPAjbtJoDowmWHBFRKV3zEWdtrMjNA2cf", "fee": 1400000, "feeAssetId": null, "timestamp": 1562712650799, "version": 1, "sender": "3NBB3iv7YDRsD8ZM2Pw2V5eTcsfqh3j2mvF", "senderPublicKey": "9i5FpMUFCwhogG5euZDBZKV6NehQN4xX83qvNr8NWipE", "proofs": [ "43RAKyTfiRehPDnocBghuRCnKpT25ZZAMmnK8jy1Wdf1eYLNa5V2nQmB2Rm4zAJ999GthMGkpGk3mEFc7NrE7Y7q" ], "script": "base64:AAIDAAAAAAAAAAAAAABVAAAAAAROT05FAgAAAARub25lAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAAA251bQEAAAALZ2V0U3RyQnlLZXkAAAABAAAAA2tleQQAAAADc3RyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FBQAAAANzdHIBAAAAEmdldEtleVdoaXRlbGlzdFJlZgAAAAEAAAAHYWNjb3VudAkAASwAAAACAgAAAAd3bF9yZWZfBQAAAAdhY2NvdW50AQAAABVnZXRLZXlXaGl0ZWxpc3RTdGF0dXMAAAABAAAAB2FjY291bnQJAAEsAAAAAgIAAAAHd2xfc3Rz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MAAAABBQAAAARpdGVtAwkAAGYAAAACBQAAAAxhdXRob3Jwcm9maXQAAAAAAAAAAAAFAAAAB0NBU0hPVVQFAAAABnN0YXR1cwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAEmdldEtleUl0ZW1BY2NGaW5hbAAAAAIFAAAABGl0ZW0FAAAAB2FjY291bnQFAAAAB0NMQUlNRUQFAAAAA25pbAAAAAAPi6Rl", "chainId": 84, "height": 578723, "spentComplexity": 0 } View: original | compacted Prev: 7Gs3bLAeexZwoVJAR58ca3CUfgzVJWZYZD3qSreGvmf3 Next: 7Qnf6N76PMHYRJ11cAN7rCxQakj8KGbMfrgFWHRJQvCS Diff:
OldNewDifferences
268268 func signup (data,type) = {
269269 let account = toBase58String(i.caller.bytes)
270270 let status = getValueWhitelistStatus(account)
271- if ((getValueWhitelistStatus(account) != "invited"))
271+ if ((status != NONE))
272272 then throw(((((("Referral invite needed. Current status: " + status) + ", key:") + getKeyWhitelistStatus(account)) + ", account:") + account))
273273 else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistBlock(account), height), DataEntry(getKeyWhitelistStatus(account), if ((type == WHALE))
274274 then WHALE
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let NONE = "none"
55
66 func getNumberByKey (key) = {
77 let num = match getInteger(this, key) {
88 case a: Int =>
99 a
1010 case _ =>
1111 0
1212 }
1313 num
1414 }
1515
1616
1717 func getStrByKey (key) = {
1818 let str = match getString(this, key) {
1919 case a: String =>
2020 a
2121 case _ =>
2222 NONE
2323 }
2424 str
2525 }
2626
2727
2828 func getKeyWhitelistRef (account) = ("wl_ref_" + account)
2929
3030
3131 func getKeyWhitelistStatus (account) = ("wl_sts_" + account)
3232
3333
3434 func getKeyBalance (account) = ("balance_" + account)
3535
3636
3737 func getKeyWhitelistBio (account) = ("wl_bio_" + account)
3838
3939
4040 func getKeyWhitelistBlock (account) = ("wl_blk_" + account)
4141
4242
4343 func getKeyItemAuthor (item) = ("author_" + item)
4444
4545
4646 func getKeyItemBlock (item) = ("block_" + item)
4747
4848
4949 func getKeyItemVotingExpiration (item) = ("expiration_block_" + item)
5050
5151
5252 func getKeyItemBank (item) = ("bank_" + item)
5353
5454
5555 func getKeyItemStatus (item) = ("status_" + item)
5656
5757
5858 func getKeyItemData (item) = ("datajson_" + item)
5959
6060
6161 func getKeyItemCrowdExpiration (item) = ("expiration_one_" + item)
6262
6363
6464 func getKeyItemWhaleExpiration (item) = ("expiration_two_" + item)
6565
6666
6767 func getKeyItemNCommits (item) = ("ncommits_" + item)
6868
6969
7070 func getKeyItemAccCommit (item,account) = ((("commit_" + item) + "_") + account)
7171
7272
7373 func getKeyItemAccReveal (item,account) = ((("reveal_" + item) + "_") + account)
7474
7575
7676 func getKeyItemVotesYes (item) = ("cnt_yes_" + item)
7777
7878
7979 func getKeyItemVotesNo (item) = ("cnt_no_" + item)
8080
8181
8282 func getKeyItemAccFinal (item,account) = ((("final_" + item) + "_") + account)
8383
8484
8585 func getKeyItemFundPositive (item) = ("positive_fund_" + item)
8686
8787
8888 func getKeyItemFundNegative (item) = ("negative_fund_" + item)
8989
9090
9191 func getKeyItemAccFundPositive (item,account) = ((getKeyItemFundPositive(item) + "_") + account)
9292
9393
9494 func getKeyItemAccFundNegative (item,account) = ((getKeyItemFundNegative(item) + "_") + account)
9595
9696
9797 func getKeyItemAccReviewsCnt (item,account) = ((("reviews_cnt_" + item) + "_") + account)
9898
9999
100100 func getKeyItemAccReview (item,account) = ((("review_" + item) + "_") + account)
101101
102102
103103 func getKeyItemAccReviewText (item,account,cnt) = ((getKeyItemAccReview(item, account) + "_text_id:") + cnt)
104104
105105
106106 func getKeyItemAccReviewMode (item,account,cnt) = ((getKeyItemAccReview(item, account) + "_mode_id:") + cnt)
107107
108108
109109 func getKeyItemAccReviewTier (item,account,cnt) = ((getKeyItemAccReview(item, account) + "_tier_id:") + cnt)
110110
111111
112112 func getKeyItemAccVoteReviewText (item,account) = (getKeyItemAccReview(item, account) + "_votereview")
113113
114114
115115 func getKeyItemAccWhaleReviewText (item,account) = (getKeyItemAccReview(item, account) + "_whalereview")
116116
117117
118118 func getKeyItemBuyoutAmount (item) = ("buyout_amount_" + item)
119119
120120
121121 func getKeyItemAccWinnings (item,account) = ((("winnings_" + item) + "_") + account)
122122
123123
124124 func getValueWhitelistRef (account) = getStrByKey(getKeyWhitelistRef(account))
125125
126126
127127 func getValueWhitelistStatus (account) = getStrByKey(getKeyWhitelistStatus(account))
128128
129129
130130 func getValueBalance (account) = getNumberByKey(getKeyBalance(account))
131131
132132
133133 func getValueWhitelistBio (account) = getStrByKey(getKeyWhitelistBio(account))
134134
135135
136136 func getValueWhitelistBlock (account) = getStrByKey(getKeyWhitelistBlock(account))
137137
138138
139139 func getValueItemAuthor (item) = getStrByKey(getKeyItemAuthor(item))
140140
141141
142142 func getValueItemBlock (item) = getNumberByKey(getKeyItemBlock(item))
143143
144144
145145 func getValueItemVotingExpiration (item) = getNumberByKey(getKeyItemVotingExpiration(item))
146146
147147
148148 func getValueItemBank (item) = getNumberByKey(getKeyItemBank(item))
149149
150150
151151 func getValueItemStatus (item) = getStrByKey(getKeyItemStatus(item))
152152
153153
154154 func getValueItemData (item) = getStrByKey(getKeyItemData(item))
155155
156156
157157 func getValueItemCrowdExpiration (item) = getNumberByKey(getKeyItemCrowdExpiration(item))
158158
159159
160160 func getValueItemWhaleExpiration (item) = getNumberByKey(getKeyItemWhaleExpiration(item))
161161
162162
163163 func getValueItemNCommits (item) = getNumberByKey(getKeyItemNCommits(item))
164164
165165
166166 func getValueItemAccCommit (item,account) = getStrByKey(getKeyItemAccCommit(item, account))
167167
168168
169169 func getValueItemAccReveal (item,account) = getStrByKey(getKeyItemAccReveal(item, account))
170170
171171
172172 func getValueItemVotesYes (item) = getNumberByKey(getKeyItemVotesYes(item))
173173
174174
175175 func getValueItemVotesNo (item) = getNumberByKey(getKeyItemVotesNo(item))
176176
177177
178178 func getValueItemAccFinal (item,account) = getStrByKey(getKeyItemAccFinal(item, account))
179179
180180
181181 func getValueItemFundPositive (item) = getNumberByKey(getKeyItemFundPositive(item))
182182
183183
184184 func getValueItemFundNegative (item) = getNumberByKey(getKeyItemFundNegative(item))
185185
186186
187187 func getValueItemAccFundPositive (item,account) = getNumberByKey(getKeyItemAccFundPositive(item, account))
188188
189189
190190 func getValueItemAccFundNegative (item,account) = getNumberByKey(getKeyItemAccFundNegative(item, account))
191191
192192
193193 func getValueItemAccReviewsCnt (item,account) = getNumberByKey(getKeyItemAccReviewsCnt(item, account))
194194
195195
196196 func getValueItemAccReviewText (item,account,cnt) = getStrByKey(getKeyItemAccReviewText(item, account, cnt))
197197
198198
199199 func getValueItemAccReviewMode (item,account,cnt) = getStrByKey(getKeyItemAccReviewMode(item, account, cnt))
200200
201201
202202 func getValueItemAccReviewTier (item,account,cnt) = getNumberByKey(getKeyItemAccReviewTier(item, account, cnt))
203203
204204
205205 func getValueItemBuyoutAmount (item) = getNumberByKey(getKeyItemBuyoutAmount(item))
206206
207207
208208 func getValueItemAccWinnings (item,account) = getNumberByKey(getKeyItemAccWinnings(item, account))
209209
210210
211211 let WHITELISTED = "registered"
212212
213213 let INVITED = "invited"
214214
215215 let WHALE = "whale"
216216
217217 let NEW = "new"
218218
219219 let COMMIT = "voting_commit"
220220
221221 let REVEAL = "voting_reveal"
222222
223223 let FEATURED = "featured"
224224
225225 let DELISTED = "delisted"
226226
227227 let CASHOUT = "cashout"
228228
229229 let BUYOUT = "buyout"
230230
231231 let FINISHED = "finished"
232232
233233 let CLAIMED = "claimed"
234234
235235 let POSITIVE = "positive"
236236
237237 let NEGATIVE = "negative"
238238
239239 let GENESIS = "3NBB3iv7YDRsD8ZM2Pw2V5eTcsfqh3j2mvF"
240240
241241 let VOTERS = 3
242242
243243 let QUORUM = 2
244244
245245 let LISTINGFEE = (500000000 / 1000)
246246
247247 let VOTEBET = (150000000 / 1000)
248248
249249 let TIERS = [10, 50, 250, 1250, 6250]
250250
251251 let MULTIPLIER = 150
252252
253253 @Callable(i)
254254 func inviteuser (newaccount,data) = {
255255 let account = toBase58String(i.caller.bytes)
256256 if ((getValueWhitelistRef(newaccount) != NONE))
257257 then throw("User has already been invited")
258258 else if (if ((getKeyWhitelistStatus(account) != WHITELISTED))
259259 then (account != GENESIS)
260260 else false)
261261 then throw("Your account should be whitelisted")
262262 else WriteSet([DataEntry(getKeyWhitelistRef(newaccount), account), DataEntry(getKeyWhitelistBio(newaccount), data), DataEntry(getKeyWhitelistStatus(newaccount), INVITED)])
263263 }
264264
265265
266266
267267 @Callable(i)
268268 func signup (data,type) = {
269269 let account = toBase58String(i.caller.bytes)
270270 let status = getValueWhitelistStatus(account)
271- if ((getValueWhitelistStatus(account) != "invited"))
271+ if ((status != NONE))
272272 then throw(((((("Referral invite needed. Current status: " + status) + ", key:") + getKeyWhitelistStatus(account)) + ", account:") + account))
273273 else WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistBlock(account), height), DataEntry(getKeyWhitelistStatus(account), if ((type == WHALE))
274274 then WHALE
275275 else WHITELISTED)])
276276 }
277277
278278
279279
280280 @Callable(i)
281281 func userupdate (data,type) = {
282282 let account = toBase58String(i.caller.bytes)
283283 WriteSet([DataEntry(getKeyWhitelistBio(account), data), DataEntry(getKeyWhitelistStatus(account), if ((type == WHALE))
284284 then WHALE
285285 else WHITELISTED)])
286286 }
287287
288288
289289
290290 @Callable(i)
291291 func godsmodestring (key,val) = {
292292 let account = toBase58String(i.caller.bytes)
293293 if ((account != GENESIS))
294294 then throw("you're not admin")
295295 else WriteSet([DataEntry(key, val)])
296296 }
297297
298298
299299
300300 @Callable(i)
301301 func projupdate (item,data) = {
302302 let account = toBase58String(i.caller.bytes)
303303 if ((getValueItemAuthor(item) != account))
304304 then throw("You're not author")
305305 else WriteSet([DataEntry(getKeyItemData(item), data)])
306306 }
307307
308308
309309
310310 @Callable(i)
311311 func withdraw () = {
312312 let currentKey = toBase58String(i.caller.bytes)
313313 let amount = getValueBalance(currentKey)
314314 if ((0 >= amount))
315315 then throw("Not enough balance")
316316 else ScriptResult(WriteSet([DataEntry(getKeyBalance(currentKey), 0)]), TransferSet([ScriptTransfer(i.caller, amount, unit)]))
317317 }
318318
319319
320320
321321 @Callable(i)
322322 func additem (item,expVoting,expCrowd,expWhale,data) = {
323323 let account = toBase58String(i.caller.bytes)
324324 let pmt = extract(i.payment)
325325 if (isDefined(pmt.assetId))
326326 then throw("can use waves only at the moment")
327327 else if ((pmt.amount != LISTINGFEE))
328328 then throw("Please pay exact amount for the listing")
329329 else if (!(if (if ((expVoting > 2))
330330 then (expCrowd > expVoting)
331331 else false)
332332 then (expWhale > expCrowd)
333333 else false))
334334 then throw("Incorrect time parameters")
335335 else if ((getValueItemAuthor(item) != NONE))
336336 then throw("Item already exist")
337337 else WriteSet([DataEntry(getKeyItemAuthor(item), account), DataEntry(getKeyItemBlock(item), height), DataEntry(getKeyItemVotingExpiration(item), (height + expVoting)), DataEntry(getKeyItemBank(item), LISTINGFEE), DataEntry(getKeyItemStatus(item), NEW), DataEntry(getKeyItemData(item), data), DataEntry(getKeyItemCrowdExpiration(item), (height + expCrowd)), DataEntry(getKeyItemWhaleExpiration(item), (height + expWhale))])
338338 }
339339
340340
341341
342342 @Callable(i)
343343 func votecommit (item,hash) = {
344344 let account = toBase58String(i.caller.bytes)
345345 let commits = getValueItemNCommits(item)
346346 let status = getValueItemStatus(item)
347347 let pmt = extract(i.payment)
348348 if (isDefined(pmt.assetId))
349349 then throw("can use waves only at the moment")
350350 else if ((pmt.amount != (2 * VOTEBET)))
351351 then throw("Not enough funds to vote for a new item")
352352 else if ((height > getValueItemVotingExpiration(item)))
353353 then throw("The voting has expired")
354354 else if ((getValueItemAuthor(item) == account))
355355 then throw("Cannot vote for own proposal")
356356 else if (if ((status != NEW))
357357 then (status != COMMIT)
358358 else false)
359359 then throw("Wrong item status for 'commit' action")
360360 else if ((commits >= VOTERS))
361361 then throw("No more voters for this item")
362362 else if ((getValueItemAccCommit(item, account) != NONE))
363363 then throw("Can't vote twice")
364364 else WriteSet([DataEntry(getKeyItemStatus(item), if (((commits + 1) == VOTERS))
365365 then REVEAL
366366 else COMMIT), DataEntry(getKeyItemAccCommit(item, account), hash), DataEntry(getKeyItemNCommits(item), (commits + 1))])
367367 }
368368
369369
370370
371371 @Callable(i)
372372 func votereveal (item,vote,salt,review) = {
373373 let ridehash = toBase58String(sha256(toBytes((vote + salt))))
374374 let account = toBase58String(i.caller.bytes)
375375 let yesmltp = if ((vote == FEATURED))
376376 then 1
377377 else 0
378378 let notmltp = if ((vote == DELISTED))
379379 then 1
380380 else 0
381381 let yescnt = getValueItemVotesYes(item)
382382 let notcnt = getValueItemVotesNo(item)
383383 let newstatus = if ((yescnt >= QUORUM))
384384 then FEATURED
385385 else if ((notcnt >= QUORUM))
386386 then DELISTED
387387 else REVEAL
388388 if ((getValueItemAccCommit(item, account) != ridehash))
389389 then throw("Hashes don't match")
390390 else if ((height > getValueItemVotingExpiration(item)))
391391 then throw("The challenge has expired")
392392 else if ((VOTERS > getValueItemNCommits(item)))
393393 then throw("It's still commit stage")
394394 else if (if ((getValueItemStatus(item) != REVEAL))
395395 then (getValueItemStatus(item) != newstatus)
396396 else false)
397397 then throw("Wrong item status for 'reveal' action")
398398 else if ((getValueItemAccReveal(item, account) != NONE))
399399 then throw("Can't vote twice")
400400 else if (if ((vote != FEATURED))
401401 then (vote != DELISTED)
402402 else false)
403403 then throw("Bad vote result format")
404404 else WriteSet([DataEntry(getKeyItemAccReveal(item, account), vote), DataEntry(getKeyItemVotesYes(item), (yescnt + yesmltp)), DataEntry(getKeyItemVotesNo(item), (notcnt + notmltp)), DataEntry(getKeyItemStatus(item), newstatus), DataEntry(getKeyItemAccVoteReviewText(item, account), review), DataEntry(getKeyBalance(account), (getValueBalance(account) + VOTEBET))])
405405 }
406406
407407
408408
409409 @Callable(i)
410410 func finalizevoting (item,account) = {
411411 let yescnt = getValueItemVotesYes(item)
412412 let notcnt = getValueItemVotesNo(item)
413413 let accvote = getValueItemAccReveal(item, account)
414414 let isauthor = (account == getValueItemAuthor(item))
415415 let finalstatus = if ((yescnt > QUORUM))
416416 then FEATURED
417417 else if ((notcnt > QUORUM))
418418 then DELISTED
419419 else NONE
420420 let mltisnotfullmajority = if (if ((yescnt == VOTERS))
421421 then true
422422 else (notcnt == VOTERS))
423423 then 0
424424 else 1
425425 let nwinners = if ((finalstatus == FEATURED))
426426 then yescnt
427427 else if ((finalstatus == DELISTED))
428428 then notcnt
429429 else 0
430430 let nloosers = (VOTERS - nwinners)
431431 let mltacciswinner = if ((finalstatus == accvote))
432432 then 1
433433 else 0
434434 let voteprofit = if ((nwinners == 0))
435435 then 0
436436 else (mltacciswinner * (VOTEBET + ((mltisnotfullmajority * ((nloosers * VOTEBET) + LISTINGFEE)) / nwinners)))
437437 let authorreturn = (((LISTINGFEE * (if (isauthor)
438438 then 1
439439 else 0)) * (if ((mltisnotfullmajority == 1))
440440 then 0
441441 else 1)) * (if ((finalstatus == FEATURED))
442442 then 1
443443 else 0))
444444 if ((getValueItemVotingExpiration(item) > height))
445445 then throw("The voting hasn't finished yet")
446446 else if ((getValueItemAccFinal(item, account) == FINISHED))
447447 then throw("Account has already claimed")
448448 else if (if ((accvote == NONE))
449449 then !(isauthor)
450450 else false)
451451 then throw("Account hasnot voted, hasnot reveal or isnot author")
452452 else if ((finalstatus == NONE))
453453 then throw("Voting has expired")
454454 else WriteSet([DataEntry(getKeyItemAccFinal(item, account), FINISHED), DataEntry(getKeyBalance(account), ((getValueBalance(account) + voteprofit) + authorreturn))])
455455 }
456456
457457
458458
459459 @Callable(i)
460460 func closeexpiredvoting (item,account) = {
461461 let finalstatus = if ((getValueItemVotesYes(item) > QUORUM))
462462 then FEATURED
463463 else if ((getValueItemVotesNo(item) > QUORUM))
464464 then DELISTED
465465 else NONE
466466 let accvote = getValueItemAccReveal(item, account)
467467 let isauthor = (account == getValueItemAuthor(item))
468468 let acccomi = getValueItemAccCommit(item, account)
469469 let hasrevealstage = (getValueItemNCommits(item) == VOTERS)
470470 let authorreturn = (LISTINGFEE * (if (isauthor)
471471 then 1
472472 else 0))
473473 let votersreturn1 = ((VOTEBET * (if (hasrevealstage)
474474 then 1
475475 else 0)) * (if ((accvote != NONE))
476476 then 1
477477 else 0))
478478 let votersreturn2 = (((2 * VOTEBET) * (if (hasrevealstage)
479479 then 0
480480 else 1)) * (if ((acccomi != NONE))
481481 then 1
482482 else 0))
483483 if ((getValueItemVotingExpiration(item) > height))
484484 then throw("The voting hasn't finished yet")
485485 else if (if (!(isauthor))
486486 then (acccomi == NONE)
487487 else false)
488488 then throw("Wrong account or item")
489489 else if ((getValueItemAccFinal(item, account) == FINISHED))
490490 then throw("Account has already claimed")
491491 else if ((finalstatus != NONE))
492492 then throw("Wrong item status")
493493 else WriteSet([DataEntry(getKeyItemAccFinal(item, account), FINISHED), DataEntry(getKeyBalance(account), (((getValueBalance(account) + authorreturn) + votersreturn1) + votersreturn2))])
494494 }
495495
496496
497497
498498 @Callable(i)
499499 func donate (item,tier,mode,review) = {
500500 let account = toBase58String(i.caller.bytes)
501501 let pmt = extract(i.payment)
502502 if (isDefined(pmt.assetId))
503503 then throw("can use waves only at the moment")
504504 else {
505505 let cnt = (getValueItemAccReviewsCnt(item, account) + 1)
506506 let newnegativefund = (getValueItemFundNegative(item) + ((if ((mode == NEGATIVE))
507507 then 1
508508 else 0) * pmt.amount))
509509 let newpositivefund = (getValueItemFundPositive(item) + ((if ((mode == POSITIVE))
510510 then 1
511511 else 0) * pmt.amount))
512512 if ((getValueItemStatus(item) != FEATURED))
513513 then throw("The project hasn't accepted by community")
514514 else if ((height >= getValueItemCrowdExpiration(item)))
515515 then throw("The time for crowdfunding has expired")
516516 else if ((newnegativefund >= newpositivefund))
517517 then throw("Negative fund can't be higher than positive fund")
518518 else if (if ((mode != POSITIVE))
519519 then (mode != NEGATIVE)
520520 else false)
521521 then throw("Wrong mode parameter")
522522 else if ((getValueItemAuthor(item) == account))
523523 then throw("Can't donate own project")
524524 else if ((pmt.amount != TIERS[(tier - 1)]))
525525 then throw(("The payment must be equal to tier amount: " + toString(TIERS[(tier - 1)])))
526526 else WriteSet([DataEntry(getKeyItemAccReviewsCnt(item, account), cnt), DataEntry(getKeyItemAccFundPositive(item, account), (getValueItemAccFundPositive(item, account) + ((if ((mode == POSITIVE))
527527 then 1
528528 else 0) * pmt.amount))), DataEntry(getKeyItemAccFundNegative(item, account), (getValueItemAccFundNegative(item, account) + ((if ((mode == NEGATIVE))
529529 then 1
530530 else 0) * pmt.amount))), DataEntry(getKeyItemFundPositive(item), newpositivefund), DataEntry(getKeyItemFundNegative(item), newnegativefund), DataEntry(getKeyItemAccReviewText(item, account, toString(cnt)), review), DataEntry(getKeyItemAccReviewMode(item, account, toString(cnt)), mode), DataEntry(getKeyItemAccReviewTier(item, account, toString(cnt)), tier)])
531531 }
532532 }
533533
534534
535535
536536 @Callable(i)
537537 func whale (item,review) = {
538538 let account = toBase58String(i.caller.bytes)
539539 let pmt = extract(i.payment)
540540 if (isDefined(pmt.assetId))
541541 then throw("can use waves only at the moment")
542542 else if ((getValueItemStatus(item) != FEATURED))
543543 then throw("The project hasn't accepted by community")
544544 else if ((getValueItemCrowdExpiration(item) > height))
545545 then throw("The time for crowdfunding has not expired yet")
546546 else if ((height > getValueItemWhaleExpiration(item)))
547547 then throw("The time for grant has expired")
548548 else if ((getValueItemStatus(item) == BUYOUT))
549549 then throw("Investement has already done")
550550 else if ((((getValueItemFundPositive(item) * MULTIPLIER) / 100) > pmt.amount))
551551 then throw((("Investement must be more than " + toString(MULTIPLIER)) + "% of supportes funds"))
552552 else WriteSet([DataEntry(getKeyItemStatus(item), BUYOUT), DataEntry(getKeyItemAccWhaleReviewText(item, account), review), DataEntry(getKeyBalance(getValueItemAuthor(item)), (getValueBalance(getValueItemAuthor(item)) + getValueItemFundPositive(item))), DataEntry(getKeyItemBuyoutAmount(item), pmt.amount)])
553553 }
554554
555555
556556
557557 @Callable(i)
558558 func claimwinnings (item,account) = {
559559 let status = getValueItemStatus(item)
560560 let isbayout = if ((status == BUYOUT))
561561 then 1
562562 else 0
563563 let iscrowdf = if ((status != BUYOUT))
564564 then 1
565565 else 0
566566 let positivefund = getValueItemFundPositive(item)
567567 let negativefund = getValueItemFundNegative(item)
568568 let share = (((isbayout * (getValueItemAccFundPositive(item, account) * 100)) / (if ((0 >= positivefund))
569569 then 1
570570 else positivefund)) + ((iscrowdf * (getValueItemAccFundNegative(item, account) * 100)) / (if ((0 >= negativefund))
571571 then 1
572572 else negativefund)))
573573 let tmpnegwin = ((negativefund * MULTIPLIER) / 100)
574574 let betprofit = ((isbayout * ((share * negativefund) / 100)) + (iscrowdf * ((share * (if ((positivefund > tmpnegwin))
575575 then tmpnegwin
576576 else positivefund)) / 100)))
577577 let roiprofit = (isbayout * ((share * getValueItemBuyoutAmount(item)) / 100))
578578 let authorprofit = (((if ((getValueItemAuthor(item) == account))
579579 then 1
580580 else 0) * positivefund) * (if ((status != BUYOUT))
581581 then 1
582582 else 0))
583583 if ((status == DELISTED))
584584 then throw("The project hasn't accepted by community")
585585 else if (if ((status != BUYOUT))
586586 then (getValueItemWhaleExpiration(item) >= height)
587587 else false)
588588 then throw("The time for grant has not expired yet")
589589 else if ((0 >= (positivefund + negativefund)))
590590 then throw("The campaign wasn't active")
591591 else WriteSet([DataEntry(getKeyBalance(account), (((getValueBalance(account) + betprofit) + roiprofit) + authorprofit)), DataEntry(getKeyItemStatus(item), if ((authorprofit > 0))
592592 then CASHOUT
593593 else status), DataEntry(getKeyItemAccFinal(item, account), CLAIMED)])
594594 }
595595
596596

github/deemru/w8io/026f985 
87.04 ms