tx · DyWgXsgoUWzSifRFispC6Bu4RT59qs7bqBNjKSJtmMUW

3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ:  -0.01400000 Waves

2023.01.15 18:48 [2406266] smart account 3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ > SELF 0.00000000 Waves

{ "type": 13, "id": "DyWgXsgoUWzSifRFispC6Bu4RT59qs7bqBNjKSJtmMUW", "fee": 1400000, "feeAssetId": null, "timestamp": 1673797748562, "version": 2, "chainId": 84, "sender": "3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ", "senderPublicKey": "6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez", "proofs": [ "4Wxe5595NaL7PeGmYGhCFHRiBd8RtLWBFjHEfskMigPPVBc9hwWbFHKvLAefZY562grAq3E9A9QcDYVAnXfFStFe" ], "script": "base64:AAIFAAAAAAAAAA4IAhIAEgMKAQESAwoBAQAAAAAAAAADAAAAAWkBAAAAD3BsYWNlb3B0aW9uQ2FsbAAAAAAEAAAADWNhbGxlcmFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAScmVhZF9vcmFjbGVfc3RhdHVzCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAA1vcmFjbGVfc3RhdHVzBAAAABRyZWFkX09wdGlvbkNvdW50ZXJJRAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAOMW1fY29udHJhY3RfaWQEAAAACmdldGJ0Y2RhdGEJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAHMW1fYnRjXwkAAaQAAAABBQAAABRyZWFkX09wdGlvbkNvdW50ZXJJRAQAAAAGc3dhcExpCQAEtQAAAAIFAAAACmdldGJ0Y2RhdGECAAAAAV8EAAAABXByaWNlCQABkQAAAAIFAAAABnN3YXBMaQAAAAAAAAAA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IBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlee2oDzc=", "height": 2406266, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9y91Bw669JicyUpTKUtCTa1EpSY51fqNeYNE6GBcyB8g Next: E3xoVdYoerPZsX7snyFKhtxnzaAUpDVyttk5qBRQdbw5 Diff:
OldNewDifferences
5454 let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + u))
5555 let w = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + v))
5656 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)]
57+[StringEntry("Start_value", u), IntegerEntry("Price_Diff", x), DeleteEntry(((("Call_Start_End_" + b) + "_") + toString(q))), DeleteEntry(r)]
6058 }
6159
6260
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)
4949 let r = ((("Call_" + b) + "_") + toString(q))
5050 let s = getStringValue(this, ((("Call_Start_End_" + b) + "_") + toString(q)))
5151 let t = split(s, "_")
5252 let u = t[0]
5353 let v = t[1]
5454 let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + u))
5555 let w = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + v))
5656 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)]
57+[StringEntry("Start_value", u), IntegerEntry("Price_Diff", x), DeleteEntry(((("Call_Start_End_" + b) + "_") + toString(q))), DeleteEntry(r)]
6058 }
6159
6260
6361
6462 @Callable(a)
6563 func calldata (y) = {
6664 let e = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + toString(y)))
6765 let f = split(e, "_")
6866 let g = f[0]
6967 let z = f[1]
7068 let A = f[2]
7169 let B = f[3]
7270 [StringEntry("price", f[0]), StringEntry("time", f[1]), StringEntry("blockheight", f[2]), StringEntry("div", f[3])]
7371 }
7472
7573
7674 @Verifier(C)
7775 func D () = sigVerify(C.bodyBytes, C.proofs[0], C.senderPublicKey)
7876

github/deemru/w8io/169f3d6 
41.86 ms