tx · 53KxhBviNmpUGFFGHrVgFqbiAcxbA7ZpGjTkrkhsa6Ca

3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg:  -0.04000000 Waves

2021.08.31 23:05 [1682969] smart account 3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg > SELF 0.00000000 Waves

{ "type": 13, "id": "53KxhBviNmpUGFFGHrVgFqbiAcxbA7ZpGjTkrkhsa6Ca", "fee": 4000000, "feeAssetId": null, "timestamp": 1630440345957, "version": 2, "chainId": 84, "sender": "3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg", "senderPublicKey": "4adRtnahFnRGxzn67XppfF97pKLyUFPtNw5aCZ4NM9UV", "proofs": [ "4V2mUqSZVV9AWXQMsg8wi7Ndje6Vzf9jhp8JheSCkqcXr1i8c7MSkmcrbgoXKYvATRWWDzxRjPX33mrXvLuc35fY" ], "script": "base64:AAIFAAAAAAAAABgIAhIECgIIGBIDCgEIEgMKAQgSBAoCCAQAAAAHAAAAAAZjb25maWcJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAABmNvbmZpZwIAAAAAAAAAAAVhZG1pbgkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAAFYWRtaW4CAAAAAAAAAAAFcG9vbHMJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAAVwb29scwIAAAAWTm8ga2V5IHBvb2xzIHdhcyBmb3VuZAEAAAAHaXNBZG1pbgAAAAEAAAANY2FsbGVyQWRkcmVzcwMJAAAAAAAAAgUAAAANY2FsbGVyQWRkcmVzcwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAFYWRtaW4GBwEAAAAJY2hlY2tQb29sAAAAAQAAAAdwb29sQWRkAwkBAAAACGNvbnRhaW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kFtb3VudAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAF0BQAAAAckbWF0Y2gwCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAABdAkAAlkAAAABBQAAAAd0b2tlbklkBQAAAANuaWwJAAACAAAAAQIAAAAYSW5jb3JyZWN0IGludm9rZSByZXN1bHQhCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAABRObyBwYXltZW50IGF0dGFjaGVkIQkAAAIAAAABAgAAABdQb29sIGFkZHJlc3Mgbm90IGZvdW5kIQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5pOVelw==", "height": 1682969, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Cmz6MFHWwua2xPaQAjoeZf6uX4qcsWBuF5aB8DND9Svy Next: none Diff:
OldNewDifferences
5959 then if ((size(m.payments) > 0))
6060 then {
6161 let s = toBase58String(m.caller.bytes)
62- let t = invoke(addressFromStringValue(o), "deposit", [s, r], m.payments)
63- let u = getStringValue(addressFromStringValue(o), "dTokenId")
64- let v = t
65- if ($isInstanceOf(v, "Int"))
62+ let t = invoke(addressFromStringValue("3NAToHPcRGMR4M2pUpy6gPcpiMX5via7vf9"), "deposit", [s, r], m.payments)
63+ if ((t == t))
6664 then {
67- let w = v
65+ let u = getStringValue(addressFromStringValue(o), "dTokenId")
66+ let v = t
67+ if ($isInstanceOf(v, "Int"))
68+ then {
69+ let w = v
6870 [ScriptTransfer(m.caller, w, fromBase58String(u))]
71+ }
72+ else throw("Incorrect invoke result!")
6973 }
70- else throw("Incorrect invoke result!")
74+ else throw("Strict value is not equal to itself.")
7175 }
7276 else throw("No payment attached!")
7377 else throw("Pool address not found!")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = valueOrElse(getStringValue(this, "config"), "")
55
66 let b = valueOrElse(getStringValue(this, "admin"), "")
77
88 let c = valueOrErrorMessage(getString(this, "pools"), "No key pools was found")
99
1010 func d (e) = if ((e == addressFromStringValue(b)))
1111 then true
1212 else false
1313
1414
1515 func f (g) = if (contains(c, g))
1616 then true
1717 else false
1818
1919
2020 func h (i,j) = StringEntry(i, j)
2121
2222
2323 func k (i,l) = IntegerEntry(i, l)
2424
2525
2626 @Callable(m)
2727 func setup (n,c) = if (if (!(isDefined("config")))
2828 then !(isDefined("pools"))
2929 else false)
3030 then [h("config", n), h("pools", makeString(c, ";"))]
3131 else throw("Admin and config address already definied!")
3232
3333
3434
3535 @Callable(m)
3636 func addPool (o) = if (d(m.caller))
3737 then {
3838 let p = split(c, ";")
3939 if ((containsElement(p, o) == false))
4040 then {
4141 let q = (p :+ o)
4242 [h("pools", makeString(q, ";"))]
4343 }
4444 else throw("Pool already exists!")
4545 }
4646 else throw("Address does not match with admin address!")
4747
4848
4949
5050 @Callable(m)
5151 func updateConfig (n) = if (d(m.caller))
5252 then [h("config", n)]
5353 else throw("Address does not match with admin address!")
5454
5555
5656
5757 @Callable(m)
5858 func depositAt (o,r) = if (f(o))
5959 then if ((size(m.payments) > 0))
6060 then {
6161 let s = toBase58String(m.caller.bytes)
62- let t = invoke(addressFromStringValue(o), "deposit", [s, r], m.payments)
63- let u = getStringValue(addressFromStringValue(o), "dTokenId")
64- let v = t
65- if ($isInstanceOf(v, "Int"))
62+ let t = invoke(addressFromStringValue("3NAToHPcRGMR4M2pUpy6gPcpiMX5via7vf9"), "deposit", [s, r], m.payments)
63+ if ((t == t))
6664 then {
67- let w = v
65+ let u = getStringValue(addressFromStringValue(o), "dTokenId")
66+ let v = t
67+ if ($isInstanceOf(v, "Int"))
68+ then {
69+ let w = v
6870 [ScriptTransfer(m.caller, w, fromBase58String(u))]
71+ }
72+ else throw("Incorrect invoke result!")
6973 }
70- else throw("Incorrect invoke result!")
74+ else throw("Strict value is not equal to itself.")
7175 }
7276 else throw("No payment attached!")
7377 else throw("Pool address not found!")
7478
7579
7680 @Verifier(x)
7781 func y () = sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey)
7882

github/deemru/w8io/169f3d6 
28.28 ms