tx · EVtVE3LyYrcrmiNZbC7kij6kxHyMknRkGfKFMtspBQ26

3MpKmkFmjoGLpPWhScheYrN7fjdJAFp9tEX:  -0.01400000 Waves

2020.10.08 22:37 [1212020] smart account 3MpKmkFmjoGLpPWhScheYrN7fjdJAFp9tEX > SELF 0.00000000 Waves

{ "type": 13, "id": "EVtVE3LyYrcrmiNZbC7kij6kxHyMknRkGfKFMtspBQ26", "fee": 1400000, "feeAssetId": null, "timestamp": 1602185905265, "version": 2, "chainId": 84, "sender": "3MpKmkFmjoGLpPWhScheYrN7fjdJAFp9tEX", "senderPublicKey": "33Gr5uEJMDMKdRs25QUDvTeQ7q5EpGcAdPztrFvQWdv9", "proofs": [ "5WyhgQZKCVo57YxHVVE7azP7jsMF9RRcpi7z2Jrx9bAC1iicY1e2pAX9hGanChG7pMF1JXmYeCfiWMvAhcErPW1E" ], "script": "base64:AAIDAAAAAAAAAAkIARIAEgMKAQEAAAAEAAAAAA9mcm9zdEJsb2NrQ291bnQAAAAAAAAAAGQAAAAAB3BlcmNlbnQAAAAAAAAAABQBAAAADGdldFN0YXRpc3RpYwAAAAAEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwIAAAAJc3RhdGlzdGljAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAADTBfMF8wXzBfMF8wXzABAAAAB2dldFVzZXIAAAABAAAABHVzZXIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAEdXNlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAABcwXzBfMF8wXzBfMF8wXzBfMF8wXzBfMAAAAAIAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAE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AAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAABAAAAIB5Mc/KsxWEMv4BJo38ZZBpINTekTDQU9f6eMly2/EEyBnXw3T8=", "height": 1212020, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AfETrorqRgfDLe8aNB3cyztx4w7J6VoRCmTCmmHiUNqb Next: CUUhjFNt1sRaq6GPBQm9oyqzSV6FUcCAUTU6cUgoU7xQ Diff:
OldNewDifferences
4242 let m = ((i.amount / 100) * (100 + b))
4343 let g = split(f(j), "_")
4444 let n = parseIntValue(g[2])
45- WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(k[0]) + i.amount)) + "_") + toString((parseIntValue(k[1]) + 1))) + "_") + k[2]) + "_") + k[3]) + "_") + k[4]) + "_") + k[5]) + "_") + k[6])), DataEntry(j, ((((((((((((((((((((((toString((parseIntValue(g[0]) + i.amount)) + "_") + toString((parseIntValue(g[1]) + m))) + "_") + toString((n + m))) + "_") + toString(((n + m) / a))) + "_") + toString(l)) + g[5]) + "_") + g[6]) + "_") + g[7]) + "_") + g[8]) + "_") + g[9]) + "_") + g[10]) + "_") + g[11]) + "_"))])
45+ WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(k[0]) + i.amount)) + "_") + toString((parseIntValue(k[1]) + 1))) + "_") + k[2]) + "_") + k[3]) + "_") + k[4]) + "_") + k[5]) + "_") + k[6])), DataEntry(j, (((((((((((((((((((((toString((parseIntValue(g[0]) + i.amount)) + "_") + toString((parseIntValue(g[1]) + m))) + "_") + toString((n + m))) + "_") + toString(((n + m) / a))) + "_") + toString(l)) + g[5]) + "_") + g[6]) + "_") + g[7]) + "_") + g[8]) + "_") + g[9]) + "_") + g[10]) + "_") + g[11]))])
4646 }
4747 }
4848 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 100
55
66 let b = 20
77
88 func c () = {
99 let d = getString(this, "statistic")
1010 if ($isInstanceOf(d, "String"))
1111 then {
1212 let e = d
1313 e
1414 }
1515 else "0_0_0_0_0_0_0"
1616 }
1717
1818
1919 func f (g) = {
2020 let d = getString(this, g)
2121 if ($isInstanceOf(d, "String"))
2222 then {
2323 let e = d
2424 e
2525 }
2626 else "0_0_0_0_0_0_0_0_0_0_0_0"
2727 }
2828
2929
3030 @Callable(h)
3131 func deposit () = {
3232 let i = extract(h.payment)
3333 if (isDefined(i.assetId))
3434 then throw("can hodl waves only at the moment")
3535 else {
3636 let j = toBase58String(h.caller.bytes)
3737 if ((j == "3N2hHaqEEXjFHE5G8NTw6v7KNMwcHob2Ena"))
3838 then WriteSet([DataEntry("statistic", c())])
3939 else {
4040 let k = split(c(), "_")
4141 let l = lastBlock.height
4242 let m = ((i.amount / 100) * (100 + b))
4343 let g = split(f(j), "_")
4444 let n = parseIntValue(g[2])
45- WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(k[0]) + i.amount)) + "_") + toString((parseIntValue(k[1]) + 1))) + "_") + k[2]) + "_") + k[3]) + "_") + k[4]) + "_") + k[5]) + "_") + k[6])), DataEntry(j, ((((((((((((((((((((((toString((parseIntValue(g[0]) + i.amount)) + "_") + toString((parseIntValue(g[1]) + m))) + "_") + toString((n + m))) + "_") + toString(((n + m) / a))) + "_") + toString(l)) + g[5]) + "_") + g[6]) + "_") + g[7]) + "_") + g[8]) + "_") + g[9]) + "_") + g[10]) + "_") + g[11]) + "_"))])
45+ WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(k[0]) + i.amount)) + "_") + toString((parseIntValue(k[1]) + 1))) + "_") + k[2]) + "_") + k[3]) + "_") + k[4]) + "_") + k[5]) + "_") + k[6])), DataEntry(j, (((((((((((((((((((((toString((parseIntValue(g[0]) + i.amount)) + "_") + toString((parseIntValue(g[1]) + m))) + "_") + toString((n + m))) + "_") + toString(((n + m) / a))) + "_") + toString(l)) + g[5]) + "_") + g[6]) + "_") + g[7]) + "_") + g[8]) + "_") + g[9]) + "_") + g[10]) + "_") + g[11]))])
4646 }
4747 }
4848 }
4949
5050
5151
5252 @Callable(h)
5353 func withdraw (o) = {
5454 let j = toBase58String(h.caller.bytes)
5555 let g = split(f(j), "_")
5656 let k = split(c(), "_")
5757 let p = parseIntValue(g[2])
5858 let q = (p - o)
5959 let l = lastBlock.height
6060 let r = parseIntValue(g[1])
6161 let s = (r + a)
6262 let t = (parseIntValue(g[2]) + o)
6363 let u = if ((l >= s))
6464 then p
6565 else ((a - (s - l)) * (p / a))
6666 if ((0 > o))
6767 then throw("Can't withdraw negative amount")
6868 else if ((o > u))
6969 then throw(("Max sum: " + toString(u)))
7070 else if ((0 > q))
7171 then throw("Not enough balance")
7272 else ScriptResult(WriteSet([DataEntry("statistic", (((((((((k[0] + "_") + k[1]) + "_") + toString((parseIntValue(k[2]) + o))) + "_") + toString((parseIntValue(k[1]) + 1))) + "_") + k[4]) + k[5])), DataEntry(j, ((((((((((((((((((((((g[0] + "_") + g[1]) + "_") + toString(q)) + "_") + g[3]) + "_") + toString(l)) + "_") + toString((parseIntValue(g[5]) + o))) + "_") + toString((parseIntValue(g[6]) + o))) + "_") + g[7]) + "_") + g[8]) + "_") + g[9]) + "_") + g[10]) + "_") + g[11]))]), TransferSet([ScriptTransfer(h.caller, o, unit)]))
7373 }
7474
7575
7676 @Verifier(v)
7777 func w () = {
7878 let d = v
7979 if ($isInstanceOf(d, "SetScriptTransaction"))
8080 then {
8181 let x = d
8282 sigVerify(v.bodyBytes, v.proofs[0], base58'33Gr5uEJMDMKdRs25QUDvTeQ7q5EpGcAdPztrFvQWdv9')
8383 }
8484 else true
8585 }
8686

github/deemru/w8io/169f3d6 
37.90 ms