tx · CSi5Msk2ANvEZxvSeREWgmP4A9jYK5Gfqagv5GwfX47

3Msughfkwji8uccY4RAxuKWvNpnEscWyhHK:  -0.01400000 Waves

2019.07.01 15:10 [566297] smart account 3Msughfkwji8uccY4RAxuKWvNpnEscWyhHK > SELF 0.00000000 Waves

{ "type": 13, "id": "CSi5Msk2ANvEZxvSeREWgmP4A9jYK5Gfqagv5GwfX47", "fee": 1400000, "feeAssetId": null, "timestamp": 1561983000856, "version": 1, "sender": "3Msughfkwji8uccY4RAxuKWvNpnEscWyhHK", "senderPublicKey": "AzyC6W7iD5HYehj2xef6xWKogmxDC6RaX9N1ST8P39bn", "proofs": [ "3iS8JarBPjFBxUn44TbAGntCF4DW3yEgG1zNqaWpb1mkdtUdFUVHYYMt7jrPgVPHzRqHKP1cBBDsKKDq6SkcfSfm" ], "script": "base64:AAIDAAAAAAAAAAAAAAAKAAAAAAZsZXZlbDEAAAAAAAAAAPoAAAAABmxldmVsMgAAAAAAAAAA+gAAAAAGbGV2ZWwzAAAAAAAAAAD6AAAAAAhjYXNoQmFjawAAAAAAAAAA+gAAAAAGbWF4RmVlAAAAAAAATEtAAAAAAA5jaGFuZ2VPd25lcktleQIAAAAsQUQydmJ6cFIzWk1YaVkxWmhCZHE0aUgxd3o1dzZ0VUNIUHoxdnZOZnlDcUUBAAAAEGJhbGFuY2VJbmNyZW1lbnQAAAACAAAAB2FkZHJlc3MAAAADaW5jBAAAAApiYWxhbmNlS2V5CQABLAAAAAIFAAAAB2FkZHJlc3MCAAAACF9iYWxhbmNlCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKYmFsYW5jZUtleQkAAGQAAAACBQAAAANpbmMEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAKYmFsYW5jZUtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAAAQAAABVpbmRleEJhbGFuY2VJbmNyZW1lb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acted Prev: EgAnnPy2NnSQf9Wgs9pn2oKQdqmCiEhQ2Jy1Srny66TA Next: AwPXVTnwBa6LetodXsdtp9SGyNvvcZnLiWTqhHd8wyDg Diff:
OldNewDifferences
9595 }
9696 else 0
9797 }
98- ScriptResult(WriteSet([DataEntry((n + "_balance"), 0)]), TransferSet([ScriptTransfer(v.caller, y, unit)]))
98+ ScriptResult(WriteSet([DataEntry((n + "_balance"), 0)]), TransferSet([ScriptTransfer(v.caller, (y + v.fee), unit)]))
9999 }
100100
101101
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 250
55
66 let b = 250
77
88 let c = 250
99
1010 let d = 250
1111
1212 let e = 5000000
1313
1414 let f = "AD2vbzpR3ZMXiY1ZhBdq4iH1wz5w6tUCHPz1vvNfyCqE"
1515
1616 func g (h,i) = {
1717 let j = (h + "_balance")
1818 DataEntry(j, (i + {
1919 let k = getInteger(this, j)
2020 if ($isInstanceOf(k, "Int"))
2121 then {
2222 let l = k
2323 l
2424 }
2525 else 0
2626 }))
2727 }
2828
2929
3030 func m (h,n,i,o) = {
3131 let p = (h + o)
3232 let q = (n + toString(i))
3333 let k = getString(this, p)
3434 if ($isInstanceOf(k, "String"))
3535 then {
3636 let r = k
3737 DataEntry(p, ((r + ",") + q))
3838 }
3939 else DataEntry(p, q)
4040 }
4141
4242
4343 func s (t) = getString(this, (t + "_referer"))
4444
4545
4646 func u (v) = if ((v.fee > e))
4747 then throw("unreasonable large fee")
4848 else true
4949
5050
5151 @Callable(v)
5252 func fund () = {
5353 let n = toBase58String(v.callerPublicKey)
5454 let w = extract(blockInfoByHeight(height))
5555 let x = (((n + ":") + toString(w.timestamp)) + ":")
5656 let y = extract(v.payment).amount
5757 let z = u(v)
5858 ScriptResult(WriteSet({
5959 let k = getString(this, (n + "_refstructure"))
6060 if ($isInstanceOf(k, "String"))
6161 then {
6262 let A = k
6363 let B = split(A, ",")
6464 let C = size(B)
6565 let D = ((y * a) / 1000)
6666 let E = ((y * d) / 1000)
6767 [g(n, E), m(n, x, E, "_txs_cashback"), g(B[0], D), m(B[0], x, D, "_txs_l1"), if ((C >= 2))
6868 then {
6969 let F = ((y * b) / 1000)
7070 [g(B[1], F), m(B[1], x, F, "_txs_l2"), if ((C >= 3))
7171 then {
7272 let G = ((y * c) / 1000)
7373 [g(B[2], G), m(B[2], x, G, "_txs_l3"), g(f, (((y - D) - F) - G)), m(f, x, (((y - D) - F) - G), "_txs_change")]
7474 }
7575 else [g(f, ((y - D) - F)), m(f, x, ((y - D) - F), "_txs_change")]]
7676 }
7777 else [g(f, (y - D)), m(f, x, (y - D), "_txs_change")]]
7878 }
7979 else [g(f, y), m(f, x, y, "_txs_change")]
8080 }), TransferSet([ScriptTransfer(v.caller, v.fee, unit)]))
8181 }
8282
8383
8484
8585 @Callable(v)
8686 func withdraw () = {
8787 let z = u(v)
8888 let n = toBase58String(v.callerPublicKey)
8989 let y = {
9090 let k = getInteger(this, (n + "_balance"))
9191 if ($isInstanceOf(k, "Int"))
9292 then {
9393 let l = k
9494 l
9595 }
9696 else 0
9797 }
98- ScriptResult(WriteSet([DataEntry((n + "_balance"), 0)]), TransferSet([ScriptTransfer(v.caller, y, unit)]))
98+ ScriptResult(WriteSet([DataEntry((n + "_balance"), 0)]), TransferSet([ScriptTransfer(v.caller, (y + v.fee), unit)]))
9999 }
100100
101101
102102
103103 @Callable(v)
104104 func test () = WriteSet(nil)
105105
106106
107107
108108 @Callable(v)
109109 func register (H,I) = {
110110 let z = u(v)
111111 if ((take(toBase58String(v.transactionId), 3) != "123"))
112112 then throw("proof of work failed")
113113 else {
114114 let n = toBase58String(v.callerPublicKey)
115115 if (isDefined(s(n)))
116116 then throw("Already registered")
117117 else {
118118 let J = (H + "_referrals")
119119 let K = {
120120 let k = getString(this, J)
121121 if ($isInstanceOf(k, "String"))
122122 then {
123123 let L = k
124124 ((L + ",") + n)
125125 }
126126 else n
127127 }
128128 let M = (H + {
129129 let k = s(H)
130130 if ($isInstanceOf(k, "String"))
131131 then {
132132 let N = k
133133 (("," + N) + {
134134 let O = s(N)
135135 if ($isInstanceOf(O, "String"))
136136 then {
137137 let P = O
138138 ("," + P)
139139 }
140140 else ""
141141 })
142142 }
143143 else ""
144144 })
145145 ScriptResult(WriteSet([DataEntry((n + "_referer"), H), DataEntry(J, K), DataEntry((n + "_refstructure"), M)]), TransferSet([ScriptTransfer(v.caller, v.fee, unit)]))
146146 }
147147 }
148148 }
149149
150150

github/deemru/w8io/169f3d6 
47.94 ms