tx · 4i1yD1SHJt1d9mFag9GBM2GLozbM8REQagurGnH4mdk1

3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg:  -0.04000000 Waves

2021.08.24 01:15 [1671563] smart account 3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg > SELF 0.00000000 Waves

{ "type": 13, "id": "4i1yD1SHJt1d9mFag9GBM2GLozbM8REQagurGnH4mdk1", "fee": 4000000, "feeAssetId": null, "timestamp": 1629757002431, "version": 2, "chainId": 84, "sender": "3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg", "senderPublicKey": "4adRtnahFnRGxzn67XppfF97pKLyUFPtNw5aCZ4NM9UV", "proofs": [ "43Fra1jYmXgnKcVsofffznPQu1ZJgRAZD2pyD1ao6r9d1sM1pXAvNd7wFsf9gLEfAFhKXzcDyy6hNQ7uiens6zyL" ], "script": "base64:AAIFAAAAAAAAABgIAhIECgIIGBIDCgEIEgMKAQgSBAoCCAQAAAAHAAAAAAZjb25maWcJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAABmNvbmZpZwIAAAAAAAAAAAVhZG1pbgMJAQAAAAIhPQAAAAIFAAAABmNvbmZpZwIAAAAACQEAAAALdmFsdWVPckVsc2UAAAACCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAZjb25maWcCAAAABWFkbWluAgAAAAACAAAAAAAAAAAFcG9vbHMJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAAVwb29scwIAAAAWTm8ga2V5IGFkbWluIHdhcyBmb3VuZAEAAAAHaXNBZG1pbgAAAAEAAAANY2FsbGVyQWRkcmVzcwMJAAAAAAAAAgUAAAANY2FsbGVyQWRkcmVzcwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAFYWRtaW4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y2gwAgAAAANJbnQEAAAAAXQFAAAAByRtYXRjaDAJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAF0CQACWQAAAAEFAAAAB3Rva2VuSWQFAAAAA25pbAkAAAIAAAABAgAAABhJbmNvcnJlY3QgaW52b2tlIHJlc3VsdCEJAAACAAAAAQIAAAAUTm8gcGF5bWVudCBhdHRhY2hlZCEJAAACAAAAAQIAAAAXUG9vbCBhZGRyZXNzIG5vdCBmb3VuZCEAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlee78Oa8=", "height": 1671563, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3mq7iRczuz5gY9dc4mpYpZhMZu5p7Qkrid46Hp71C2x7 Next: 4Uh1wmrHXoMKXfQd6i6M8CvWta84kmeSo3U5FSjtnNiA Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let a = valueOrElse(getStringValue(this, "config"), "")
55
6-let b = valueOrElse(getStringValue(addressFromStringValue(a), "admin"), "")
6+let b = if ((a != ""))
7+ then valueOrElse(getStringValue(addressFromStringValue(a), "admin"), "")
8+ else ""
79
810 let c = valueOrErrorMessage(getString(this, "pools"), "No key admin was found")
911
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = valueOrElse(getStringValue(this, "config"), "")
55
6-let b = valueOrElse(getStringValue(addressFromStringValue(a), "admin"), "")
6+let b = if ((a != ""))
7+ then valueOrElse(getStringValue(addressFromStringValue(a), "admin"), "")
8+ else ""
79
810 let c = valueOrErrorMessage(getString(this, "pools"), "No key admin was found")
911
1012 func d (e) = if ((e == addressFromStringValue(b)))
1113 then true
1214 else false
1315
1416
1517 func f (g) = if (contains(c, g))
1618 then true
1719 else false
1820
1921
2022 func h (i,j) = StringEntry(i, j)
2123
2224
2325 func k (i,l) = IntegerEntry(i, l)
2426
2527
2628 @Callable(m)
2729 func setup (n,c) = if (if (d(m.caller))
2830 then true
2931 else (0 >= size(b)))
3032 then [h("config", n), h("poolsStrg", makeString(c, ";"))]
3133 else throw("Address does not match with admin address!")
3234
3335
3436
3537 @Callable(m)
3638 func addPool (o) = if (d(m.caller))
3739 then {
3840 let p = split(c, ";")
3941 if ((containsElement(p, o) == false))
4042 then {
4143 let q = (p :+ o)
4244 [h("pools", makeString(q, ";"))]
4345 }
4446 else throw("Pool already exists!")
4547 }
4648 else throw("Address does not match with admin address!")
4749
4850
4951
5052 @Callable(m)
5153 func updateConfig (n) = if (d(m.caller))
5254 then [h("config", n)]
5355 else throw("Address does not match with admin address!")
5456
5557
5658
5759 @Callable(m)
5860 func depositAt (o,r) = if (f(o))
5961 then if ((size(m.payments) > 0))
6062 then {
6163 let s = toBase58String(m.caller.bytes)
6264 let t = invoke(addressFromStringValue(o), "deposit", [s, r], m.payments)
6365 let u = getStringValue(addressFromStringValue(o), "dTokenId")
6466 let v = t
6567 if ($isInstanceOf(v, "Int"))
6668 then {
6769 let w = v
6870 [ScriptTransfer(m.caller, w, fromBase58String(u))]
6971 }
7072 else throw("Incorrect invoke result!")
7173 }
7274 else throw("No payment attached!")
7375 else throw("Pool address not found!")
7476
7577
7678 @Verifier(x)
7779 func y () = sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey)
7880

github/deemru/w8io/169f3d6 
23.18 ms