tx · FevnM2FvoUUX7Twhrbtewi2AH6EcknAoa8M9h46yXCsC 3NAsFvuLwxz1iUtZ9fmhfmSN16r9NEsPqsh: -0.02600000 Waves 2022.10.18 16:50 [2277918] smart account 3NAsFvuLwxz1iUtZ9fmhfmSN16r9NEsPqsh > SELF 0.00000000 Waves
{ "type": 13, "id": "FevnM2FvoUUX7Twhrbtewi2AH6EcknAoa8M9h46yXCsC", "fee": 2600000, "feeAssetId": null, "timestamp": 1666101048439, "version": 1, "sender": "3NAsFvuLwxz1iUtZ9fmhfmSN16r9NEsPqsh", "senderPublicKey": "33fpjdpM9FMu87RZKePniPardKqQXM96sm7VhAk3JEVQ", "proofs": [ "2LoxaT5xzsn5my1p8gXZAhBFk3JubMU6UBGtCy6EwVg2Sae7kztpWipP7xctTNQCq3mrc1JvkCuu9H2nttoZQwyi" ], "script": "base64:BgJdCAISBQoDCAgEEgUKAwgYARIHCgURCBgBARIGCgQICAgIEgYKBAgICAISBQoDCAgEEgYKBAgIAQESBAoCCBgSAwoBCBIAEgQKAggIEgMKAQgSBAoCCAgSAwoBCBIAHgAJc2VwYXJhdG9yAgJfXwEMa2V5V3hBc3NldElkAAkAuQkCCQDMCAICAiVzCQDMCAICCXd4QXNzZXRJZAUDbmlsBQlzZXBhcmF0b3IAE2tleUJhY2tlbmRQdWJsaWNLZXkJALkJAgkAzAgCAgIlcwkAzAgCAhBiYWNrZW5kUHVibGljS2V5BQNuaWwFCXNlcGFyYXRvcgEba2V5RXhpc3RzUmVmZXJyZXJUb1JlZmVycmFsAwtwcm9ncmFtTmFtZQ9yZWZlcnJlckFkZHJlc3MPcmVmZXJyYWxBZGRyZXNzCQC5CQIJAMwIAgIIJXMlcyVzJXMJAMwIAgIYZXhpc3RzUmVmZXJyZXJUb1JlZmVycmFsCQDMCAIFC3Byb2dyYW1OYW1lCQDMCAIFD3JlZmVycmVyQWRkcmVzcwkAzAgCBQ9yZWZlcnJhbEFkZHJlc3MFA25pbAUJc2VwYXJhdG9yARJr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tQTQMJAAACCAUBaQ9jYWxsZXJQdWJsaWNLZXkJAQV2YWx1ZQEFAnBtBgkBCHRocm93RXJyAQIbeW91IGFyZSBub3QgcGVuZGluZyBtYW5hZ2VyAwkAAAIFB2NoZWNrUE0FB2NoZWNrUE0JAMwIAgkBC1N0cmluZ0VudHJ5AgkBE2tleU1hbmFnZXJQdWJsaWNLZXkACQDYBAEJAQV2YWx1ZQEFAnBtCQDMCAIJAQtEZWxldGVFbnRyeQEJARprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAED3RhcmdldFB1YmxpY0tleQQHJG1hdGNoMAkBFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAnBrBQckbWF0Y2gwBQJwawMJAAECBQckbWF0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleWOYnC0=", "chainId": 84, "height": 2277918, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BiJNx6Hva7vMyef9rFF1c7Sdf61hGefjSV28PPDGNb4c Next: 7tsnqBkTAXSs4Zz26cF7E2NKPmxu27MHWwjhQSxajyPQ Diff:
Old | New | Differences | |
---|---|---|---|
240 | 240 | let newResAmount = (resAmount + paymentAmounts[currentIter]) | |
241 | 241 | let inv = invoke(this, "incUnclaimedWithPaymentInternal", [paymentAmounts, programName, referrerAddresses, (currentIter + 1), newResAmount], nil) | |
242 | 242 | if ((inv == inv)) | |
243 | - | then $Tuple2([IntegerEntry(keyUnclaimedTotalAddress(referrerAddress), newUnclaimedTotalAddress), IntegerEntry(keyUnclaimedReferrer(programName, referrerAddress), newReferrerUnclaimed), IntegerEntry(keyRewardsTotal(programName), (rewardsTotal + paymentAmounts[currentIter]))], inv) | |
243 | + | then { | |
244 | + | let allReferrerPrograms = valueOrElse(getString(keyAllReferralPrograms(referrerAddress)), "") | |
245 | + | let newAllReferrerPrograms = if ((allReferrerPrograms == "")) | |
246 | + | then programName | |
247 | + | else makeString([allReferrerPrograms, programName], separator) | |
248 | + | $Tuple2([IntegerEntry(keyUnclaimedTotalAddress(referrerAddress), newUnclaimedTotalAddress), IntegerEntry(keyUnclaimedReferrer(programName, referrerAddress), newReferrerUnclaimed), IntegerEntry(keyRewardsTotal(programName), (rewardsTotal + paymentAmounts[currentIter])), StringEntry(keyAllReferralPrograms(referrerAddress), newAllReferrerPrograms)], inv) | |
249 | + | } | |
244 | 250 | else throw("Strict value is not equal to itself.") | |
245 | 251 | } | |
246 | 252 | else throw("Strict value is not equal to itself.") | |
370 | 376 | else throwErr("permission denied") | |
371 | 377 | if ((checkCaller == checkCaller)) | |
372 | 378 | then { | |
373 | - | let referrerAddress = value(getString(keyReferrer(programName, referralAddress))) | |
374 | - | let unclaimedTotalReferrer = valueOrElse(getInteger(keyUnclaimedTotalAddress(referrerAddress)), 0) | |
375 | - | let referrerUnclaimed = valueOrElse(getInteger(keyUnclaimedReferrer(programName, referrerAddress)), 0) | |
376 | - | let unclaimedTotalReferral = valueOrElse(getInteger(keyUnclaimedTotalAddress(referralAddress)), 0) | |
377 | - | let referralUnclaimed = valueOrElse(getInteger(keyUnclaimedReferral(programName, referralAddress)), 0) | |
378 | - | let rewardsTotal = valueOrElse(getInteger(keyRewardsTotal(programName)), 0) | |
379 | - | let newUnclaimedTotalReferrer = (unclaimedTotalReferrer + referrerReward) | |
380 | - | let newReferrerUnclaimed = (referrerUnclaimed + referrerReward) | |
381 | - | let newUnclaimedTotalReferral = (unclaimedTotalReferral + referralReward) | |
382 | - | let newReferralUnclaimed = (referralUnclaimed + referralReward) | |
383 | - | $Tuple2([IntegerEntry(keyUnclaimedTotalAddress(referrerAddress), newUnclaimedTotalReferrer), IntegerEntry(keyUnclaimedTotalAddress(referralAddress), newUnclaimedTotalReferral), IntegerEntry(keyUnclaimedReferrer(programName, referrerAddress), newReferrerUnclaimed), IntegerEntry(keyUnclaimedReferral(programName, referralAddress), newReferralUnclaimed), IntegerEntry(keyRewardsTotal(programName), ((rewardsTotal + referrerReward) + referralReward))], unit) | |
379 | + | let checkProgram = if ((programName == "wxlock")) | |
380 | + | then true | |
381 | + | else throwErr("invalid program") | |
382 | + | if ((checkProgram == checkProgram)) | |
383 | + | then { | |
384 | + | let checkReferrerInProgram = if (contains(valueOrElse(getString(keyAllReferralPrograms(referralAddress)), ""), programName)) | |
385 | + | then true | |
386 | + | else throwErr("referrer not in program") | |
387 | + | if ((checkReferrerInProgram == checkReferrerInProgram)) | |
388 | + | then { | |
389 | + | let checkReferralInProgram = if (contains(valueOrElse(getString(keyAllReferralPrograms(referralAddress)), ""), programName)) | |
390 | + | then true | |
391 | + | else throwErr("referral not in program") | |
392 | + | if ((checkReferralInProgram == checkReferralInProgram)) | |
393 | + | then { | |
394 | + | let referrerAddress = value(getString(keyReferrer(programName, referralAddress))) | |
395 | + | let unclaimedTotalReferrer = valueOrElse(getInteger(keyUnclaimedTotalAddress(referrerAddress)), 0) | |
396 | + | let referrerUnclaimed = valueOrElse(getInteger(keyUnclaimedReferrer(programName, referrerAddress)), 0) | |
397 | + | let unclaimedTotalReferral = valueOrElse(getInteger(keyUnclaimedTotalAddress(referralAddress)), 0) | |
398 | + | let referralUnclaimed = valueOrElse(getInteger(keyUnclaimedReferral(programName, referralAddress)), 0) | |
399 | + | let rewardsTotal = valueOrElse(getInteger(keyRewardsTotal(programName)), 0) | |
400 | + | let newUnclaimedTotalReferrer = (unclaimedTotalReferrer + referrerReward) | |
401 | + | let newReferrerUnclaimed = (referrerUnclaimed + referrerReward) | |
402 | + | let newUnclaimedTotalReferral = (unclaimedTotalReferral + referralReward) | |
403 | + | let newReferralUnclaimed = (referralUnclaimed + referralReward) | |
404 | + | $Tuple2([IntegerEntry(keyUnclaimedTotalAddress(referrerAddress), newUnclaimedTotalReferrer), IntegerEntry(keyUnclaimedTotalAddress(referralAddress), newUnclaimedTotalReferral), IntegerEntry(keyUnclaimedReferrer(programName, referrerAddress), newReferrerUnclaimed), IntegerEntry(keyUnclaimedReferral(programName, referralAddress), newReferralUnclaimed), IntegerEntry(keyRewardsTotal(programName), ((rewardsTotal + referrerReward) + referralReward))], unit) | |
405 | + | } | |
406 | + | else throw("Strict value is not equal to itself.") | |
407 | + | } | |
408 | + | else throw("Strict value is not equal to itself.") | |
409 | + | } | |
410 | + | else throw("Strict value is not equal to itself.") | |
384 | 411 | } | |
385 | 412 | else throw("Strict value is not equal to itself.") | |
386 | 413 | } | |
389 | 416 | ||
390 | 417 | @Callable(i) | |
391 | 418 | func incUnclaimedWithPayment (programName,referrerAddresses) = { | |
392 | - | let callerAddress = toString(i.caller) | |
393 | - | let lastCall = valueOrElse(getInteger(keyLastIncUnclaimedWithPaymentCallBlock(callerAddress)), 0) | |
394 | - | let waitBlocks = ((lastCall - height) + 3) | |
395 | - | let lastCallCheck = if (((height - 3) > lastCall)) | |
419 | + | let checkProgram = if ((programName == "wxSpotFee")) | |
396 | 420 | then true | |
397 | - | else throwErr( | |
398 | - | if (( | |
421 | + | else throwErr("invalid program") | |
422 | + | if ((checkProgram == checkProgram)) | |
399 | 423 | then { | |
400 | - | func map (accum,next) = { | |
401 | - | let assetIdCheck = (toBase58String(value(next.assetId)) == value(getString(keyRewardAssetId(programName)))) | |
402 | - | let amountCheck = if (assetIdCheck) | |
403 | - | then true | |
404 | - | else throwErr("invalid asset id") | |
405 | - | if ((amountCheck == amountCheck)) | |
406 | - | then (accum :+ next.amount) | |
407 | - | else throw("Strict value is not equal to itself.") | |
408 | - | } | |
424 | + | let callerAddress = toString(i.caller) | |
425 | + | let lastCall = valueOrElse(getInteger(keyLastIncUnclaimedWithPaymentCallBlock(callerAddress)), 0) | |
426 | + | let waitBlocks = ((lastCall - height) + 3) | |
427 | + | let lastCallCheck = if (((height - 3) > lastCall)) | |
428 | + | then true | |
429 | + | else throwErr(makeString(["wait", toString(waitBlocks), "blocks"], " ")) | |
430 | + | if ((lastCallCheck == lastCallCheck)) | |
431 | + | then { | |
432 | + | func map (accum,next) = { | |
433 | + | let assetIdCheck = (toBase58String(value(next.assetId)) == value(getString(keyRewardAssetId(programName)))) | |
434 | + | let amountCheck = if (assetIdCheck) | |
435 | + | then true | |
436 | + | else throwErr("invalid asset id") | |
437 | + | if ((amountCheck == amountCheck)) | |
438 | + | then (accum :+ next.amount) | |
439 | + | else throw("Strict value is not equal to itself.") | |
440 | + | } | |
409 | 441 | ||
410 | - | let payments = { | |
411 | - | let $l = i.payments | |
412 | - | let $s = size($l) | |
413 | - | let $acc0 = nil | |
414 | - | func $f0_1 ($a,$i) = if (($i >= $s)) | |
415 | - | then $a | |
416 | - | else map($a, $l[$i]) | |
442 | + | let payments = { | |
443 | + | let $l = i.payments | |
444 | + | let $s = size($l) | |
445 | + | let $acc0 = nil | |
446 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
447 | + | then $a | |
448 | + | else map($a, $l[$i]) | |
417 | 449 | ||
418 | - | func $f0_2 ($a,$i) = if (($i >= $s)) | |
419 | - | then $a | |
420 | - | else throw("List size exceeds 10") | |
450 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
451 | + | then $a | |
452 | + | else throw("List size exceeds 10") | |
421 | 453 | ||
422 | - | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
423 | - | } | |
424 | - | let resAmount = { | |
425 | - | let @ = invoke(this, "incUnclaimedWithPaymentInternal", [payments, programName, referrerAddresses, 0, 0], nil) | |
426 | - | if ($isInstanceOf(@, "Int")) | |
427 | - | then @ | |
428 | - | else throw(($getType(@) + " couldn't be cast to Int")) | |
429 | - | } | |
430 | - | if ((resAmount == resAmount)) | |
431 | - | then { | |
432 | - | let treasuryContract = addressFromStringValue(value(getString(keyTreasuryContract(programName)))) | |
433 | - | let rewardAssetId = fromBase58String(value(getString(keyRewardAssetId(programName)))) | |
454 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
455 | + | } | |
456 | + | let resAmount = { | |
457 | + | let @ = invoke(this, "incUnclaimedWithPaymentInternal", [payments, programName, referrerAddresses, 0, 0], nil) | |
458 | + | if ($isInstanceOf(@, "Int")) | |
459 | + | then @ | |
460 | + | else throw(($getType(@) + " couldn't be cast to Int")) | |
461 | + | } | |
462 | + | if ((resAmount == resAmount)) | |
463 | + | then { | |
464 | + | let treasuryContract = addressFromStringValue(value(getString(keyTreasuryContract(programName)))) | |
465 | + | let rewardAssetId = fromBase58String(value(getString(keyRewardAssetId(programName)))) | |
434 | 466 | [ScriptTransfer(treasuryContract, resAmount, rewardAssetId), IntegerEntry(keyLastIncUnclaimedWithPaymentCallBlock(callerAddress), height)] | |
467 | + | } | |
468 | + | else throw("Strict value is not equal to itself.") | |
435 | 469 | } | |
436 | 470 | else throw("Strict value is not equal to itself.") | |
437 | 471 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let separator = "__" | |
5 | 5 | ||
6 | 6 | func keyWxAssetId () = makeString(["%s", "wxAssetId"], separator) | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | let keyBackendPublicKey = makeString(["%s", "backendPublicKey"], separator) | |
10 | 10 | ||
11 | 11 | func keyExistsReferrerToReferral (programName,referrerAddress,referralAddress) = makeString(["%s%s%s%s", "existsReferrerToReferral", programName, referrerAddress, referralAddress], separator) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func keyClaimedReferrer (programName,claimerAddress) = makeString(["%s%s%s", "claimedReferrer", programName, claimerAddress], separator) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func keyClaimedReferral (programName,claimerAddress) = makeString(["%s%s%s", "claimedReferral", programName, claimerAddress], separator) | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func keyUnclaimedReferrer (programName,claimerAddress) = makeString(["%s%s%s", "unclaimedReferrer", programName, claimerAddress], separator) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func keyUnclaimedReferral (programName,claimerAddress) = makeString(["%s%s%s", "unclaimedReferral", programName, claimerAddress], separator) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func keyReferrer (programName,referralAddress) = makeString(["%s%s%s", "referrer", programName, referralAddress], separator) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func keyProgramName (programName) = makeString(["%s%s", "programName", programName], separator) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func keyTotalReferralCount (programName,referrerAddress) = makeString(["%s%s%s", "totalReferralCount", programName, referrerAddress], separator) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func keyActiveReferralCount (programName,referrerAddress) = makeString(["%s%s%s", "activeReferralCount", programName, referrerAddress], separator) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func keyIsReferralActive (programName,referralAddress) = makeString(["%s%s%s", "activeReferral", programName, referralAddress], separator) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func keyClaimedTotalAddress (address) = makeString(["%s%s", "claimedTotalAddress", address], separator) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func keyUnclaimedTotalAddress (address) = makeString(["%s%s", "unclaimedTotalAddress", address], separator) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func keyClaimedTotal (programName) = makeString(["%s%s", "claimedTotal", programName], separator) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func keyRewardsTotal (programName) = makeString(["%s%s", "rewardsTotal", programName], separator) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func keyRewardAssetId (programName) = makeString(["%s%s", "rewardAssetId", programName], separator) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func keyTreasuryContract (programName) = makeString(["%s%s", "treasuryContract", programName], separator) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func keyImplementationContract (programName) = makeString(["%s%s", "implementationContract", programName], separator) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func keyAllReferralPrograms (address) = makeString(["%s%s", "allReferralPrograms", address], separator) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func keyLastIncUnclaimedWithPaymentCallBlock (address) = makeString(["%s%s", "lastIncUnclaimedWithPaymentCallBlock", address], separator) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func keyClaimHistory (programName,userAddress,transactionId,type) = makeString(["%s%s%s%s%s", "history", type, programName, userAddress, transactionId], separator) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func formatClaimHistory (amount) = makeString(["%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(amount)], separator) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func throwErr (msg) = throw(makeString(["referral.ride:", msg], " ")) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
84 | 84 | case s: String => | |
85 | 85 | fromBase58String(s) | |
86 | 86 | case _: Unit => | |
87 | 87 | unit | |
88 | 88 | case _ => | |
89 | 89 | throw("Match error") | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
94 | 94 | case s: String => | |
95 | 95 | fromBase58String(s) | |
96 | 96 | case _: Unit => | |
97 | 97 | unit | |
98 | 98 | case _ => | |
99 | 99 | throw("Match error") | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func mustManager (i) = { | |
104 | 104 | let pd = throwErr("permission denied") | |
105 | 105 | match managerPublicKeyOrUnit() { | |
106 | 106 | case pk: ByteVector => | |
107 | 107 | if ((i.callerPublicKey == pk)) | |
108 | 108 | then true | |
109 | 109 | else pd | |
110 | 110 | case _: Unit => | |
111 | 111 | if ((i.caller == this)) | |
112 | 112 | then true | |
113 | 113 | else pd | |
114 | 114 | case _ => | |
115 | 115 | throw("Match error") | |
116 | 116 | } | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | @Callable(i) | |
121 | 121 | func claimInternal (programName,claimerAddress,isImplementationContract) = { | |
122 | 122 | let checkProgramExists = if (valueOrElse(getBoolean(keyProgramName(programName)), false)) | |
123 | 123 | then true | |
124 | 124 | else throwErr("program does not exist") | |
125 | 125 | if ((checkProgramExists == checkProgramExists)) | |
126 | 126 | then { | |
127 | 127 | let $t042735210 = if (isImplementationContract) | |
128 | 128 | then $Tuple5(valueOrElse(getInteger(keyClaimedReferral(programName, claimerAddress)), 0), valueOrElse(getInteger(keyUnclaimedReferral(programName, claimerAddress)), 0), keyClaimedReferral(programName, claimerAddress), keyUnclaimedReferral(programName, claimerAddress), keyClaimHistory(programName, claimerAddress, toBase58String(i.transactionId), "claimReferral")) | |
129 | 129 | else $Tuple5(valueOrElse(getInteger(keyClaimedReferrer(programName, claimerAddress)), 0), valueOrElse(getInteger(keyUnclaimedReferrer(programName, claimerAddress)), 0), keyClaimedReferrer(programName, claimerAddress), keyUnclaimedReferrer(programName, claimerAddress), keyClaimHistory(programName, claimerAddress, toBase58String(i.transactionId), "claimReferrer")) | |
130 | 130 | let claimerClaimed = $t042735210._1 | |
131 | 131 | let claimerUnclaimed = $t042735210._2 | |
132 | 132 | let keyClaimed = $t042735210._3 | |
133 | 133 | let keyUnclaimed = $t042735210._4 | |
134 | 134 | let claimHistoryKey = $t042735210._5 | |
135 | 135 | let claimedTotal = valueOrElse(getInteger(keyClaimedTotal(programName)), 0) | |
136 | 136 | let treasuryContract = value(addressFromString(value(getString(keyTreasuryContract(programName))))) | |
137 | 137 | let rewardAssetId = fromBase58String(value(getString(keyRewardAssetId(programName)))) | |
138 | 138 | let claimedTotalAddress = valueOrElse(getInteger(keyClaimedTotalAddress(claimerAddress)), 0) | |
139 | 139 | let unclaimedTotalAddress = valueOrElse(getInteger(keyUnclaimedTotalAddress(claimerAddress)), 0) | |
140 | 140 | if (if (isImplementationContract) | |
141 | 141 | then (claimerUnclaimed == 0) | |
142 | 142 | else false) | |
143 | 143 | then $Tuple2(nil, 0) | |
144 | 144 | else { | |
145 | 145 | let checkCanClaim = if ((claimerUnclaimed > 0)) | |
146 | 146 | then true | |
147 | 147 | else throwErr("nothing to claim") | |
148 | 148 | if ((checkCanClaim == checkCanClaim)) | |
149 | 149 | then { | |
150 | 150 | let newClaimerClaimed = (claimerClaimed + claimerUnclaimed) | |
151 | 151 | let newClaimedTotal = (claimedTotal + claimerUnclaimed) | |
152 | 152 | let newClaimedTotalAddress = (claimedTotalAddress + claimerUnclaimed) | |
153 | 153 | let newUnclaimedTotalAddress = (unclaimedTotalAddress - claimerUnclaimed) | |
154 | 154 | let balanceBefore = value(assetBalance(this, rewardAssetId)) | |
155 | 155 | if ((balanceBefore == balanceBefore)) | |
156 | 156 | then { | |
157 | 157 | let res = invoke(treasuryContract, "withdrawReferralReward", [claimerUnclaimed], nil) | |
158 | 158 | if ((res == res)) | |
159 | 159 | then { | |
160 | 160 | let balanceAfter = value(assetBalance(this, rewardAssetId)) | |
161 | 161 | if ((balanceAfter == balanceAfter)) | |
162 | 162 | then { | |
163 | 163 | let balanceDiff = (balanceAfter - balanceBefore) | |
164 | 164 | if ((balanceDiff == balanceDiff)) | |
165 | 165 | then { | |
166 | 166 | let checkBalance = if ((balanceDiff == claimerUnclaimed)) | |
167 | 167 | then true | |
168 | 168 | else throwErr("insufficient balance on referral contract") | |
169 | 169 | if ((checkBalance == checkBalance)) | |
170 | 170 | then $Tuple2([IntegerEntry(keyClaimed, newClaimerClaimed), IntegerEntry(keyUnclaimed, 0), IntegerEntry(keyClaimedTotal(programName), newClaimedTotal), IntegerEntry(keyClaimedTotalAddress(claimerAddress), newClaimedTotalAddress), IntegerEntry(keyUnclaimedTotalAddress(claimerAddress), newUnclaimedTotalAddress), ScriptTransfer(addressFromStringValue(claimerAddress), claimerUnclaimed, rewardAssetId), StringEntry(claimHistoryKey, formatClaimHistory(claimerUnclaimed))], claimerUnclaimed) | |
171 | 171 | else throw("Strict value is not equal to itself.") | |
172 | 172 | } | |
173 | 173 | else throw("Strict value is not equal to itself.") | |
174 | 174 | } | |
175 | 175 | else throw("Strict value is not equal to itself.") | |
176 | 176 | } | |
177 | 177 | else throw("Strict value is not equal to itself.") | |
178 | 178 | } | |
179 | 179 | else throw("Strict value is not equal to itself.") | |
180 | 180 | } | |
181 | 181 | else throw("Strict value is not equal to itself.") | |
182 | 182 | } | |
183 | 183 | } | |
184 | 184 | else throw("Strict value is not equal to itself.") | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | ||
189 | 189 | @Callable(i) | |
190 | 190 | func claimBulkInternal (claimer,programNames,currentIter) = { | |
191 | 191 | let checkCaller = if ((i.caller == this)) | |
192 | 192 | then true | |
193 | 193 | else throwErr("permission denied") | |
194 | 194 | if ((checkCaller == checkCaller)) | |
195 | 195 | then if ((currentIter == size(programNames))) | |
196 | 196 | then nil | |
197 | 197 | else { | |
198 | 198 | let programName = programNames[currentIter] | |
199 | 199 | let programUnclaimed = valueOrElse(getInteger(keyUnclaimedReferrer(programName, claimer)), 0) | |
200 | 200 | let claimHistoryKey = keyClaimHistory(programName, claimer, toBase58String(i.transactionId), "claimBulk") | |
201 | 201 | let claimBulkInternal = invoke(this, "claimBulkInternal", [claimer, programNames, (currentIter + 1)], nil) | |
202 | 202 | if ((claimBulkInternal == claimBulkInternal)) | |
203 | 203 | then { | |
204 | 204 | let unclaimedReferrer = valueOrElse(getInteger(keyUnclaimedReferrer(programName, claimer)), 0) | |
205 | 205 | let claim = if ((unclaimedReferrer > 0)) | |
206 | 206 | then invoke(this, "claimInternal", [programName, claimer, false], nil) | |
207 | 207 | else unit | |
208 | 208 | if ((claim == claim)) | |
209 | 209 | then $Tuple2(nil, [claimBulkInternal, claim]) | |
210 | 210 | else throw("Strict value is not equal to itself.") | |
211 | 211 | } | |
212 | 212 | else throw("Strict value is not equal to itself.") | |
213 | 213 | } | |
214 | 214 | else throw("Strict value is not equal to itself.") | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | ||
219 | 219 | @Callable(i) | |
220 | 220 | func incUnclaimedWithPaymentInternal (paymentAmounts,programName,referrerAddresses,currentIter,resAmount) = { | |
221 | 221 | let checkCaller = if ((i.caller == this)) | |
222 | 222 | then true | |
223 | 223 | else throwErr("permission denied") | |
224 | 224 | if ((checkCaller == checkCaller)) | |
225 | 225 | then { | |
226 | 226 | let argsComparison = (size(paymentAmounts) == size(referrerAddresses)) | |
227 | 227 | let check = if (argsComparison) | |
228 | 228 | then true | |
229 | 229 | else throwErr("lists in args must be same size") | |
230 | 230 | if ((check == check)) | |
231 | 231 | then if ((currentIter == size(paymentAmounts))) | |
232 | 232 | then $Tuple2(nil, resAmount) | |
233 | 233 | else { | |
234 | 234 | let referrerAddress = referrerAddresses[currentIter] | |
235 | 235 | let unclaimedTotalAddress = valueOrElse(getInteger(keyUnclaimedTotalAddress(referrerAddress)), 0) | |
236 | 236 | let referrerUnclaimed = valueOrElse(getInteger(keyUnclaimedReferrer(programName, referrerAddress)), 0) | |
237 | 237 | let rewardsTotal = valueOrElse(getInteger(keyRewardsTotal(programName)), 0) | |
238 | 238 | let newUnclaimedTotalAddress = (unclaimedTotalAddress + paymentAmounts[currentIter]) | |
239 | 239 | let newReferrerUnclaimed = (referrerUnclaimed + paymentAmounts[currentIter]) | |
240 | 240 | let newResAmount = (resAmount + paymentAmounts[currentIter]) | |
241 | 241 | let inv = invoke(this, "incUnclaimedWithPaymentInternal", [paymentAmounts, programName, referrerAddresses, (currentIter + 1), newResAmount], nil) | |
242 | 242 | if ((inv == inv)) | |
243 | - | then $Tuple2([IntegerEntry(keyUnclaimedTotalAddress(referrerAddress), newUnclaimedTotalAddress), IntegerEntry(keyUnclaimedReferrer(programName, referrerAddress), newReferrerUnclaimed), IntegerEntry(keyRewardsTotal(programName), (rewardsTotal + paymentAmounts[currentIter]))], inv) | |
243 | + | then { | |
244 | + | let allReferrerPrograms = valueOrElse(getString(keyAllReferralPrograms(referrerAddress)), "") | |
245 | + | let newAllReferrerPrograms = if ((allReferrerPrograms == "")) | |
246 | + | then programName | |
247 | + | else makeString([allReferrerPrograms, programName], separator) | |
248 | + | $Tuple2([IntegerEntry(keyUnclaimedTotalAddress(referrerAddress), newUnclaimedTotalAddress), IntegerEntry(keyUnclaimedReferrer(programName, referrerAddress), newReferrerUnclaimed), IntegerEntry(keyRewardsTotal(programName), (rewardsTotal + paymentAmounts[currentIter])), StringEntry(keyAllReferralPrograms(referrerAddress), newAllReferrerPrograms)], inv) | |
249 | + | } | |
244 | 250 | else throw("Strict value is not equal to itself.") | |
245 | 251 | } | |
246 | 252 | else throw("Strict value is not equal to itself.") | |
247 | 253 | } | |
248 | 254 | else throw("Strict value is not equal to itself.") | |
249 | 255 | } | |
250 | 256 | ||
251 | 257 | ||
252 | 258 | ||
253 | 259 | @Callable(i) | |
254 | 260 | func createReferralProgram (programName,treasuryContract,implementationContract,rewardAssetId) = { | |
255 | 261 | let checkCaller = mustManager(i) | |
256 | 262 | if ((checkCaller == checkCaller)) | |
257 | 263 | then { | |
258 | 264 | let checkProgramName = if ((getBoolean(keyProgramName(programName)) == unit)) | |
259 | 265 | then true | |
260 | 266 | else throwErr("program name already exists") | |
261 | 267 | if ((checkProgramName == checkProgramName)) | |
262 | 268 | then { | |
263 | 269 | let programNameIsValid = if (!(contains(programName, separator))) | |
264 | 270 | then !(contains(programName, " ")) | |
265 | 271 | else false | |
266 | 272 | let checkProgramExists = if (programNameIsValid) | |
267 | 273 | then true | |
268 | 274 | else throwErr("invalid program name") | |
269 | 275 | if ((checkProgramExists == checkProgramExists)) | |
270 | 276 | then { | |
271 | 277 | let checkRewardAsset = if ((assetInfo(fromBase58String(rewardAssetId)) != unit)) | |
272 | 278 | then true | |
273 | 279 | else throwErr("invalid reward asset id") | |
274 | 280 | if ((checkRewardAsset == checkRewardAsset)) | |
275 | 281 | then $Tuple2([BooleanEntry(keyProgramName(programName), true), StringEntry(keyTreasuryContract(programName), treasuryContract), StringEntry(keyImplementationContract(programName), implementationContract), StringEntry(keyRewardAssetId(programName), rewardAssetId), IntegerEntry(keyRewardsTotal(programName), 0)], unit) | |
276 | 282 | else throw("Strict value is not equal to itself.") | |
277 | 283 | } | |
278 | 284 | else throw("Strict value is not equal to itself.") | |
279 | 285 | } | |
280 | 286 | else throw("Strict value is not equal to itself.") | |
281 | 287 | } | |
282 | 288 | else throw("Strict value is not equal to itself.") | |
283 | 289 | } | |
284 | 290 | ||
285 | 291 | ||
286 | 292 | ||
287 | 293 | @Callable(i) | |
288 | 294 | func createPair (programName,referrerAddress,referralAddress,signature) = { | |
289 | 295 | let checkProgramExists = if (valueOrElse(getBoolean(keyProgramName(programName)), false)) | |
290 | 296 | then true | |
291 | 297 | else throwErr("program does not exist") | |
292 | 298 | if ((checkProgramExists == checkProgramExists)) | |
293 | 299 | then { | |
294 | 300 | let pairReferrerToReferralExistCheck = if ((getBoolean(keyExistsReferrerToReferral(programName, referrerAddress, referralAddress)) == unit)) | |
295 | 301 | then true | |
296 | 302 | else throwErr("pair already exists") | |
297 | 303 | if ((pairReferrerToReferralExistCheck == pairReferrerToReferralExistCheck)) | |
298 | 304 | then { | |
299 | 305 | let noRefSelf = if ((referrerAddress != referralAddress)) | |
300 | 306 | then true | |
301 | 307 | else throwErr("cannot refer to self") | |
302 | 308 | if ((noRefSelf == noRefSelf)) | |
303 | 309 | then { | |
304 | 310 | let pair = toBytes(makeString([programName, referrerAddress, referralAddress], ":")) | |
305 | 311 | let backendPublicKey = fromBase58String(value(getString(keyBackendPublicKey))) | |
306 | 312 | let validateSignature = if (sigVerify(pair, signature, backendPublicKey)) | |
307 | 313 | then true | |
308 | 314 | else throwErr("bad signature") | |
309 | 315 | if ((validateSignature == validateSignature)) | |
310 | 316 | then { | |
311 | 317 | let totalReferralCount = valueOrElse(getInteger(keyTotalReferralCount(programName, referrerAddress)), 0) | |
312 | 318 | let newTotalReferralCount = (totalReferralCount + 1) | |
313 | 319 | let allReferrerPrograms = valueOrElse(getString(keyAllReferralPrograms(referrerAddress)), "") | |
314 | 320 | let newAllReferrerPrograms = if ((allReferrerPrograms == "")) | |
315 | 321 | then programName | |
316 | 322 | else makeString([allReferrerPrograms, programName], separator) | |
317 | 323 | let allReferralPrograms = valueOrElse(getString(keyAllReferralPrograms(referralAddress)), "") | |
318 | 324 | let newAllReferralPrograms = if ((allReferralPrograms == "")) | |
319 | 325 | then programName | |
320 | 326 | else makeString([allReferralPrograms, programName], separator) | |
321 | 327 | $Tuple2([BooleanEntry(keyExistsReferrerToReferral(programName, referrerAddress, referralAddress), true), IntegerEntry(keyTotalReferralCount(programName, referrerAddress), newTotalReferralCount), StringEntry(keyReferrer(programName, referralAddress), referrerAddress), StringEntry(keyAllReferralPrograms(referrerAddress), newAllReferrerPrograms), StringEntry(keyAllReferralPrograms(referralAddress), newAllReferralPrograms)], unit) | |
322 | 328 | } | |
323 | 329 | else throw("Strict value is not equal to itself.") | |
324 | 330 | } | |
325 | 331 | else throw("Strict value is not equal to itself.") | |
326 | 332 | } | |
327 | 333 | else throw("Strict value is not equal to itself.") | |
328 | 334 | } | |
329 | 335 | else throw("Strict value is not equal to itself.") | |
330 | 336 | } | |
331 | 337 | ||
332 | 338 | ||
333 | 339 | ||
334 | 340 | @Callable(i) | |
335 | 341 | func updateReferralActivity (programName,referralAddress,isActive) = { | |
336 | 342 | let implementationContract = value(getString(keyImplementationContract(programName))) | |
337 | 343 | let isReferralActive = (getBoolean(keyIsReferralActive(programName, referralAddress)) != unit) | |
338 | 344 | let referrerAddress = value(getString(keyReferrer(programName, referralAddress))) | |
339 | 345 | let checkCaller = if ((toString(i.caller) == implementationContract)) | |
340 | 346 | then true | |
341 | 347 | else throwErr("permission denied") | |
342 | 348 | if ((checkCaller == checkCaller)) | |
343 | 349 | then { | |
344 | 350 | let update = if ((isReferralActive == isActive)) | |
345 | 351 | then $Tuple2(nil, unit) | |
346 | 352 | else { | |
347 | 353 | let update = if ((isActive == true)) | |
348 | 354 | then { | |
349 | 355 | let newActiveReferralCount = (valueOrElse(getInteger(keyActiveReferralCount(programName, referrerAddress)), 0) + 1) | |
350 | 356 | $Tuple2([BooleanEntry(keyIsReferralActive(programName, referralAddress), true), IntegerEntry(keyActiveReferralCount(programName, referrerAddress), newActiveReferralCount)], unit) | |
351 | 357 | } | |
352 | 358 | else { | |
353 | 359 | let newActiveReferralCount = (valueOrElse(getInteger(keyActiveReferralCount(programName, referrerAddress)), 0) - 1) | |
354 | 360 | $Tuple2([DeleteEntry(keyIsReferralActive(programName, referralAddress)), IntegerEntry(keyActiveReferralCount(programName, referrerAddress), newActiveReferralCount)], unit) | |
355 | 361 | } | |
356 | 362 | update | |
357 | 363 | } | |
358 | 364 | update | |
359 | 365 | } | |
360 | 366 | else throw("Strict value is not equal to itself.") | |
361 | 367 | } | |
362 | 368 | ||
363 | 369 | ||
364 | 370 | ||
365 | 371 | @Callable(i) | |
366 | 372 | func incUnclaimed (programName,referralAddress,referrerReward,referralReward) = { | |
367 | 373 | let implementationContract = value(getString(keyImplementationContract(programName))) | |
368 | 374 | let checkCaller = if ((toString(i.caller) == implementationContract)) | |
369 | 375 | then true | |
370 | 376 | else throwErr("permission denied") | |
371 | 377 | if ((checkCaller == checkCaller)) | |
372 | 378 | then { | |
373 | - | let referrerAddress = value(getString(keyReferrer(programName, referralAddress))) | |
374 | - | let unclaimedTotalReferrer = valueOrElse(getInteger(keyUnclaimedTotalAddress(referrerAddress)), 0) | |
375 | - | let referrerUnclaimed = valueOrElse(getInteger(keyUnclaimedReferrer(programName, referrerAddress)), 0) | |
376 | - | let unclaimedTotalReferral = valueOrElse(getInteger(keyUnclaimedTotalAddress(referralAddress)), 0) | |
377 | - | let referralUnclaimed = valueOrElse(getInteger(keyUnclaimedReferral(programName, referralAddress)), 0) | |
378 | - | let rewardsTotal = valueOrElse(getInteger(keyRewardsTotal(programName)), 0) | |
379 | - | let newUnclaimedTotalReferrer = (unclaimedTotalReferrer + referrerReward) | |
380 | - | let newReferrerUnclaimed = (referrerUnclaimed + referrerReward) | |
381 | - | let newUnclaimedTotalReferral = (unclaimedTotalReferral + referralReward) | |
382 | - | let newReferralUnclaimed = (referralUnclaimed + referralReward) | |
383 | - | $Tuple2([IntegerEntry(keyUnclaimedTotalAddress(referrerAddress), newUnclaimedTotalReferrer), IntegerEntry(keyUnclaimedTotalAddress(referralAddress), newUnclaimedTotalReferral), IntegerEntry(keyUnclaimedReferrer(programName, referrerAddress), newReferrerUnclaimed), IntegerEntry(keyUnclaimedReferral(programName, referralAddress), newReferralUnclaimed), IntegerEntry(keyRewardsTotal(programName), ((rewardsTotal + referrerReward) + referralReward))], unit) | |
379 | + | let checkProgram = if ((programName == "wxlock")) | |
380 | + | then true | |
381 | + | else throwErr("invalid program") | |
382 | + | if ((checkProgram == checkProgram)) | |
383 | + | then { | |
384 | + | let checkReferrerInProgram = if (contains(valueOrElse(getString(keyAllReferralPrograms(referralAddress)), ""), programName)) | |
385 | + | then true | |
386 | + | else throwErr("referrer not in program") | |
387 | + | if ((checkReferrerInProgram == checkReferrerInProgram)) | |
388 | + | then { | |
389 | + | let checkReferralInProgram = if (contains(valueOrElse(getString(keyAllReferralPrograms(referralAddress)), ""), programName)) | |
390 | + | then true | |
391 | + | else throwErr("referral not in program") | |
392 | + | if ((checkReferralInProgram == checkReferralInProgram)) | |
393 | + | then { | |
394 | + | let referrerAddress = value(getString(keyReferrer(programName, referralAddress))) | |
395 | + | let unclaimedTotalReferrer = valueOrElse(getInteger(keyUnclaimedTotalAddress(referrerAddress)), 0) | |
396 | + | let referrerUnclaimed = valueOrElse(getInteger(keyUnclaimedReferrer(programName, referrerAddress)), 0) | |
397 | + | let unclaimedTotalReferral = valueOrElse(getInteger(keyUnclaimedTotalAddress(referralAddress)), 0) | |
398 | + | let referralUnclaimed = valueOrElse(getInteger(keyUnclaimedReferral(programName, referralAddress)), 0) | |
399 | + | let rewardsTotal = valueOrElse(getInteger(keyRewardsTotal(programName)), 0) | |
400 | + | let newUnclaimedTotalReferrer = (unclaimedTotalReferrer + referrerReward) | |
401 | + | let newReferrerUnclaimed = (referrerUnclaimed + referrerReward) | |
402 | + | let newUnclaimedTotalReferral = (unclaimedTotalReferral + referralReward) | |
403 | + | let newReferralUnclaimed = (referralUnclaimed + referralReward) | |
404 | + | $Tuple2([IntegerEntry(keyUnclaimedTotalAddress(referrerAddress), newUnclaimedTotalReferrer), IntegerEntry(keyUnclaimedTotalAddress(referralAddress), newUnclaimedTotalReferral), IntegerEntry(keyUnclaimedReferrer(programName, referrerAddress), newReferrerUnclaimed), IntegerEntry(keyUnclaimedReferral(programName, referralAddress), newReferralUnclaimed), IntegerEntry(keyRewardsTotal(programName), ((rewardsTotal + referrerReward) + referralReward))], unit) | |
405 | + | } | |
406 | + | else throw("Strict value is not equal to itself.") | |
407 | + | } | |
408 | + | else throw("Strict value is not equal to itself.") | |
409 | + | } | |
410 | + | else throw("Strict value is not equal to itself.") | |
384 | 411 | } | |
385 | 412 | else throw("Strict value is not equal to itself.") | |
386 | 413 | } | |
387 | 414 | ||
388 | 415 | ||
389 | 416 | ||
390 | 417 | @Callable(i) | |
391 | 418 | func incUnclaimedWithPayment (programName,referrerAddresses) = { | |
392 | - | let callerAddress = toString(i.caller) | |
393 | - | let lastCall = valueOrElse(getInteger(keyLastIncUnclaimedWithPaymentCallBlock(callerAddress)), 0) | |
394 | - | let waitBlocks = ((lastCall - height) + 3) | |
395 | - | let lastCallCheck = if (((height - 3) > lastCall)) | |
419 | + | let checkProgram = if ((programName == "wxSpotFee")) | |
396 | 420 | then true | |
397 | - | else throwErr( | |
398 | - | if (( | |
421 | + | else throwErr("invalid program") | |
422 | + | if ((checkProgram == checkProgram)) | |
399 | 423 | then { | |
400 | - | func map (accum,next) = { | |
401 | - | let assetIdCheck = (toBase58String(value(next.assetId)) == value(getString(keyRewardAssetId(programName)))) | |
402 | - | let amountCheck = if (assetIdCheck) | |
403 | - | then true | |
404 | - | else throwErr("invalid asset id") | |
405 | - | if ((amountCheck == amountCheck)) | |
406 | - | then (accum :+ next.amount) | |
407 | - | else throw("Strict value is not equal to itself.") | |
408 | - | } | |
424 | + | let callerAddress = toString(i.caller) | |
425 | + | let lastCall = valueOrElse(getInteger(keyLastIncUnclaimedWithPaymentCallBlock(callerAddress)), 0) | |
426 | + | let waitBlocks = ((lastCall - height) + 3) | |
427 | + | let lastCallCheck = if (((height - 3) > lastCall)) | |
428 | + | then true | |
429 | + | else throwErr(makeString(["wait", toString(waitBlocks), "blocks"], " ")) | |
430 | + | if ((lastCallCheck == lastCallCheck)) | |
431 | + | then { | |
432 | + | func map (accum,next) = { | |
433 | + | let assetIdCheck = (toBase58String(value(next.assetId)) == value(getString(keyRewardAssetId(programName)))) | |
434 | + | let amountCheck = if (assetIdCheck) | |
435 | + | then true | |
436 | + | else throwErr("invalid asset id") | |
437 | + | if ((amountCheck == amountCheck)) | |
438 | + | then (accum :+ next.amount) | |
439 | + | else throw("Strict value is not equal to itself.") | |
440 | + | } | |
409 | 441 | ||
410 | - | let payments = { | |
411 | - | let $l = i.payments | |
412 | - | let $s = size($l) | |
413 | - | let $acc0 = nil | |
414 | - | func $f0_1 ($a,$i) = if (($i >= $s)) | |
415 | - | then $a | |
416 | - | else map($a, $l[$i]) | |
442 | + | let payments = { | |
443 | + | let $l = i.payments | |
444 | + | let $s = size($l) | |
445 | + | let $acc0 = nil | |
446 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
447 | + | then $a | |
448 | + | else map($a, $l[$i]) | |
417 | 449 | ||
418 | - | func $f0_2 ($a,$i) = if (($i >= $s)) | |
419 | - | then $a | |
420 | - | else throw("List size exceeds 10") | |
450 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
451 | + | then $a | |
452 | + | else throw("List size exceeds 10") | |
421 | 453 | ||
422 | - | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
423 | - | } | |
424 | - | let resAmount = { | |
425 | - | let @ = invoke(this, "incUnclaimedWithPaymentInternal", [payments, programName, referrerAddresses, 0, 0], nil) | |
426 | - | if ($isInstanceOf(@, "Int")) | |
427 | - | then @ | |
428 | - | else throw(($getType(@) + " couldn't be cast to Int")) | |
429 | - | } | |
430 | - | if ((resAmount == resAmount)) | |
431 | - | then { | |
432 | - | let treasuryContract = addressFromStringValue(value(getString(keyTreasuryContract(programName)))) | |
433 | - | let rewardAssetId = fromBase58String(value(getString(keyRewardAssetId(programName)))) | |
454 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
455 | + | } | |
456 | + | let resAmount = { | |
457 | + | let @ = invoke(this, "incUnclaimedWithPaymentInternal", [payments, programName, referrerAddresses, 0, 0], nil) | |
458 | + | if ($isInstanceOf(@, "Int")) | |
459 | + | then @ | |
460 | + | else throw(($getType(@) + " couldn't be cast to Int")) | |
461 | + | } | |
462 | + | if ((resAmount == resAmount)) | |
463 | + | then { | |
464 | + | let treasuryContract = addressFromStringValue(value(getString(keyTreasuryContract(programName)))) | |
465 | + | let rewardAssetId = fromBase58String(value(getString(keyRewardAssetId(programName)))) | |
434 | 466 | [ScriptTransfer(treasuryContract, resAmount, rewardAssetId), IntegerEntry(keyLastIncUnclaimedWithPaymentCallBlock(callerAddress), height)] | |
467 | + | } | |
468 | + | else throw("Strict value is not equal to itself.") | |
435 | 469 | } | |
436 | 470 | else throw("Strict value is not equal to itself.") | |
437 | 471 | } | |
438 | 472 | else throw("Strict value is not equal to itself.") | |
439 | 473 | } | |
440 | 474 | ||
441 | 475 | ||
442 | 476 | ||
443 | 477 | @Callable(i) | |
444 | 478 | func claim (programName) = { | |
445 | 479 | let checkProgramExists = if (valueOrElse(getBoolean(keyProgramName(programName)), false)) | |
446 | 480 | then true | |
447 | 481 | else throwErr("program does not exist") | |
448 | 482 | if ((checkProgramExists == checkProgramExists)) | |
449 | 483 | then { | |
450 | 484 | let isImplementationContract = (toString(i.caller) == value(getString(keyImplementationContract(programName)))) | |
451 | 485 | let claimerAddress = if (isImplementationContract) | |
452 | 486 | then toString(i.originCaller) | |
453 | 487 | else toString(i.caller) | |
454 | 488 | let claimInternal = invoke(this, "claimInternal", [programName, claimerAddress, isImplementationContract], nil) | |
455 | 489 | if ((claimInternal == claimInternal)) | |
456 | 490 | then $Tuple2(nil, claimInternal) | |
457 | 491 | else throw("Strict value is not equal to itself.") | |
458 | 492 | } | |
459 | 493 | else throw("Strict value is not equal to itself.") | |
460 | 494 | } | |
461 | 495 | ||
462 | 496 | ||
463 | 497 | ||
464 | 498 | @Callable(i) | |
465 | 499 | func claimBulk () = { | |
466 | 500 | let callerAddress = toString(i.caller) | |
467 | 501 | let callerProgramsStr = getString(keyAllReferralPrograms(toString(i.caller))) | |
468 | 502 | let programsExists = if (isDefined(callerProgramsStr)) | |
469 | 503 | then true | |
470 | 504 | else throwErr("no referral programs") | |
471 | 505 | if ((programsExists == programsExists)) | |
472 | 506 | then { | |
473 | 507 | let callerPrograms = split(value(callerProgramsStr), "__") | |
474 | 508 | let bulkClaim = invoke(this, "claimBulkInternal", [callerAddress, callerPrograms, 0], nil) | |
475 | 509 | if ((bulkClaim == bulkClaim)) | |
476 | 510 | then $Tuple2(nil, bulkClaim) | |
477 | 511 | else throw("Strict value is not equal to itself.") | |
478 | 512 | } | |
479 | 513 | else throw("Strict value is not equal to itself.") | |
480 | 514 | } | |
481 | 515 | ||
482 | 516 | ||
483 | 517 | ||
484 | 518 | @Callable(i) | |
485 | 519 | func claimREADONLY (programName,userAddress) = { | |
486 | 520 | let claimerClaimed = valueOrElse(getInteger(keyClaimedReferrer(programName, userAddress)), 0) | |
487 | 521 | let claimerUnclaimed = valueOrElse(getInteger(keyUnclaimedReferrer(programName, userAddress)), 0) | |
488 | 522 | $Tuple2(nil, [claimerUnclaimed, claimerClaimed]) | |
489 | 523 | } | |
490 | 524 | ||
491 | 525 | ||
492 | 526 | ||
493 | 527 | @Callable(i) | |
494 | 528 | func claimBulkREADONLY (claimer) = { | |
495 | 529 | let claimedTotalAddress = valueOrElse(getInteger(keyClaimedTotalAddress(claimer)), 0) | |
496 | 530 | let unclaimedTotalAddress = valueOrElse(getInteger(keyUnclaimedTotalAddress(claimer)), 0) | |
497 | 531 | $Tuple2(nil, [unclaimedTotalAddress, claimedTotalAddress]) | |
498 | 532 | } | |
499 | 533 | ||
500 | 534 | ||
501 | 535 | ||
502 | 536 | @Callable(i) | |
503 | 537 | func setTotalKeys (programName,address) = { | |
504 | 538 | let claimedReferrer = valueOrElse(getInteger(keyClaimedReferrer(programName, address)), 0) | |
505 | 539 | let claimedReferral = valueOrElse(getInteger(keyClaimedReferral(programName, address)), 0) | |
506 | 540 | let unclaimedReferrer = valueOrElse(getInteger(keyUnclaimedReferrer(programName, address)), 0) | |
507 | 541 | let unclaimedReferral = valueOrElse(getInteger(keyUnclaimedReferral(programName, address)), 0) | |
508 | 542 | let claimedTotalAddress = (claimedReferrer + claimedReferral) | |
509 | 543 | let unclaimedTotalAddress = (unclaimedReferrer + unclaimedReferral) | |
510 | 544 | $Tuple2([IntegerEntry(keyClaimedTotalAddress(address), claimedTotalAddress), IntegerEntry(keyUnclaimedTotalAddress(address), unclaimedTotalAddress)], unit) | |
511 | 545 | } | |
512 | 546 | ||
513 | 547 | ||
514 | 548 | ||
515 | 549 | @Callable(i) | |
516 | 550 | func setManager (pendingManagerPublicKey) = { | |
517 | 551 | let checkCaller = mustManager(i) | |
518 | 552 | if ((checkCaller == checkCaller)) | |
519 | 553 | then { | |
520 | 554 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
521 | 555 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
522 | 556 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
523 | 557 | else throw("Strict value is not equal to itself.") | |
524 | 558 | } | |
525 | 559 | else throw("Strict value is not equal to itself.") | |
526 | 560 | } | |
527 | 561 | ||
528 | 562 | ||
529 | 563 | ||
530 | 564 | @Callable(i) | |
531 | 565 | func confirmManager () = { | |
532 | 566 | let pm = pendingManagerPublicKeyOrUnit() | |
533 | 567 | let hasPM = if (isDefined(pm)) | |
534 | 568 | then true | |
535 | 569 | else throwErr("no pending manager") | |
536 | 570 | if ((hasPM == hasPM)) | |
537 | 571 | then { | |
538 | 572 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
539 | 573 | then true | |
540 | 574 | else throwErr("you are not pending manager") | |
541 | 575 | if ((checkPM == checkPM)) | |
542 | 576 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
543 | 577 | else throw("Strict value is not equal to itself.") | |
544 | 578 | } | |
545 | 579 | else throw("Strict value is not equal to itself.") | |
546 | 580 | } | |
547 | 581 | ||
548 | 582 | ||
549 | 583 | @Verifier(tx) | |
550 | 584 | func verify () = { | |
551 | 585 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
552 | 586 | case pk: ByteVector => | |
553 | 587 | pk | |
554 | 588 | case _: Unit => | |
555 | 589 | tx.senderPublicKey | |
556 | 590 | case _ => | |
557 | 591 | throw("Match error") | |
558 | 592 | } | |
559 | 593 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
560 | 594 | } | |
561 | 595 |
github/deemru/w8io/169f3d6 89.01 ms ◑