tx · BWSrYbV69N6nEcxfTrHbC4ydijRhgLh4SEBn29tsdFSJ

3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV:  -0.00200000 Waves

2023.04.25 22:50 [2550512] smart account 3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV > SELF 0.00000000 Waves

{ "type": 13, "id": "BWSrYbV69N6nEcxfTrHbC4ydijRhgLh4SEBn29tsdFSJ", "fee": 200000, "feeAssetId": null, "timestamp": 1682452228725, "version": 1, "sender": "3MtEi5vvwnSsHxTQh7L1tN1TqUWDzZGotZV", "senderPublicKey": "5vatV6DGBbB26P6sid7YsMydWWke53vKCsAM2akKuXXm", "proofs": [ "2jKBsptdMPmdU9M3YMXhxtAQPtAUJFXaRxxqWwtyJPmrycPwawtpxkVwqxD3zuiy7iU473D3M3zzvgbazVtQuvtF" ], "script": "base64:BgIECAISAAUACHJlY2VpdmVyCQEHQWRkcmVzcwEBGgFUGka9OmWcMzmsn6UEd761d70UF0omV1ldAAFyCQEHQWRkcmVzcwEBGgFU0bzJU35CJJvLVpUtc7pcARyHATi9z6uUAAFzCQEHQWRkcmVzcwEBGgFUBdDRB9MyA3sY2aNrXhTUhmsB2dXLhEFoAAF3CQEHQWRkcmVzcwEBGgFUj/pdlJyLAVLnyQL4NA8O85EC0Jc5XAYNAQxnZXRJbnRPclplcm8BA2tleQkBC3ZhbHVlT3JFbHNlAgkAnwgBBQNrZXkAAAEBaQEEdGVzdAADCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAgpvbmx5IGFkbWluBAFlCQCkAwEJARFAZXh0ck5hdGl2ZSgxMDUwKQIFAXMJAKwCAgIeU0lHTkVEX0VWRU5UX0VYRUNVVE9SX18xMDAwMV9fCQCkAwEJAGUCCQERQGV4dHJOYXRpdmUoMTA1MCkCBQFzAiJTSUdORURfRVZFTlRfRVhFQ1VUT1JfXzEwMDAxX19TSVpFAAEEAWQJALUJAgkBEUBleHRyTmF0aXZlKDEwNTMpAgUBdwkAr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lzIG5vdCBlcXVhbCB0byBpdHNlbGYuAB4i5Fk=", "chainId": 84, "height": 2550512, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8HqPG1CBpekyqNYrU4MJX14oNBSxqg8cSdWFpGhqvgRg Next: 74ASc55Ga7bRAtFT6SxUoKdEvTA9spQbSJX8qcDMHzTv Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = Address(base58'3MyvTz5YdGcLnsDW9EscXaAiN5CgHfRaGQ3')
4+let a = Address(base58'3MrK25xAkfYJt1VYu9ZVMmQhZD8XwrT1DgQ')
55
6-let b = Address(base58'3MrK25xAkfYJt1VYu9ZVMmQhZD8XwrT1DgQ')
6+let b = Address(base58'3N935A8AAp2u1isbYYqX3Kp9prZmHF6kNps')
77
8-let c = Address(base58'3N935A8AAp2u1isbYYqX3Kp9prZmHF6kNps')
8+let c = Address(base58'3MpSqJhv64PR2m7Ywctv1Mp2Kjt3EUk3CSK')
99
10-let d = Address(base58'3MpSqJhv64PR2m7Ywctv1Mp2Kjt3EUk3CSK')
10+let d = Address(base58'3N33NL4BGxFEEiXKgnENVRDiE3RwkYmaNmS')
1111
12-let e = Address(base58'3N33NL4BGxFEEiXKgnENVRDiE3RwkYmaNmS')
13-
14-func f (g) = valueOrElse(getInteger(g), 0)
12+func e (f) = valueOrElse(getInteger(f), 0)
1513
1614
17-@Callable(h)
18-func test () = if ((h.caller != a))
15+@Callable(g)
16+func test () = if ((g.caller != this))
1917 then throw("only admin")
2018 else {
21- let i = toString(getIntegerValue(d, ("SIGNED_EVENT_EXECUTOR__10001__" + toString((getIntegerValue(d, "SIGNED_EVENT_EXECUTOR__10001__SIZE") - 1)))))
22- let j = split(getStringValue(e, ("WAVES_EVENT__" + i)), "__")
23- let k = split(j[5], "####")
24- let l = invoke(c, "execute", [j[3], j[4], k, parseIntValue(j[0]), parseIntValue(j[1]), parseIntValue(j[2]), j[6], toBase58String((fromBase58String(getStringValue(d, ("R_SIGMA__10001__" + i))) + fromBase58String(getStringValue(d, ("S_SIGMA__10001__" + i)))))], nil)
25- if ((l == l))
19+ let h = toString(getIntegerValue(c, ("SIGNED_EVENT_EXECUTOR__10001__" + toString((getIntegerValue(c, "SIGNED_EVENT_EXECUTOR__10001__SIZE") - 1)))))
20+ let i = split(getStringValue(d, ("WAVES_EVENT__" + h)), "__")
21+ let j = split(i[5], "####")
22+ let k = invoke(b, "execute", [i[3], i[4], j, parseIntValue(i[0]), parseIntValue(i[1]), parseIntValue(i[2]), i[6], toBase58String((fromBase58String(getStringValue(c, ("R_SIGMA__10001__" + h))) + fromBase58String(getStringValue(c, ("S_SIGMA__10001__" + h)))))], nil)
23+ if ((k == k))
2624 then {
27- let m = addressFromStringValue(k[1])
28- let n = getStringValue(m, "ASSET")
29- let o = fromBase58String(n)
30- let p = assetBalance(this, o)
31-[ScriptTransfer(b, p, o), IntegerEntry(((("profit_" + n) + "_") + toString(lastBlock.timestamp)), p), IntegerEntry(("totalProfit_" + n), (f(("totalProfit_" + n)) + p))]
25+ let l = addressFromStringValue(j[1])
26+ let m = getStringValue(l, "ASSET")
27+ let n = fromBase58String(m)
28+ let o = assetBalance(this, n)
29+[ScriptTransfer(a, o, n), IntegerEntry(((("profit_" + m) + "_") + toString(lastBlock.timestamp)), o), IntegerEntry(("totalProfit_" + m), (e(("totalProfit_" + m)) + o))]
3230 }
3331 else throw("Strict value is not equal to itself.")
3432 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = Address(base58'3MyvTz5YdGcLnsDW9EscXaAiN5CgHfRaGQ3')
4+let a = Address(base58'3MrK25xAkfYJt1VYu9ZVMmQhZD8XwrT1DgQ')
55
6-let b = Address(base58'3MrK25xAkfYJt1VYu9ZVMmQhZD8XwrT1DgQ')
6+let b = Address(base58'3N935A8AAp2u1isbYYqX3Kp9prZmHF6kNps')
77
8-let c = Address(base58'3N935A8AAp2u1isbYYqX3Kp9prZmHF6kNps')
8+let c = Address(base58'3MpSqJhv64PR2m7Ywctv1Mp2Kjt3EUk3CSK')
99
10-let d = Address(base58'3MpSqJhv64PR2m7Ywctv1Mp2Kjt3EUk3CSK')
10+let d = Address(base58'3N33NL4BGxFEEiXKgnENVRDiE3RwkYmaNmS')
1111
12-let e = Address(base58'3N33NL4BGxFEEiXKgnENVRDiE3RwkYmaNmS')
13-
14-func f (g) = valueOrElse(getInteger(g), 0)
12+func e (f) = valueOrElse(getInteger(f), 0)
1513
1614
17-@Callable(h)
18-func test () = if ((h.caller != a))
15+@Callable(g)
16+func test () = if ((g.caller != this))
1917 then throw("only admin")
2018 else {
21- let i = toString(getIntegerValue(d, ("SIGNED_EVENT_EXECUTOR__10001__" + toString((getIntegerValue(d, "SIGNED_EVENT_EXECUTOR__10001__SIZE") - 1)))))
22- let j = split(getStringValue(e, ("WAVES_EVENT__" + i)), "__")
23- let k = split(j[5], "####")
24- let l = invoke(c, "execute", [j[3], j[4], k, parseIntValue(j[0]), parseIntValue(j[1]), parseIntValue(j[2]), j[6], toBase58String((fromBase58String(getStringValue(d, ("R_SIGMA__10001__" + i))) + fromBase58String(getStringValue(d, ("S_SIGMA__10001__" + i)))))], nil)
25- if ((l == l))
19+ let h = toString(getIntegerValue(c, ("SIGNED_EVENT_EXECUTOR__10001__" + toString((getIntegerValue(c, "SIGNED_EVENT_EXECUTOR__10001__SIZE") - 1)))))
20+ let i = split(getStringValue(d, ("WAVES_EVENT__" + h)), "__")
21+ let j = split(i[5], "####")
22+ let k = invoke(b, "execute", [i[3], i[4], j, parseIntValue(i[0]), parseIntValue(i[1]), parseIntValue(i[2]), i[6], toBase58String((fromBase58String(getStringValue(c, ("R_SIGMA__10001__" + h))) + fromBase58String(getStringValue(c, ("S_SIGMA__10001__" + h)))))], nil)
23+ if ((k == k))
2624 then {
27- let m = addressFromStringValue(k[1])
28- let n = getStringValue(m, "ASSET")
29- let o = fromBase58String(n)
30- let p = assetBalance(this, o)
31-[ScriptTransfer(b, p, o), IntegerEntry(((("profit_" + n) + "_") + toString(lastBlock.timestamp)), p), IntegerEntry(("totalProfit_" + n), (f(("totalProfit_" + n)) + p))]
25+ let l = addressFromStringValue(j[1])
26+ let m = getStringValue(l, "ASSET")
27+ let n = fromBase58String(m)
28+ let o = assetBalance(this, n)
29+[ScriptTransfer(a, o, n), IntegerEntry(((("profit_" + m) + "_") + toString(lastBlock.timestamp)), o), IntegerEntry(("totalProfit_" + m), (e(("totalProfit_" + m)) + o))]
3230 }
3331 else throw("Strict value is not equal to itself.")
3432 }
3533
3634

github/deemru/w8io/026f985 
26.07 ms