tx · FFrLygYMTPpHGDKLyvVRcFVYPTNi1b1GS7w3uj96HTcU

3MyV9Fm9cwW9W68VCGfPvejLujx7xVpJiKW:  -0.01400000 Waves

2020.01.12 13:50 [850720] smart account 3MyV9Fm9cwW9W68VCGfPvejLujx7xVpJiKW > SELF 0.00000000 Waves

{ "type": 13, "id": "FFrLygYMTPpHGDKLyvVRcFVYPTNi1b1GS7w3uj96HTcU", "fee": 1400000, "feeAssetId": null, "timestamp": 1578826246547, "version": 1, "sender": "3MyV9Fm9cwW9W68VCGfPvejLujx7xVpJiKW", "senderPublicKey": "8zVjiVAuhkkAyQsSHHvjkNNoN8WDKJAEBV5nSpiyyYWr", "proofs": [ "26fGgUU7eZuMoocyZUFwR6i95f98Xb5WrryjpYekmFnaocpesesEGKL4J8fYBazzWGe7k7eP7HyhyhuYV6WMNwEV" ], "script": "base64:AAIDAAAAAAAAABAIARIFCgMBCAESBQoDAQgBAAAABQAAAAAQZGFwcEFjb3VudFB1YktleQEAAAAgXEhEUm3PDwRAY2AliL4WiobL9+1WmvxN966h/S9Tg1gAAAAABnBhcjdJZAEAAAAgzlhA/ZjitMWTd+McxVJoK0GcLLGrEdV8aco355LpR4wAAAAABnVzZG5JZAEAAAAgImQ/Hr5gRukRahMT3KYz/hZ+B/l36bPyFfyZSSowCjcAAAAABWJ0Y0lkAQAAACC55z+qjxAm26PduiiTGHV+rQKiANia4ToJ1sVRNwsbjQAAAAAGZXVyb0lkAQAAACCSw5qKFqMqhCqerwy3G5JWNH0QK6GLgoZ1q6bNcyUwmwAAAAIAAAABaQEAAAAHZGVwb3NpdAAAAAMAAAAKY29tcGVTdGFydAAAAAJpZAAAAAVjb21wZQQAAAAIY29tcGVOdW0JAAGkAAAAAQUAAAAFY29tcGUEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAAlwYXltZW50SWQIBQAAAANwbXQAAAAHYXNzZXRJZAQAAAAKY3VycmVudEtleQkAAlgAAAABC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dSGiyiNsMW4efqcomnGqJs3UGu Next: 4G5RnDBDo4p2q2AqiKVEMBtbYviqKb51zAjakS9hHrPc Diff:
OldNewDifferences
5555 else 0
5656 }
5757 let q = (n - r)
58- if ((lastBlock.timestamp > g))
59- then throw("Can't withdraw compe start")
60- else if ((0 > r))
61- then throw("Can't withdraw negative amount")
62- else if ((0 > q))
63- then throw("Not enough balance")
64- else if ((h == "EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm"))
65- then ScriptResult(WriteSet([DataEntry(((((h + "_") + j) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, b)]))
66- else if ((h == "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC"))
67- then ScriptResult(WriteSet([DataEntry(((((h + "_") + j) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, c)]))
68- else if ((h == "DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn"))
69- then ScriptResult(WriteSet([DataEntry(((((h + "_") + j) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, d)]))
70- else if ((h == "AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ"))
71- then ScriptResult(WriteSet([DataEntry(((((h + "_") + j) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, e)]))
72- else if ((h == "WAVES"))
73- then ScriptResult(WriteSet([DataEntry(((((h + "_") + j) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, unit)]))
74- else throw("Can't withdraw")
58+ if ((0 > r))
59+ then throw("Can't withdraw negative amount")
60+ else if ((0 > q))
61+ then throw("Not enough balance")
62+ else if ((h == "EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm"))
63+ then ScriptResult(WriteSet([DataEntry(((((j + "_") + h) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, b)]))
64+ else if ((h == "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC"))
65+ then ScriptResult(WriteSet([DataEntry(((((j + "_") + h) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, c)]))
66+ else if ((h == "DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn"))
67+ then ScriptResult(WriteSet([DataEntry(((((j + "_") + h) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, d)]))
68+ else if ((h == "AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ"))
69+ then ScriptResult(WriteSet([DataEntry(((((j + "_") + h) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, e)]))
70+ else if ((h == "WAVES"))
71+ then ScriptResult(WriteSet([DataEntry(((((j + "_") + h) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, unit)]))
72+ else throw("Can't withdraw")
7573 }
7674
7775
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'7DERSZYEoBTSwaTrN1ktwnx1Y5D46mSpMSayUNs8CmcK'
55
66 let b = base58'EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm'
77
88 let c = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC'
99
1010 let d = base58'DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn'
1111
1212 let e = base58'AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ'
1313
1414 @Callable(f)
1515 func deposit (g,h,i) = {
1616 let j = toString(i)
1717 let k = extract(f.payment)
1818 let l = k.assetId
1919 let m = toBase58String(f.caller.bytes)
2020 let n = {
2121 let o = getInteger(this, m)
2222 if ($isInstanceOf(o, "Int"))
2323 then {
2424 let p = o
2525 p
2626 }
2727 else 0
2828 }
2929 let q = (n + k.amount)
3030 WriteSet([DataEntry(((((j + "_") + h) + "_") + m), q), DataEntry(((((j + "_") + h) + "_compeStart_") + m), g)])
3131 }
3232
3333
3434
3535 @Callable(f)
3636 func withdraw (r,h,i) = {
3737 let j = toString(i)
3838 let m = toBase58String(f.caller.bytes)
3939 let g = {
4040 let o = getInteger(this, ((((j + "_") + h) + "_compeStart_") + m))
4141 if ($isInstanceOf(o, "Int"))
4242 then {
4343 let p = o
4444 p
4545 }
4646 else 0
4747 }
4848 let n = {
4949 let o = getInteger(this, ((((j + "_") + h) + "_") + m))
5050 if ($isInstanceOf(o, "Int"))
5151 then {
5252 let p = o
5353 p
5454 }
5555 else 0
5656 }
5757 let q = (n - r)
58- if ((lastBlock.timestamp > g))
59- then throw("Can't withdraw compe start")
60- else if ((0 > r))
61- then throw("Can't withdraw negative amount")
62- else if ((0 > q))
63- then throw("Not enough balance")
64- else if ((h == "EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm"))
65- then ScriptResult(WriteSet([DataEntry(((((h + "_") + j) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, b)]))
66- else if ((h == "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC"))
67- then ScriptResult(WriteSet([DataEntry(((((h + "_") + j) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, c)]))
68- else if ((h == "DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn"))
69- then ScriptResult(WriteSet([DataEntry(((((h + "_") + j) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, d)]))
70- else if ((h == "AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ"))
71- then ScriptResult(WriteSet([DataEntry(((((h + "_") + j) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, e)]))
72- else if ((h == "WAVES"))
73- then ScriptResult(WriteSet([DataEntry(((((h + "_") + j) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, unit)]))
74- else throw("Can't withdraw")
58+ if ((0 > r))
59+ then throw("Can't withdraw negative amount")
60+ else if ((0 > q))
61+ then throw("Not enough balance")
62+ else if ((h == "EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm"))
63+ then ScriptResult(WriteSet([DataEntry(((((j + "_") + h) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, b)]))
64+ else if ((h == "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC"))
65+ then ScriptResult(WriteSet([DataEntry(((((j + "_") + h) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, c)]))
66+ else if ((h == "DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn"))
67+ then ScriptResult(WriteSet([DataEntry(((((j + "_") + h) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, d)]))
68+ else if ((h == "AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ"))
69+ then ScriptResult(WriteSet([DataEntry(((((j + "_") + h) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, e)]))
70+ else if ((h == "WAVES"))
71+ then ScriptResult(WriteSet([DataEntry(((((j + "_") + h) + "_") + m), q)]), TransferSet([ScriptTransfer(f.caller, r, unit)]))
72+ else throw("Can't withdraw")
7573 }
7674
7775
7876 @Verifier(s)
7977 func t () = {
8078 let o = s
8179 if ($isInstanceOf(o, "TransferTransaction"))
8280 then {
8381 let u = o
8482 sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey)
8583 }
8684 else if ($isInstanceOf(o, "SetScriptTransaction"))
8785 then {
8886 let v = o
8987 sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey)
9088 }
9189 else true
9290 }
9391

github/deemru/w8io/169f3d6 
50.24 ms