tx · 9y91Bw669JicyUpTKUtCTa1EpSY51fqNeYNE6GBcyB8g

3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ:  -0.01400000 Waves

2023.01.15 18:46 [2406265] smart account 3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ > SELF 0.00000000 Waves

{ "type": 13, "id": "9y91Bw669JicyUpTKUtCTa1EpSY51fqNeYNE6GBcyB8g", "fee": 1400000, "feeAssetId": null, "timestamp": 1673797662695, "version": 2, "chainId": 84, "sender": "3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ", "senderPublicKey": "6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez", "proofs": [ "3TyTo6AgipR6kzayDHrsRYVCYTYLgbhmanZFcg29p3zjGKvbehu8h5bDcphNLeW3ASuz5siMddkwCJmFPJMTgTSw" ], "script": "base64:AAIFAAAAAAAAAA4IAhIAEgMKAQESAwoBAQAAAAAAAAADAAAAAWkBAAAAD3BsYWNlb3B0aW9uQ2FsbAAAAAAEAAAADWNhbGxlcmFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAScmVhZF9vcmFjbGVfc3RhdHVzCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAA1vcmFjbGVfc3RhdHVzBAAAABRyZWFkX09wdGlvbkNvdW50ZXJJRAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAOMW1fY29udHJhY3RfaWQEAAAACmdldGJ0Y2RhdGEJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAHMW1fYnRjXwkAAaQAAAABBQAAABRyZWFkX09wdGlvbkNvdW50ZXJJRAQAAAAGc3dhcExpCQAEtQAAAAIFAAAACmdldGJ0Y2RhdGECAAAAAV8EAAAABXByaWNlCQABkQAAAAIFAAAABnN3YXBMaQAAAAAAAAAAA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eQAAAAICAAAAA2RpdgkAAZEAAAACBQAAAAZzd2FwTGkAAAAAAAAAAAMFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5dJGJ/g==", "height": 2406265, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C77P3aGL8Mw6XxZ6ig27HvkKKip9U6Smy5zPMCmgp1pm Next: DyWgXsgoUWzSifRFispC6Bu4RT59qs7bqBNjKSJtmMUW Diff:
OldNewDifferences
4646 @Callable(a)
4747 func ClaimCall (q) = {
4848 let b = toBase58String(a.caller.bytes)
49- let r = getStringValue(this, ((("Call_Start_End_" + b) + "_") + toString(q)))
50- let s = split(r, "_")
51- let t = s[0]
52- let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + t))
53-[StringEntry("Start_valeu", t), DeleteEntry(((("Call_Start_End_" + b) + "_") + toString(q))), DeleteEntry(((("Call_" + b) + "_") + toString(q)))]
49+ let r = ((("Call_" + b) + "_") + toString(q))
50+ let s = getStringValue(this, ((("Call_Start_End_" + b) + "_") + toString(q)))
51+ let t = split(s, "_")
52+ let u = t[0]
53+ let v = t[1]
54+ let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + u))
55+ let w = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + v))
56+ let x = (parseIntValue(e) - parseIntValue(w))
57+ if ((x > 0))
58+ then throw("Price is not Positive")
59+ else [StringEntry("Start_value", u), IntegerEntry("Price_Diff", x), DeleteEntry(((("Call_Start_End_" + b) + "_") + toString(q))), DeleteEntry(r)]
5460 }
5561
5662
5763
5864 @Callable(a)
59-func calldata (u) = {
60- let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + toString(u)))
65+func calldata (y) = {
66+ let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + toString(y)))
6167 let f = split(e, "_")
6268 let g = f[0]
63- let v = f[1]
64- let w = f[2]
65- let x = f[3]
69+ let z = f[1]
70+ let A = f[2]
71+ let B = f[3]
6672 [StringEntry("price", f[0]), StringEntry("time", f[1]), StringEntry("blockheight", f[2]), StringEntry("div", f[3])]
6773 }
6874
6975
70-@Verifier(y)
71-func z () = sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
76+@Verifier(C)
77+func D () = sigVerify(C.bodyBytes, C.proofs[0], C.senderPublicKey)
7278
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func placeoptionCall () = {
88 let b = toBase58String(a.caller.bytes)
99 let c = getStringValue(this, "oracle_status")
1010 let d = getIntegerValue(this, "1m_contract_id")
1111 let e = getStringValue(this, ("1m_btc_" + toString(d)))
1212 let f = split(e, "_")
1313 let g = f[0]
1414 let h = parseIntValue(f[2])
1515 let i = (height - h)
1616 let j = (d + 15)
1717 let k = {
1818 let l = getInteger(this, "Total_Calls")
1919 if ($isInstanceOf(l, "Int"))
2020 then {
2121 let m = l
2222 m
2323 }
2424 else 0
2525 }
2626 let n = (k + 1)
2727 let o = {
2828 let l = getInteger(this, (b + "_Total_Calls"))
2929 if ($isInstanceOf(l, "Int"))
3030 then {
3131 let m = l
3232 m
3333 }
3434 else 0
3535 }
3636 let p = (o + 1)
3737 if ((i > 2))
3838 then throw("Something Wrong with Oracle or Height is not matched.")
3939 else if ((c == "Close"))
4040 then throw("Oracle is closed. Wait Until Oracle is Turned On.")
4141 else [StringEntry(((("Call_" + b) + "_") + toString(p)), g), StringEntry(((("Call_Start_End_" + b) + "_") + toString(p)), ((toString(d) + "_") + toString(j))), IntegerEntry("Total_Calls", n), IntegerEntry((b + "_Total_Calls"), p)]
4242 }
4343
4444
4545
4646 @Callable(a)
4747 func ClaimCall (q) = {
4848 let b = toBase58String(a.caller.bytes)
49- let r = getStringValue(this, ((("Call_Start_End_" + b) + "_") + toString(q)))
50- let s = split(r, "_")
51- let t = s[0]
52- let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + t))
53-[StringEntry("Start_valeu", t), DeleteEntry(((("Call_Start_End_" + b) + "_") + toString(q))), DeleteEntry(((("Call_" + b) + "_") + toString(q)))]
49+ let r = ((("Call_" + b) + "_") + toString(q))
50+ let s = getStringValue(this, ((("Call_Start_End_" + b) + "_") + toString(q)))
51+ let t = split(s, "_")
52+ let u = t[0]
53+ let v = t[1]
54+ let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + u))
55+ let w = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + v))
56+ let x = (parseIntValue(e) - parseIntValue(w))
57+ if ((x > 0))
58+ then throw("Price is not Positive")
59+ else [StringEntry("Start_value", u), IntegerEntry("Price_Diff", x), DeleteEntry(((("Call_Start_End_" + b) + "_") + toString(q))), DeleteEntry(r)]
5460 }
5561
5662
5763
5864 @Callable(a)
59-func calldata (u) = {
60- let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + toString(u)))
65+func calldata (y) = {
66+ let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + toString(y)))
6167 let f = split(e, "_")
6268 let g = f[0]
63- let v = f[1]
64- let w = f[2]
65- let x = f[3]
69+ let z = f[1]
70+ let A = f[2]
71+ let B = f[3]
6672 [StringEntry("price", f[0]), StringEntry("time", f[1]), StringEntry("blockheight", f[2]), StringEntry("div", f[3])]
6773 }
6874
6975
70-@Verifier(y)
71-func z () = sigVerify(y.bodyBytes, y.proofs[0], y.senderPublicKey)
76+@Verifier(C)
77+func D () = sigVerify(C.bodyBytes, C.proofs[0], C.senderPublicKey)
7278

github/deemru/w8io/169f3d6 
27.55 ms