tx · G46ViLSiKU6e4w5gUBU1GYAeXTfKKXuACsM2rWxXquz3

3MqnjEXWG6rvvRo2UDYRANN8iWLks7snDwj:  -0.01000000 Waves

2021.12.14 16:35 [1833993] smart account 3MqnjEXWG6rvvRo2UDYRANN8iWLks7snDwj > SELF 0.00000000 Waves

{ "type": 13, "id": "G46ViLSiKU6e4w5gUBU1GYAeXTfKKXuACsM2rWxXquz3", "fee": 1000000, "feeAssetId": null, "timestamp": 1639488932880, "version": 2, "chainId": 84, "sender": "3MqnjEXWG6rvvRo2UDYRANN8iWLks7snDwj", "senderPublicKey": "2XLAeeTTE4mSghbTZDq9wZiJkuqmdgCCAw4uy1QgYGtK", "proofs": [ "4TZwCR5Yijb4ewUQYGJgXhTSE88dr1RVsGJnSvQDVg1iaffDynBjTD4T96KypF5XZvamcLKT1tv7JescbML9W7dR" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQgAAAAIAAAAAAltYXN0ZXJhZHICAAAAIzNOOGtGVHppU3B6N1NvZG9SeEsyWDkxTFlWc0F4aVAxaUNVAAAAAAZzZXBhcmMCAAAAAXwAAAAABnNlcGFycgkAASwAAAACBQAAAAZzZXBhcmMFAAAABnNlcGFyYwAAAAAJaW5jcnByaWNlAAAAAAAAAAAhAAAAAAlpbml0cHJpY2UCAAAABjEwMDAwMAAAAAAJbWFzdGVyZmVlAAAAAAAAAAABAAAAAAV0b2tlbgUAAAAEdW5pdAAAAAAJc3Rha2VyYXRlAAAAAAAAAAABAAAAAgAAAAFpAQAAAAVyZXNldAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAACmludGVyZXN0aWQAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAACmxhc3RwYWlkaWQAAAAAAAAAAAAFAAAAA25pbAAAAAFpAQAAAAVwYWludAAAAAEAAAAFaWRhdGEEAAAAAmN0BAAAAAckbWF0Y2gwCQAD7QAAAAEFAAAABmhlaWdodAMJAA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AAACGVycm9ycG10AgAAAAEgBQAAAAplcnJvcnRva2VuAgAAAAEgBQAAAAtlcnJvcmVub3VnaAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAACXBtdGFtb3VudAgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAUAAAADbmlsCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAAMY2FsbGVyQWRyZXNzAgAAAAZfZXJyb3IJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAACGVycm9ycG10AgAAAAEgBQAAAAplcnJvcnRva2VuAgAAAAEgBQAAAAtlcnJvcmVub3VnaAIAAAABIAUAAAAIZXJyb3J1cmwFAAAAA25pbAAAAACY4IFj", "height": 1833993, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GExCmL9zpM3zikquBWTfh8sgjoQAMMu4jZZ279ZMdYaX Next: CAopTGHyJu92Xc7X8EJ8SmqEsZy6xRAKMw851gK1PPsr Diff:
OldNewDifferences
116116 if (if (pmtenough)
117117 then urlcorrect
118118 else false)
119- then [StringEntry(all[0][0], all[0][1]), ScriptTransfer(Address(fromBase58String(all[0][2])), parseIntValue(all[0][4]), token), StringEntry(all[1][0], all[1][1]), ScriptTransfer(Address(fromBase58String(all[1][2])), parseIntValue(all[1][4]), token), StringEntry(all[2][0], all[2][1]), ScriptTransfer(Address(fromBase58String(all[2][2])), parseIntValue(all[2][4]), token), StringEntry(all[3][0], all[3][1]), ScriptTransfer(Address(fromBase58String(all[3][2])), parseIntValue(all[3][4]), token), StringEntry(all[4][0], all[4][1]), ScriptTransfer(Address(fromBase58String(all[4][2])), parseIntValue(all[4][4]), token), StringEntry(all[5][0], all[5][1]), ScriptTransfer(Address(fromBase58String(all[5][2])), parseIntValue(all[5][4]), token), StringEntry(all[6][0], all[6][1]), ScriptTransfer(Address(fromBase58String(all[6][2])), parseIntValue(all[6][4]), token), StringEntry(all[7][0], all[7][1]), ScriptTransfer(Address(fromBase58String(all[7][2])), parseIntValue(all[7][4]), token), StringEntry(all[8][0], all[8][1]), ScriptTransfer(Address(fromBase58String(all[8][2])), parseIntValue(all[8][4]), token), StringEntry(all[9][0], all[9][1]), ScriptTransfer(Address(fromBase58String(all[9][2])), parseIntValue(all[9][4]), token), StringEntry(all[10][0], all[10][1]), ScriptTransfer(Address(fromBase58String(all[10][2])), parseIntValue(all[10][4]), token), StringEntry(all[11][0], all[11][1]), ScriptTransfer(Address(fromBase58String(all[11][2])), parseIntValue(all[11][4]), token), StringEntry(all[12][0], all[12][1]), ScriptTransfer(Address(fromBase58String(all[12][2])), parseIntValue(all[12][4]), token), StringEntry(all[13][0], all[13][1]), ScriptTransfer(Address(fromBase58String(all[13][2])), parseIntValue(all[13][4]), token), StringEntry(all[14][0], all[14][1]), ScriptTransfer(Address(fromBase58String(all[14][2])), parseIntValue(all[14][4]), token), StringEntry(all[15][0], all[15][1]), ScriptTransfer(Address(fromBase58String(all[15][2])), parseIntValue(all[15][4]), token), StringEntry(all[16][0], all[16][1]), ScriptTransfer(Address(fromBase58String(all[16][2])), parseIntValue(all[16][4]), token), StringEntry(all[17][0], all[17][1]), ScriptTransfer(Address(fromBase58String(all[17][2])), parseIntValue(all[17][4]), token), StringEntry(all[18][0], all[18][1]), ScriptTransfer(Address(fromBase58String(all[18][2])), parseIntValue(all[18][4]), token), StringEntry(all[19][0], all[19][1]), ScriptTransfer(Address(fromBase58String(all[19][2])), parseIntValue(all[19][4]), token), StringEntry(all[20][0], all[20][1]), ScriptTransfer(Address(fromBase58String(all[20][2])), parseIntValue(all[20][4]), token), StringEntry(all[21][0], all[21][1]), ScriptTransfer(Address(fromBase58String(all[21][2])), parseIntValue(all[21][4]), token), StringEntry(all[22][0], all[22][1]), ScriptTransfer(Address(fromBase58String(all[22][2])), parseIntValue(all[22][4]), token), StringEntry(all[23][0], all[23][1]), ScriptTransfer(Address(fromBase58String(all[23][2])), parseIntValue(all[23][4]), token), StringEntry(all[24][0], all[24][1]), ScriptTransfer(Address(fromBase58String(all[24][2])), parseIntValue(all[24][4]), token), StringEntry(all[25][0], all[25][1]), ScriptTransfer(Address(fromBase58String(all[25][2])), parseIntValue(all[25][4]), token), StringEntry(all[26][0], all[26][1]), ScriptTransfer(Address(fromBase58String(all[26][2])), parseIntValue(all[26][4]), token), StringEntry(all[27][0], all[27][1]), ScriptTransfer(Address(fromBase58String(all[27][2])), parseIntValue(all[27][4]), token), ScriptTransfer(i.caller, ((pmtamount - payment) - servicefee), token), ScriptTransfer(Address(fromBase58String(masteradr)), servicefee, token), DeleteEntry((callerAdress + "_error"))]
119+ then [StringEntry(all[0][0], all[0][1]), ScriptTransfer(i.caller, ((pmtamount - payment) - servicefee), token), ScriptTransfer(Address(fromBase58String(masteradr)), servicefee, token), DeleteEntry((callerAdress + "_error"))]
120120 else if (havepmt)
121121 then [StringEntry((callerAdress + "_error"), ((((errorpmt + " ") + errortoken) + " ") + errorenough)), ScriptTransfer(i.caller, pmtamount, i.payments[0].assetId)]
122122 else [StringEntry((callerAdress + "_error"), ((((((errorpmt + " ") + errortoken) + " ") + errorenough) + " ") + errorurl))]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let masteradr = "3N8kFTziSpz7SodoRxK2X91LYVsAxiP1iCU"
55
66 let separc = "|"
77
88 let separr = (separc + separc)
99
1010 let incrprice = 33
1111
1212 let initprice = "100000"
1313
1414 let masterfee = 1
1515
1616 let token = unit
1717
1818 let stakerate = 1
1919
2020 @Callable(i)
2121 func reset () = [IntegerEntry("interestid", 0), IntegerEntry("lastpaidid", 0)]
2222
2323
2424
2525 @Callable(i)
2626 func paint (idata) = {
2727 let ct = match blockInfoByHeight(height) {
2828 case block: BlockInfo =>
2929 block.timestamp
3030 case _ =>
3131 0
3232 }
3333 let currenttime = parseIntValue(toString(ct))
3434 let callerAdress = toBase58String(i.caller.bytes)
3535 let reqdata = split(idata, separr)
3636 let color = if ((size(reqdata) > 1))
3737 then reqdata[1]
3838 else "0"
3939 let url = if ((size(reqdata) > 2))
4040 then reqdata[2]
4141 else ""
4242 let urlcorrect = if ((indexOf(url, separc) == unit))
4343 then true
4444 else false
4545 let pixxy = if ((size(reqdata) > 0))
4646 then split(reqdata[0], separc)
4747 else nil
4848 let number = min([28, size(pixxy)])
4949 let emptycommand = ["--", "--", masteradr, "0", "0"]
5050 let newrecord = [callerAdress, initprice, toString(currenttime), color, url]
5151 func validxy (j) = match parseInt(pixxy[j]) {
5252 case a: Int =>
5353 if (if ((parseIntValue(pixxy[j]) > -1))
5454 then (1000 > parseIntValue(pixxy[j]))
5555 else false)
5656 then parseIntValue(pixxy[j])
5757 else -1
5858 case _ =>
5959 -1
6060 }
6161
6262 func getrecord (j) = match getString(pixxy[j]) {
6363 case a: String =>
6464 getStringValue(pixxy[j])
6565 case _ =>
6666 ""
6767 }
6868
6969 func command (j) = if (if ((j > (number - 1)))
7070 then true
7171 else (0 > validxy(j)))
7272 then emptycommand
7373 else if ((getrecord(j) == ""))
7474 then [pixxy[j], makeString(newrecord, separc), masteradr, initprice]
7575 else {
7676 let oldrecord = split(getStringValue(pixxy[j]), separc)
7777 let price = parseIntValue(oldrecord[1])
7878 let stakeinterest = (((price * (currenttime - parseIntValue(oldrecord[2]))) * stakerate) % 360000000)
7979 let oldowner = oldrecord[0]
8080 [pixxy[j], makeString([callerAdress, toString(((price * (100 + incrprice)) % 100)), toString(currenttime), color, url], separc), oldowner, toString(price), toString((stakeinterest + price))]
8181 }
8282
8383 let all = [command(0), command(1), command(2), command(3), command(4), command(5), command(6), command(7), command(8), command(9), command(10), command(11), command(12), command(13), command(14), command(15), command(16), command(17), command(18), command(19), command(20), command(21), command(22), command(23), command(24), command(25), command(26), command(27)]
8484 let payment = parseIntValue(all[0][3])
8585 let servicefee = fraction(payment, masterfee, 100)
8686 let havepmt = if ((size(i.payments) == 1))
8787 then true
8888 else false
8989 let pmtamount = if (havepmt)
9090 then i.payments[0].amount
9191 else 0
9292 let tokencorrect = if (havepmt)
9393 then if ((i.payments[0].assetId == token))
9494 then true
9595 else false
9696 else false
9797 let pmtenough = if (if (tokencorrect)
9898 then (pmtamount >= (payment + servicefee))
9999 else false)
100100 then true
101101 else false
102102 let errorpmt = if (!(havepmt))
103103 then (("Attached payment is required: " + toString((payment + servicefee))) + "; ")
104104 else ""
105105 let errortoken = if (!(tokencorrect))
106106 then "works with tokens only; "
107107 else ""
108108 let errorenough = if (!(pmtenough))
109109 then (((("you give: " + toString(pmtamount)) + ", but deal needs: ") + toString((payment + servicefee))) + "; ")
110110 else ""
111111 let errorurl = if (!(urlcorrect))
112112 then "url is incorrect; "
113113 else ""
114114 let interestid = getIntegerValue("interestid")
115115 let interestidnext = (interestid + 1)
116116 if (if (pmtenough)
117117 then urlcorrect
118118 else false)
119- then [StringEntry(all[0][0], all[0][1]), ScriptTransfer(Address(fromBase58String(all[0][2])), parseIntValue(all[0][4]), token), StringEntry(all[1][0], all[1][1]), ScriptTransfer(Address(fromBase58String(all[1][2])), parseIntValue(all[1][4]), token), StringEntry(all[2][0], all[2][1]), ScriptTransfer(Address(fromBase58String(all[2][2])), parseIntValue(all[2][4]), token), StringEntry(all[3][0], all[3][1]), ScriptTransfer(Address(fromBase58String(all[3][2])), parseIntValue(all[3][4]), token), StringEntry(all[4][0], all[4][1]), ScriptTransfer(Address(fromBase58String(all[4][2])), parseIntValue(all[4][4]), token), StringEntry(all[5][0], all[5][1]), ScriptTransfer(Address(fromBase58String(all[5][2])), parseIntValue(all[5][4]), token), StringEntry(all[6][0], all[6][1]), ScriptTransfer(Address(fromBase58String(all[6][2])), parseIntValue(all[6][4]), token), StringEntry(all[7][0], all[7][1]), ScriptTransfer(Address(fromBase58String(all[7][2])), parseIntValue(all[7][4]), token), StringEntry(all[8][0], all[8][1]), ScriptTransfer(Address(fromBase58String(all[8][2])), parseIntValue(all[8][4]), token), StringEntry(all[9][0], all[9][1]), ScriptTransfer(Address(fromBase58String(all[9][2])), parseIntValue(all[9][4]), token), StringEntry(all[10][0], all[10][1]), ScriptTransfer(Address(fromBase58String(all[10][2])), parseIntValue(all[10][4]), token), StringEntry(all[11][0], all[11][1]), ScriptTransfer(Address(fromBase58String(all[11][2])), parseIntValue(all[11][4]), token), StringEntry(all[12][0], all[12][1]), ScriptTransfer(Address(fromBase58String(all[12][2])), parseIntValue(all[12][4]), token), StringEntry(all[13][0], all[13][1]), ScriptTransfer(Address(fromBase58String(all[13][2])), parseIntValue(all[13][4]), token), StringEntry(all[14][0], all[14][1]), ScriptTransfer(Address(fromBase58String(all[14][2])), parseIntValue(all[14][4]), token), StringEntry(all[15][0], all[15][1]), ScriptTransfer(Address(fromBase58String(all[15][2])), parseIntValue(all[15][4]), token), StringEntry(all[16][0], all[16][1]), ScriptTransfer(Address(fromBase58String(all[16][2])), parseIntValue(all[16][4]), token), StringEntry(all[17][0], all[17][1]), ScriptTransfer(Address(fromBase58String(all[17][2])), parseIntValue(all[17][4]), token), StringEntry(all[18][0], all[18][1]), ScriptTransfer(Address(fromBase58String(all[18][2])), parseIntValue(all[18][4]), token), StringEntry(all[19][0], all[19][1]), ScriptTransfer(Address(fromBase58String(all[19][2])), parseIntValue(all[19][4]), token), StringEntry(all[20][0], all[20][1]), ScriptTransfer(Address(fromBase58String(all[20][2])), parseIntValue(all[20][4]), token), StringEntry(all[21][0], all[21][1]), ScriptTransfer(Address(fromBase58String(all[21][2])), parseIntValue(all[21][4]), token), StringEntry(all[22][0], all[22][1]), ScriptTransfer(Address(fromBase58String(all[22][2])), parseIntValue(all[22][4]), token), StringEntry(all[23][0], all[23][1]), ScriptTransfer(Address(fromBase58String(all[23][2])), parseIntValue(all[23][4]), token), StringEntry(all[24][0], all[24][1]), ScriptTransfer(Address(fromBase58String(all[24][2])), parseIntValue(all[24][4]), token), StringEntry(all[25][0], all[25][1]), ScriptTransfer(Address(fromBase58String(all[25][2])), parseIntValue(all[25][4]), token), StringEntry(all[26][0], all[26][1]), ScriptTransfer(Address(fromBase58String(all[26][2])), parseIntValue(all[26][4]), token), StringEntry(all[27][0], all[27][1]), ScriptTransfer(Address(fromBase58String(all[27][2])), parseIntValue(all[27][4]), token), ScriptTransfer(i.caller, ((pmtamount - payment) - servicefee), token), ScriptTransfer(Address(fromBase58String(masteradr)), servicefee, token), DeleteEntry((callerAdress + "_error"))]
119+ then [StringEntry(all[0][0], all[0][1]), ScriptTransfer(i.caller, ((pmtamount - payment) - servicefee), token), ScriptTransfer(Address(fromBase58String(masteradr)), servicefee, token), DeleteEntry((callerAdress + "_error"))]
120120 else if (havepmt)
121121 then [StringEntry((callerAdress + "_error"), ((((errorpmt + " ") + errortoken) + " ") + errorenough)), ScriptTransfer(i.caller, pmtamount, i.payments[0].assetId)]
122122 else [StringEntry((callerAdress + "_error"), ((((((errorpmt + " ") + errortoken) + " ") + errorenough) + " ") + errorurl))]
123123 }
124124
125125

github/deemru/w8io/026f985 
36.26 ms