tx · 6WZjsTb3UjQnBUi7rMF7p7Hb7XXYnc8KUeWiQHHeUhu

3Muq5wV3BDmwMhJVZYV29DzxmK1omjyuibx:  -0.01400000 Waves

2019.12.30 15:44 [831832] smart account 3Muq5wV3BDmwMhJVZYV29DzxmK1omjyuibx > SELF 0.00000000 Waves

{ "type": 13, "id": "6WZjsTb3UjQnBUi7rMF7p7Hb7XXYnc8KUeWiQHHeUhu", "fee": 1400000, "feeAssetId": null, "timestamp": 1577709899454, "version": 1, "sender": "3Muq5wV3BDmwMhJVZYV29DzxmK1omjyuibx", "senderPublicKey": "2VedaSDtTc2zJEQPTDwrUiyjjbQAbFbjtyuFWe5HSt4S", "proofs": [ "2NE9rMBPHGnDUUZPVQSxH7ubnER7Z7ngohJDMCcwQSMsYQuQRqk8dpXQ952mQH1mC5QWkZnLYyhyakL1NLaUaatT" ], "script": "base64:AAIDAAAAAAAAABMIARIICgYIAQEBAQESABIDCgEIAAAAEgAAAAAOZHJhZ29uRnJ1aXRQdWIJAAJZAAAAAQIAAAAsNk1UU2ZERWJmWjlWcjdoeE4yUGtKVDZ0UXZDUFoxak43SzlMOGdDaVpuRjUAAAAADWRpdlByb2dyYW1QdWIJAAJZAAAAAQIAAAAsMlZlZGFTRHRUYzJ6SkVRUFREd3JVaXlqamJRQWJGYmp0eXVGV2U1SFN0NFMAAAAACGFkbWluUHViCQACWQAAAAECAAAALDV5amNmdkg2aXV3cmtGZ2hYdVdhSmVNcHBhUTg5M0ZTczhIQ0FnVlF6dU5ZAAAAAAx3YXZlc0Fzc2V0SWQFAAAABHVuaXQAAAAACmJ0Y0Fzc2V0SWQBAAAAIGw2svbUHBLcx3bdEkweEtAA7iFIG3KIbsVzvK0POdsqAAAAAApldGhBc3NldElkAQAAACA4bs5FVt7Ax9sDrZr+iUOq6OcehVaQAjpoAtv2uen+FQAAAAAKbHRjQXNzZXRJZAEAAAAg6CIv7HSbViz3QYRuEC38aHBhr9J9Sz2LpOTF5OT5oDQAAAAAC3dlc3R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uc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQkAAlkAAAABBQAAAAxkZXBvc2l0T3duZXIFAAAAEmRpdmlkZW5kc0F2YWxpYWJsZQUAAAAHYXNzZXRJZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAZ9LtjQ", "chainId": 84, "height": 831832, "spentComplexity": 0 } View: original | compacted Prev: 4Sjx5AjS1w4oTGPZdBtH1QM6DcDSrTjseCXywWPfD7vD Next: none Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = "3MzDG9rt13Eu5uw4mZqkG5axDiijvVSDbjc"
4+let a = fromBase58String("6MTSfDEbfZ9Vr7hxN2PkJT6tQvCPZ1jN7K9L8gCiZnF5")
55
66 let b = fromBase58String("2VedaSDtTc2zJEQPTDwrUiyjjbQAbFbjtyuFWe5HSt4S")
77
144144 let H = t(m, O.amount)
145145 let P = getString(this, (m + "_DepositState"))
146146 if ((P == "Created"))
147- then ScriptResult(WriteSet([DataEntry("_Operation", height), DataEntry((m + "_DepositOwner"), M), DataEntry((m + "_DepositState"), "Active"), DataEntry((m + "_DividendWithdrawn"), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(a), H, O.assetId)]))
147+ then ScriptResult(WriteSet([DataEntry("_Operation", height), DataEntry((m + "_DepositOwner"), M), DataEntry((m + "_DepositState"), "Active"), DataEntry((m + "_DividendWithdrawn"), 0)]), TransferSet([ScriptTransfer(addressFromPublicKey(a), H, O.assetId)]))
148148 else throw("Deposit is unavailable")
149149 }
150150
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = "3MzDG9rt13Eu5uw4mZqkG5axDiijvVSDbjc"
4+let a = fromBase58String("6MTSfDEbfZ9Vr7hxN2PkJT6tQvCPZ1jN7K9L8gCiZnF5")
55
66 let b = fromBase58String("2VedaSDtTc2zJEQPTDwrUiyjjbQAbFbjtyuFWe5HSt4S")
77
88 let c = fromBase58String("5yjcfvH6iuwrkFghXuWaJeMppaQ893FSs8HCAgVQzuNY")
99
1010 let d = unit
1111
1212 let e = base58'8HRQdqJBBeqZvgMtg6we6sw11i5GzpFNs7onNeVRBmaq'
1313
1414 let f = base58'4oHq3C7ar7kmcRHEZBrgPyGtU6fkqJ1pHoRYboKeYSWQ'
1515
1616 let g = base58'Gd9pdZw9muDBZwwsQLqyigRJCDABbiJaksmemzFCorsV'
1717
1818 let h = base58'C2Pz1Q9QYaF9MkK9J9mX9vAMVc25R3w6Lr5g5B5Yje87'
1919
2020 let i = base58'AMQkRmWSWHEd1nMDvDZFkadoCFCxRkDzBsEbscJ9ZZ2P'
2121
2222 func j (k) = if ((k == c))
2323 then k
2424 else throw("You cannot create deposits")
2525
2626
2727 func l (m,k) = {
2828 let n = getString(this, (m + "_DepositOwner"))
2929 if ((k == n))
3030 then k
3131 else throw("Only deposit owner can withdrawal dividends")
3232 }
3333
3434
3535 func o (m) = {
3636 let p = (m + "_DepositOwner")
3737 let q = getString(this, p)
3838 let r = q
3939 if ($isInstanceOf(r, "String"))
4040 then {
4141 let s = r
4242 true
4343 }
4444 else false
4545 }
4646
4747
4848 func t (m,u) = {
4949 let p = (m + "_DepositAmount")
5050 let q = getInteger(this, p)
5151 let v = {
5252 let r = q
5353 if ($isInstanceOf(r, "Int"))
5454 then {
5555 let s = r
5656 s
5757 }
5858 else throw("Couldn't find deposit amount")
5959 }
6060 if ((u == v))
6161 then u
6262 else throw("Amount is incorrect")
6363 }
6464
6565
6666 func w (x) = if (!(isDefined(x)))
6767 then "WAVES"
6868 else if ((x == e))
6969 then "BTC"
7070 else if ((x == f))
7171 then "ETH"
7272 else if ((x == g))
7373 then "LTC"
7474 else if ((x == h))
7575 then "WEST"
7676 else if ((x == i))
7777 then "WCT"
7878 else throw("AssetId is incorrect")
7979
8080
8181 func y (m) = if ((m == "WAVES"))
8282 then d
8383 else if ((m == "BTC"))
8484 then e
8585 else if ((m == "ETH"))
8686 then f
8787 else if ((m == "LTC"))
8888 then g
8989 else if ((m == "WEST"))
9090 then h
9191 else if ((m == "WCT"))
9292 then i
9393 else throw("Asset name is incorrect")
9494
9595
9696 func z (m) = {
9797 let p = (m + "_DividendPercent")
9898 let q = getInteger(this, p)
9999 let r = q
100100 if ($isInstanceOf(r, "Int"))
101101 then {
102102 let s = r
103103 s
104104 }
105105 else throw("Couldn't Find dividend percent")
106106 }
107107
108108
109109 func A (m) = {
110110 let q = getInteger(this, (m + "_DividendWithdrawn"))
111111 let r = q
112112 if ($isInstanceOf(r, "Int"))
113113 then {
114114 let s = r
115115 s
116116 }
117117 else 0
118118 }
119119
120120
121121 func B (x,C,D) = {
122122 let E = (assetBalance(this, x) + C)
123123 let F = ((E * D) / 100)
124124 (F - C)
125125 }
126126
127127
128128 @Callable(G)
129129 func createDeposit (m,H,I,J,K,L) = {
130130 let M = j(G.callerPublicKey)
131131 let N = o(m)
132132 if (N)
133133 then throw("Deposit is already created")
134134 else WriteSet([DataEntry((m + "_DepositState"), "Created"), DataEntry((m + "_DepositAmount"), H), DataEntry((m + "_DividendPercent"), I), DataEntry((m + "_DepositStartBlock"), J), DataEntry((m + "_DepositStartTimestamp"), L), DataEntry((m + "_DepositDurationBlock"), K)])
135135 }
136136
137137
138138
139139 @Callable(G)
140140 func deposit () = {
141141 let M = toBase58String(G.callerPublicKey)
142142 let O = extract(G.payment)
143143 let m = w(O.assetId)
144144 let H = t(m, O.amount)
145145 let P = getString(this, (m + "_DepositState"))
146146 if ((P == "Created"))
147- then ScriptResult(WriteSet([DataEntry("_Operation", height), DataEntry((m + "_DepositOwner"), M), DataEntry((m + "_DepositState"), "Active"), DataEntry((m + "_DividendWithdrawn"), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(a), H, O.assetId)]))
147+ then ScriptResult(WriteSet([DataEntry("_Operation", height), DataEntry((m + "_DepositOwner"), M), DataEntry((m + "_DepositState"), "Active"), DataEntry((m + "_DividendWithdrawn"), 0)]), TransferSet([ScriptTransfer(addressFromPublicKey(a), H, O.assetId)]))
148148 else throw("Deposit is unavailable")
149149 }
150150
151151
152152
153153 @Callable(G)
154154 func withdrawDividends (m) = {
155155 let x = y(m)
156156 let n = l(m, toBase58String(G.callerPublicKey))
157157 let D = z(m)
158158 let C = A(m)
159159 let Q = B(x, C, D)
160160 ScriptResult(WriteSet([DataEntry((m + "_DividendWithdrawn"), (C + Q))]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(n)), Q, x)]))
161161 }
162162
163163
164164 @Verifier(R)
165165 func S () = true
166166

github/deemru/w8io/026f985 
40.37 ms