tx · epVcQybkxkVmEzmeCyd9ZzbtNjFrtQH3i4mUbyNEFFD

3MsAdR9GzaBRgjCNPXtPtGGMz7mKffHFSd8:  -0.04000000 Waves

2021.09.01 01:29 [1683116] smart account 3MsAdR9GzaBRgjCNPXtPtGGMz7mKffHFSd8 > SELF 0.00000000 Waves

{ "type": 13, "id": "epVcQybkxkVmEzmeCyd9ZzbtNjFrtQH3i4mUbyNEFFD", "fee": 4000000, "feeAssetId": null, "timestamp": 1630449054406, "version": 2, "chainId": 84, "sender": "3MsAdR9GzaBRgjCNPXtPtGGMz7mKffHFSd8", "senderPublicKey": "EUGSRsTjwWnuaJunshvtppK95VtPd811FAgEzJraTzXC", "proofs": [ "4GtEPzvszuEGPjRfYadyGprRVgAzMDqoQJHJnBg1wPpVwWnDXuDUjQimEbyM7fiAui1T9CWDhs2ay7EqCZcdLucp" ], "script": "base64:AAIFAAAAAAAAACgIAhIFCgMICAgSDAoKCAEBAQEBAQEBARIECgIICBIECgIIARIDCgEIAAAABAAAAAAMYWRtaW5BZGRyZXNzCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMCAAAABWFkbWluAgAAAAABAAAAC3dyaXRlU3RyaW5nAAAAAgAAAANrZXkAAAALc3RyaW5nVmFsdWUJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAA2tleQUAAAALc3RyaW5nVmFsdWUBAAAADHdyaXRlSW50ZWdlcgAAAAIAAAADa2V5AAAADGludGVnZXJWYWx1ZQkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAAA2tleQUAAAAMaW50ZWdlclZhbHVlAQAAAAdpc0FkbWluAAAAAQAAAA1jYWxsZXJBZGRyZXNzAwkAAAAAAAACBQAAAA1jYWxsZXJBZGRyZXNzCQACWQAAAAEFAAAADGFkbWluQWRkcmVzcwYHAAAABQAAAAFpAQAAABBzZXR1cERBcHBBZGRyZXNzAAAAAwAAAAVhZG1pbgAAAAt3YXZldHJvbGxlcgAAAApsaXF1aW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VJbnRlZ2VyAAAAAgUAAAADa2V5BQAAAAxpbnRlZ2VyVmFsdWUFAAAAA25pbAkAAAIAAAABAgAAACpBZGRyZXNzIGRvZXMgbm90IG1hdGNoIHdpdGggYWRtaW4gYWRkcmVzcyEAAAABaQEAAAASZGVsZXRlU3RvcmFnZUVudHJ5AAAAAQAAAANrZXkDCQEAAAAHaXNBZG1pbgAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAADa2V5BQAAAANuaWwJAAACAAAAAQIAAAAqQWRkcmVzcyBkb2VzIG5vdCBtYXRjaCB3aXRoIGFkbWluIGFkZHJlc3MhAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmPbqLw", "height": 1683116, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BcDC4KxvBSGZzGJ8Sq4WE22MtHt1KRWNu7HkXjWHB4Cq Next: CVeKDouLj3SmzWcSQpEDUvf6ad8Zj724m2d2MZ8yrun4 Diff:
OldNewDifferences
1515
1616
1717 @Callable(i)
18-func setupDAppAddress (j,k,l) = if ((0 >= size(a)))
18+func setupDAppAddress (j,k,l) = if (!(isDefined("admin")))
1919 then [b("admin", j), b("wavetroller", k), b("liquidator", l)]
20- else if ((i.caller.bytes == fromBase58String(a)))
21- then [b("admin", j), b("wavetroller", k), b("liquidator", l)]
22- else throw("Address does not match with admin address!")
20+ else throw("Address does not match with admin address!")
2321
2422
2523
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = valueOrElse(getString(this, "admin"), "")
55
66 func b (c,d) = StringEntry(c, d)
77
88
99 func e (c,f) = IntegerEntry(c, f)
1010
1111
1212 func g (h) = if ((h == fromBase58String(a)))
1313 then true
1414 else false
1515
1616
1717 @Callable(i)
18-func setupDAppAddress (j,k,l) = if ((0 >= size(a)))
18+func setupDAppAddress (j,k,l) = if (!(isDefined("admin")))
1919 then [b("admin", j), b("wavetroller", k), b("liquidator", l)]
20- else if ((i.caller.bytes == fromBase58String(a)))
21- then [b("admin", j), b("wavetroller", k), b("liquidator", l)]
22- else throw("Address does not match with admin address!")
20+ else throw("Address does not match with admin address!")
2321
2422
2523
2624 @Callable(i)
2725 func setupAssetParameter (m,n,o,p,q,r,s,t,u,v) = if (g(i.caller.bytes))
2826 then [e((m + "_Decimals"), n), e((m + "_CollateralFactor"), o), e((m + "_Threshold"), p), e((m + "_Penalty"), q), e((m + "_ReserveFactor"), r), e((m + "_Multiplier"), s), e((m + "_Kink"), t), e((m + "_JumpMultiplier"), u), e((m + "_BaseRate"), v)]
2927 else throw("Address does not match with admin address!")
3028
3129
3230
3331 @Callable(i)
3432 func updateStringEntry (c,d) = if (g(i.caller.bytes))
3533 then [b(c, d)]
3634 else throw("Address does not match with admin address!")
3735
3836
3937
4038 @Callable(i)
4139 func updateIntegerEntry (c,f) = if (g(i.caller.bytes))
4240 then [e(c, f)]
4341 else throw("Address does not match with admin address!")
4442
4543
4644
4745 @Callable(i)
4846 func deleteStorageEntry (c) = if (g(i.caller.bytes))
4947 then [DeleteEntry(c)]
5048 else throw("Address does not match with admin address!")
5149
5250
5351 @Verifier(w)
5452 func x () = sigVerify(w.bodyBytes, w.proofs[0], w.senderPublicKey)
5553

github/deemru/w8io/169f3d6 
38.08 ms