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:AAIDAAAAAAAAABAIARIAEgMKAQgSAwoBCBIAAAAAEgAAAAANTE9DS0VEV0JFVEtFWQIAAAATJFdCRVRfTE9DS0VEX0FNT1VOVAAAAAAOTE9DS0VEUk9ZQUxLRVkCAAAAFCRST1lBTF9MT0NLRVJfQU1PVU5UAAAAABBXQUxMRVRDT1VOVEVSS0VZAgAAAAskV0FMTEVUX05VTQAAAAAEV0JFVAEAAAAghrQ2qHjTDszY8BetSy4sBB8Hn7rKuRapStdvJa2b0HYAAAAABVJPWUFMAQAAACBD6YqCwiXZdJyVfCBSScajmpCytpVfYmJeyjiJiQxpHAAAAAAPQ09NTVVOSVRZV0FMTEVUCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFULxHweE6v1pOfqW4iK2a1H7JT13jPO2j7AAAAAApXQkVUTE9DS0VEAAAAAAAAAAAAAAAAAAtST1lBTExPQ0tFRAAAAAAAAAAAAQAAAAAMV0JFVFdJVEhEUkFXAAAAAAAAAAACAAAAAA1ST1lBTFdJVEhEUkFXAAAAAAAAAAADAAAAAA1XQVZFU1dJVEhEUkFXAAAAAAAAAAAEAQAAABJJbmNyZW1lbnRXYWx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dFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAABndhbGxldAkBAAAAE0Zvcm1hdFBsYXllckJhbGFuY2UAAAAFCQABkQAAAAIFAAAAB2JhbGFuY2UFAAAACldCRVRMT0NLRUQJAAGRAAAAAgUAAAAHYmFsYW5jZQUAAAALUk9ZQUxMT0NLRUQJAAGRAAAAAgUAAAAHYmFsYW5jZQUAAAAMV0JFVFdJVEhEUkFXCQABkQAAAAIFAAAAB2JhbGFuY2UFAAAADFdCRVRXSVRIRFJBVwAAAAAAAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAZEAAAACBQAAAAdiYWxhbmNlBQAAAA1XQVZFU1dJVEhEUkFXBQAAAAR1bml0BQAAAANuaWwJAAACAAAAAQIAAAANSW52YWxpZCBhc3NldAAAAAFpAQAAAANmaXgAAAAACQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAQV0FMTEVUQ09VTlRFUktFWQAAAAAAAAAABAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAAAfJBzTw==", "chainId": 84, "height": 827987, "spentComplexity": 0 } View: original | compacted Prev: 4A9xrrFaADHuZbAQV16QFgd9tEMJhGkMhfBB6g3DXS6N Next: AXQVFLH5PTAH1k7NpkfEtBSvJgBBKjZmYACUwg2Su1a8 Diff:
OldNewDifferences
120120 then {
121121 let M = (r() + H.amount)
122122 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+ }
124129 }
125130 else throw("error")
126131 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "$WBET_LOCKED_AMOUNT"
55
66 let b = "$ROYAL_LOCKER_AMOUNT"
77
88 let c = "$WALLET_NUM"
99
1010 let d = base58'A4q1mYKo11yuH9gmvDodeJoksagcyQzeFE9JtphMWddw'
1111
1212 let e = base58'5a6rvDEiVwvhTvTH6ce2qFwqdCt3VKaHKXEpwLXXVvyy'
1313
1414 let f = Address(base58'3MtCy2PCFPyu8A9SRNL4qUo1V17SGLHftD8')
1515
1616 let g = 0
1717
1818 let h = 1
1919
2020 let i = 2
2121
2222 let j = 3
2323
2424 let k = 4
2525
2626 func l () = {
2727 let m = {
2828 let n = getInteger(this, c)
2929 if ($isInstanceOf(n, "Int"))
3030 then {
3131 let o = n
3232 o
3333 }
3434 else 0
3535 }
3636 (m + 1)
3737 }
3838
3939
4040 func p () = {
4141 let n = getInteger(this, a)
4242 if ($isInstanceOf(n, "Int"))
4343 then {
4444 let q = n
4545 q
4646 }
4747 else 0
4848 }
4949
5050
5151 func r () = {
5252 let n = getInteger(this, b)
5353 if ($isInstanceOf(n, "Int"))
5454 then {
5555 let q = n
5656 q
5757 }
5858 else 0
5959 }
6060
6161
6262 func s (t) = {
6363 let n = getString(this, t)
6464 if ($isInstanceOf(n, "String"))
6565 then {
6666 let u = n
6767 u
6868 }
6969 else "0_0_0_0_0"
7070 }
7171
7272
7373 func v (t) = {
7474 let n = getString(this, t)
7575 if ($isInstanceOf(n, "String"))
7676 then {
7777 let u = n
7878 true
7979 }
8080 else false
8181 }
8282
8383
8484 func w (x,y,z,A,B) = ((((((((toString(x) + "_") + toString(y)) + "_") + toString(z)) + "_") + toString(A)) + "_") + toString(B))
8585
8686
8787 func C (t) = {
8888 let D = split(s(t), "_")
8989 let E = parseIntValue(D[g])
9090 let F = parseIntValue(D[h])
9191 let z = parseIntValue(D[i])
9292 let A = parseIntValue(D[j])
9393 let B = parseIntValue(D[k])
9494 [E, F, z, A, B]
9595 }
9696
9797
9898 @Callable(G)
9999 func lock () = {
100100 let H = extract(G.payment)
101101 if (if ((H.assetId != d))
102102 then (H.assetId != e)
103103 else false)
104104 then throw("The token should be in WBET or ROYAL.")
105105 else {
106106 let t = toString(G.caller)
107107 let I = C(t)
108108 if ((H.assetId == d))
109109 then {
110110 let J = (p() + H.amount)
111111 let K = (I[g] + H.amount)
112112 if (v(t))
113113 then ScriptResult(WriteSet([DataEntry(a, J), DataEntry(t, w(K, I[h], I[i], I[j], I[k]))]), TransferSet(nil))
114114 else {
115115 let L = l()
116116 ScriptResult(WriteSet([DataEntry(c, L), DataEntry(a, J), DataEntry(t, w(K, I[h], I[i], I[j], I[k]))]), TransferSet(nil))
117117 }
118118 }
119119 else if ((H.assetId == e))
120120 then {
121121 let M = (r() + H.amount)
122122 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+ }
124129 }
125130 else throw("error")
126131 }
127132 }
128133
129134
130135
131136 @Callable(G)
132137 func unlock (O) = {
133138 let t = toString(G.caller)
134139 let I = C(t)
135140 if ((O == "WBET"))
136141 then if ((0 >= I[g]))
137142 then throw("You dont have enough balance to withdraw the amount requested.")
138143 else {
139144 let J = (p() - I[g])
140145 ScriptResult(WriteSet([DataEntry(a, J), DataEntry(t, w(0, I[h], I[i], I[j], I[k]))]), TransferSet([ScriptTransfer(G.caller, I[g], d)]))
141146 }
142147 else if ((O == "ROYAL"))
143148 then if ((0 >= I[h]))
144149 then throw("You dont have enough balance to withdraw the amount requested.")
145150 else {
146151 let M = (r() - I[h])
147152 ScriptResult(WriteSet([DataEntry(b, M), DataEntry(t, w(I[g], 0, I[i], I[j], I[k]))]), TransferSet([ScriptTransfer(G.caller, I[h], e)]))
148153 }
149154 else throw("Invalid asset")
150155 }
151156
152157
153158
154159 @Callable(G)
155160 func withdraw (O) = {
156161 let t = toString(G.caller)
157162 let I = C(t)
158163 if ((O == "WBET"))
159164 then if ((0 >= I[i]))
160165 then throw("You dont have enough balance to withdraw the amount requested.")
161166 else ScriptResult(WriteSet([DataEntry(t, w(I[g], I[h], 0, I[j], I[k]))]), TransferSet([ScriptTransfer(G.caller, I[i], d)]))
162167 else if ((O == "ROYAL"))
163168 then if ((0 >= I[j]))
164169 then throw("You dont have enough balance to withdraw the amount requested.")
165170 else ScriptResult(WriteSet([DataEntry(t, w(I[g], I[h], I[i], 0, I[k]))]), TransferSet([ScriptTransfer(G.caller, I[j], e)]))
166171 else if ((O == "WAVES"))
167172 then if ((0 >= I[k]))
168173 then throw("You dont have enough balance to withdraw the amount requested.")
169174 else ScriptResult(WriteSet([DataEntry(t, w(I[g], I[h], I[i], I[i], 0))]), TransferSet([ScriptTransfer(G.caller, I[k], unit)]))
170175 else throw("Invalid asset")
171176 }
172177
173178
174179
175180 @Callable(G)
176181 func fix () = ScriptResult(WriteSet([DataEntry(c, 4)]), TransferSet(nil))
177182
178183

github/deemru/w8io/026f985 
55.60 ms