tx · 3mq7iRczuz5gY9dc4mpYpZhMZu5p7Qkrid46Hp71C2x7

3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg:  -0.04000000 Waves

2021.08.24 01:13 [1671562] smart account 3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg > SELF 0.00000000 Waves

{ "type": 13, "id": "3mq7iRczuz5gY9dc4mpYpZhMZu5p7Qkrid46Hp71C2x7", "fee": 4000000, "feeAssetId": null, "timestamp": 1629756845938, "version": 2, "chainId": 84, "sender": "3MqkoGVxf9wAeNTiksudck7HuNKruh3W9yg", "senderPublicKey": "4adRtnahFnRGxzn67XppfF97pKLyUFPtNw5aCZ4NM9UV", "proofs": [ "2q42Zo49StkUgcdXmqqF1UkrpvDyMmNxfbG8T5H1FAegazLHFqmo9ieKPWMLsZBG5Q82198Pz32qiQgHGMvFs3JQ" ], "script": "base64:AAIFAAAAAAAAABgIAhIECgIIGBIDCgEIEgMKAQgSBAoCCAQAAAAHAAAAAAZjb25maWcJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAABmNvbmZpZwIAAAAAAAAAAAVhZG1pbgkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAGY29uZmlnAgAAAAVhZG1pbgIAAAAAAAAAAAVwb29scwkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIFAAAABHRoaXMCAAAABXBvb2xzAgAAABZObyBrZXkgYWRtaW4gd2FzIGZvdW5kAQAAAAdpc0FkbWluAAAAAQAAAA1jYWxsZXJBZGRyZXNzAwkAAAAAAAACBQAAAA1jYWxsZXJBZGRyZXNzCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAVhZG1pbgYHAQAAAAljaGVja1Bvb2wAAAABAAAAB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dGNoMAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAAXQJAAJZAAAAAQUAAAAHdG9rZW5JZAUAAAADbmlsCQAAAgAAAAECAAAAGEluY29ycmVjdCBpbnZva2UgcmVzdWx0IQkAAAIAAAABAgAAABRObyBwYXltZW50IGF0dGFjaGVkIQkAAAIAAAABAgAAABdQb29sIGFkZHJlc3Mgbm90IGZvdW5kIQAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5ymGi2w==", "height": 1671562, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HiBUgHxmrccbp22a7DeDKWWp7RNHA5K6TqtghP9pzptM Next: 4i1yD1SHJt1d9mFag9GBM2GLozbM8REQagurGnH4mdk1 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(addressFromStringValue(a), "admin"), "")
77
88 let c = valueOrErrorMessage(getString(this, "pools"), "No key admin 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 (d(m.caller))
2828 then true
2929 else (0 >= size(b)))
3030 then [h("config", n), h("poolsStrg", makeString(c, ";"))]
3131 else throw("Address does not match with admin address!")
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)
6262 let t = invoke(addressFromStringValue(o), "deposit", [s, r], m.payments)
6363 let u = getStringValue(addressFromStringValue(o), "dTokenId")
6464 let v = t
6565 if ($isInstanceOf(v, "Int"))
6666 then {
6767 let w = v
6868 [ScriptTransfer(m.caller, w, fromBase58String(u))]
6969 }
7070 else throw("Incorrect invoke result!")
7171 }
7272 else throw("No payment attached!")
7373 else throw("Pool address not found!")
7474
7575
7676 @Verifier(x)
7777 func y () = sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey)
7878

github/deemru/w8io/169f3d6 
35.57 ms