tx · E9xtPTcpZou7btFh3eG95VDJiL7aiauMFD4APNRSrj7R 3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc: -0.05000000 Waves 2019.12.28 00:16 [827987] smart account 3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc > SELF 0.00000000 Waves
{ "type": 13, "id": "E9xtPTcpZou7btFh3eG95VDJiL7aiauMFD4APNRSrj7R", "fee": 5000000, "feeAssetId": null, "timestamp": 1577481294261, "version": 1, "sender": "3MrdV3AP4zfU77ifesNStoDZmL1Cfx13eDc", "senderPublicKey": "5M79Anear5ntQk2bbDdFA2goiPXkv7Xy2UpV4n5RKRv", "proofs": [ "3J3zRgL6APguDx1cgtMGyQj4erpD2TZx6CW8igxb2CbzdkmDt8LVaQ4jr49ELssP16KvU9UsuhfC7SswRpDM2x1d" ], "script": "base64:AAIDAAAAAAAAABAIARIAEgMKAQgSAwoBCBIAAAAAEgAAAAANTE9DS0VEV0JFVEtFWQIAAAATJFdCRVRfTE9DS0VEX0FNT1VOVAAAAAAOTE9DS0VEUk9ZQUxLRVkCAAAAFCRST1lBTF9MT0NLRVJfQU1PVU5UAAAAABBXQUxMRVRDT1VOVEVSS0VZAgAAAAskV0FMTEVUX05VTQAAAAAEV0JFVAEAAAAghrQ2qHjTDszY8BetSy4sBB8Hn7rKuRapStdvJa2b0HYAAAAABVJPWUFMAQAAACBD6YqCwiXZdJyVfCBSScajmpCytpVfYmJeyjiJiQxpHAAAAAAPQ09NTVVOSVRZV0FMTEVUCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFULxHweE6v1pOfqW4iK2a1H7JT13jPO2j7AAAAAApXQkVUTE9DS0VEAAAAAAAAAAAAAAAAAAtST1lBTExPQ0tFRAAAAAAAAAAAAQAAAAAMV0JFVFdJVEhEUkFXAAAAAAAAAAACAAAAAA1ST1lBTFdJVEhEUkFXAAAAAAAAAAADAAAAAA1XQVZFU1dJVEhEUkFXAAAAAAAAAAAEAQAAABJJbmNyZW1lbnRXYWxs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FJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAABndhbGxldAkBAAAAE0Zvcm1hdFBsYXllckJhbGFuY2UAAAAFCQABkQAAAAIFAAAAB2JhbGFuY2UFAAAACldCRVRMT0NLRUQJAAGRAAAAAgUAAAAHYmFsYW5jZQUAAAALUk9ZQUxMT0NLRUQJAAGRAAAAAgUAAAAHYmFsYW5jZQUAAAAMV0JFVFdJVEhEUkFXCQABkQAAAAIFAAAAB2JhbGFuY2UFAAAADFdCRVRXSVRIRFJBVwAAAAAAAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAZEAAAACBQAAAAdiYWxhbmNlBQAAAA1XQVZFU1dJVEhEUkFXBQAAAAR1bml0BQAAAANuaWwJAAACAAAAAQIAAAANSW52YWxpZCBhc3NldAAAAAFpAQAAAANmaXgAAAAACQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAQV0FMTEVUQ09VTlRFUktFWQAAAAAAAAAABAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAAAfJBzTw==", "chainId": 84, "height": 827987, "spentComplexity": 0 } View: original | compacted Prev: 4A9xrrFaADHuZbAQV16QFgd9tEMJhGkMhfBB6g3DXS6N Next: AXQVFLH5PTAH1k7NpkfEtBSvJgBBKjZmYACUwg2Su1a8 Diff:
Old | New | Differences | |
---|---|---|---|
120 | 120 | then { | |
121 | 121 | let M = (r() + H.amount) | |
122 | 122 | let N = (I[h] + H.amount) | |
123 | - | ScriptResult(WriteSet([DataEntry(b, M), DataEntry(t, w(I[g], N, I[i], I[j], I[k]))]), TransferSet(nil)) | |
123 | + | if (v(t)) | |
124 | + | then ScriptResult(WriteSet([DataEntry(b, M), DataEntry(t, w(I[g], N, I[i], I[j], I[k]))]), TransferSet(nil)) | |
125 | + | else { | |
126 | + | let L = l() | |
127 | + | ScriptResult(WriteSet([DataEntry(c, L), DataEntry(b, M), DataEntry(t, w(I[g], N, I[i], I[j], I[k]))]), TransferSet(nil)) | |
128 | + | } | |
124 | 129 | } | |
125 | 130 | else throw("error") | |
126 | 131 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "$WBET_LOCKED_AMOUNT" | |
5 | 5 | ||
6 | 6 | let b = "$ROYAL_LOCKER_AMOUNT" | |
7 | 7 | ||
8 | 8 | let c = "$WALLET_NUM" | |
9 | 9 | ||
10 | 10 | let d = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw' | |
11 | 11 | ||
12 | 12 | let e = base58'5a6rvDEiVwvhTvTH6ce2qFwqdCt3VKaHKXEpwLXXVvyy' | |
13 | 13 | ||
14 | 14 | let f = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8') | |
15 | 15 | ||
16 | 16 | let g = 0 | |
17 | 17 | ||
18 | 18 | let h = 1 | |
19 | 19 | ||
20 | 20 | let i = 2 | |
21 | 21 | ||
22 | 22 | let j = 3 | |
23 | 23 | ||
24 | 24 | let k = 4 | |
25 | 25 | ||
26 | 26 | func l () = { | |
27 | 27 | let m = { | |
28 | 28 | let n = getInteger(this, c) | |
29 | 29 | if ($isInstanceOf(n, "Int")) | |
30 | 30 | then { | |
31 | 31 | let o = n | |
32 | 32 | o | |
33 | 33 | } | |
34 | 34 | else 0 | |
35 | 35 | } | |
36 | 36 | (m + 1) | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func p () = { | |
41 | 41 | let n = getInteger(this, a) | |
42 | 42 | if ($isInstanceOf(n, "Int")) | |
43 | 43 | then { | |
44 | 44 | let q = n | |
45 | 45 | q | |
46 | 46 | } | |
47 | 47 | else 0 | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func r () = { | |
52 | 52 | let n = getInteger(this, b) | |
53 | 53 | if ($isInstanceOf(n, "Int")) | |
54 | 54 | then { | |
55 | 55 | let q = n | |
56 | 56 | q | |
57 | 57 | } | |
58 | 58 | else 0 | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func s (t) = { | |
63 | 63 | let n = getString(this, t) | |
64 | 64 | if ($isInstanceOf(n, "String")) | |
65 | 65 | then { | |
66 | 66 | let u = n | |
67 | 67 | u | |
68 | 68 | } | |
69 | 69 | else "0_0_0_0_0" | |
70 | 70 | } | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func v (t) = { | |
74 | 74 | let n = getString(this, t) | |
75 | 75 | if ($isInstanceOf(n, "String")) | |
76 | 76 | then { | |
77 | 77 | let u = n | |
78 | 78 | true | |
79 | 79 | } | |
80 | 80 | else false | |
81 | 81 | } | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func w (x,y,z,A,B) = ((((((((toString(x) + "_") + toString(y)) + "_") + toString(z)) + "_") + toString(A)) + "_") + toString(B)) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func C (t) = { | |
88 | 88 | let D = split(s(t), "_") | |
89 | 89 | let E = parseIntValue(D[g]) | |
90 | 90 | let F = parseIntValue(D[h]) | |
91 | 91 | let z = parseIntValue(D[i]) | |
92 | 92 | let A = parseIntValue(D[j]) | |
93 | 93 | let B = parseIntValue(D[k]) | |
94 | 94 | [E, F, z, A, B] | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | @Callable(G) | |
99 | 99 | func lock () = { | |
100 | 100 | let H = extract(G.payment) | |
101 | 101 | if (if ((H.assetId != d)) | |
102 | 102 | then (H.assetId != e) | |
103 | 103 | else false) | |
104 | 104 | then throw("The token should be in WBET or ROYAL.") | |
105 | 105 | else { | |
106 | 106 | let t = toString(G.caller) | |
107 | 107 | let I = C(t) | |
108 | 108 | if ((H.assetId == d)) | |
109 | 109 | then { | |
110 | 110 | let J = (p() + H.amount) | |
111 | 111 | let K = (I[g] + H.amount) | |
112 | 112 | if (v(t)) | |
113 | 113 | then ScriptResult(WriteSet([DataEntry(a, J), DataEntry(t, w(K, I[h], I[i], I[j], I[k]))]), TransferSet(nil)) | |
114 | 114 | else { | |
115 | 115 | let L = l() | |
116 | 116 | ScriptResult(WriteSet([DataEntry(c, L), DataEntry(a, J), DataEntry(t, w(K, I[h], I[i], I[j], I[k]))]), TransferSet(nil)) | |
117 | 117 | } | |
118 | 118 | } | |
119 | 119 | else if ((H.assetId == e)) | |
120 | 120 | then { | |
121 | 121 | let M = (r() + H.amount) | |
122 | 122 | let N = (I[h] + H.amount) | |
123 | - | ScriptResult(WriteSet([DataEntry(b, M), DataEntry(t, w(I[g], N, I[i], I[j], I[k]))]), TransferSet(nil)) | |
123 | + | if (v(t)) | |
124 | + | then ScriptResult(WriteSet([DataEntry(b, M), DataEntry(t, w(I[g], N, I[i], I[j], I[k]))]), TransferSet(nil)) | |
125 | + | else { | |
126 | + | let L = l() | |
127 | + | ScriptResult(WriteSet([DataEntry(c, L), DataEntry(b, M), DataEntry(t, w(I[g], N, I[i], I[j], I[k]))]), TransferSet(nil)) | |
128 | + | } | |
124 | 129 | } | |
125 | 130 | else throw("error") | |
126 | 131 | } | |
127 | 132 | } | |
128 | 133 | ||
129 | 134 | ||
130 | 135 | ||
131 | 136 | @Callable(G) | |
132 | 137 | func unlock (O) = { | |
133 | 138 | let t = toString(G.caller) | |
134 | 139 | let I = C(t) | |
135 | 140 | if ((O == "WBET")) | |
136 | 141 | then if ((0 >= I[g])) | |
137 | 142 | then throw("You dont have enough balance to withdraw the amount requested.") | |
138 | 143 | else { | |
139 | 144 | let J = (p() - I[g]) | |
140 | 145 | ScriptResult(WriteSet([DataEntry(a, J), DataEntry(t, w(0, I[h], I[i], I[j], I[k]))]), TransferSet([ScriptTransfer(G.caller, I[g], d)])) | |
141 | 146 | } | |
142 | 147 | else if ((O == "ROYAL")) | |
143 | 148 | then if ((0 >= I[h])) | |
144 | 149 | then throw("You dont have enough balance to withdraw the amount requested.") | |
145 | 150 | else { | |
146 | 151 | let M = (r() - I[h]) | |
147 | 152 | ScriptResult(WriteSet([DataEntry(b, M), DataEntry(t, w(I[g], 0, I[i], I[j], I[k]))]), TransferSet([ScriptTransfer(G.caller, I[h], e)])) | |
148 | 153 | } | |
149 | 154 | else throw("Invalid asset") | |
150 | 155 | } | |
151 | 156 | ||
152 | 157 | ||
153 | 158 | ||
154 | 159 | @Callable(G) | |
155 | 160 | func withdraw (O) = { | |
156 | 161 | let t = toString(G.caller) | |
157 | 162 | let I = C(t) | |
158 | 163 | if ((O == "WBET")) | |
159 | 164 | then if ((0 >= I[i])) | |
160 | 165 | then throw("You dont have enough balance to withdraw the amount requested.") | |
161 | 166 | else ScriptResult(WriteSet([DataEntry(t, w(I[g], I[h], 0, I[j], I[k]))]), TransferSet([ScriptTransfer(G.caller, I[i], d)])) | |
162 | 167 | else if ((O == "ROYAL")) | |
163 | 168 | then if ((0 >= I[j])) | |
164 | 169 | then throw("You dont have enough balance to withdraw the amount requested.") | |
165 | 170 | else ScriptResult(WriteSet([DataEntry(t, w(I[g], I[h], I[i], 0, I[k]))]), TransferSet([ScriptTransfer(G.caller, I[j], e)])) | |
166 | 171 | else if ((O == "WAVES")) | |
167 | 172 | then if ((0 >= I[k])) | |
168 | 173 | then throw("You dont have enough balance to withdraw the amount requested.") | |
169 | 174 | else ScriptResult(WriteSet([DataEntry(t, w(I[g], I[h], I[i], I[i], 0))]), TransferSet([ScriptTransfer(G.caller, I[k], unit)])) | |
170 | 175 | else throw("Invalid asset") | |
171 | 176 | } | |
172 | 177 | ||
173 | 178 | ||
174 | 179 | ||
175 | 180 | @Callable(G) | |
176 | 181 | func fix () = ScriptResult(WriteSet([DataEntry(c, 4)]), TransferSet(nil)) | |
177 | 182 | ||
178 | 183 |
github/deemru/w8io/026f985 55.60 ms ◑