tx · 9FEKfEKvne7Mj5Dx1em4GSjYQh2cLu6sd6XfJL7t5NKt

3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ:  -0.01400000 Waves

2023.01.15 16:54 [2406149] smart account 3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ > SELF 0.00000000 Waves

{ "type": 13, "id": "9FEKfEKvne7Mj5Dx1em4GSjYQh2cLu6sd6XfJL7t5NKt", "fee": 1400000, "feeAssetId": null, "timestamp": 1673790870592, "version": 2, "chainId": 84, "sender": "3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ", "senderPublicKey": "6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez", "proofs": [ "4ReutnU56iWJP6RicusLvkqSSUwMZ9bU6s7zBLPwNJu7GqLowDkdUNS5XnL6KU9f9nj5ACMNP3vf31SES8uqzU7u" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQEAAAAAAAAAAgAAAAFpAQAAAA9wbGFjZW9wdGlvbkNhbGwAAAABAAAAC09wdGlvbkVudHJ5BAAAAA1jYWxsZXJhZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAEnJlYWRfb3JhY2xlX3N0YXR1cwkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAANb3JhY2xlX3N0YXR1cwQAAAAUcmVhZF9PcHRpb25Db3VudGVySUQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAADjFtX2NvbnRyYWN0X2lkBAAAAApnZXRidGNkYXRhCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzCQABLAAAAAICAAAABzFtX2J0Y18JAAGkAAAAAQUAAAAUcmVhZF9PcHRpb25Db3VudGVySUQEAAAABnN3YXBMaQkABLUAAAACBQAAAApnZXRidGNkYXRhAgAAAAFfBAAAAAVwcmljZQkAAZEAAAACBQAA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AGc3dhcExpAAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAC2Jsb2NraGVpZ2h0CQABkQAAAAIFAAAABnN3YXBMaQAAAAAAAAAAAgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAANkaXYJAAGRAAAAAgUAAAAGc3dhcExpAAAAAAAAAAADBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlee7NquE=", "height": 2406149, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9FrwfG5W7b79oF2wa7ELxnQQ1HD2JKCW9VVCPTdajCEx Next: 2RPBPwYa6dBE13coCnCyBAUUAByyXJHa8CVYQubQCbpe Diff:
OldNewDifferences
3838 else if ((d == "Close"))
3939 then throw("Oracle is closed. Wait Until Oracle is Turned On.")
4040 else if ((b == "Call"))
41- then [StringEntry(c, "Call"), StringEntry((c + "_price"), h)]
41+ then [StringEntry(c, "Call"), StringEntry((c + "_price"), h), IntegerEntry("Total_Calls", n), IntegerEntry((c + "_Total_Calls,TotalUserCall"), p)]
4242 else throw("You can Place only ['Call'] Here.")
4343 }
4444
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func placeoptionCall (b) = {
88 let c = toBase58String(a.caller.bytes)
99 let d = getStringValue(this, "oracle_status")
1010 let e = getIntegerValue(this, "1m_contract_id")
1111 let f = getStringValue(this, ("1m_btc_" + toString(e)))
1212 let g = split(f, "_")
1313 let h = g[0]
1414 let i = parseIntValue(g[2])
1515 let j = (lastBlock.height - i)
1616 let k = {
1717 let l = getInteger(this, "Total_Calls")
1818 if ($isInstanceOf(l, "Int"))
1919 then {
2020 let m = l
2121 m
2222 }
2323 else 0
2424 }
2525 let n = (k + 1)
2626 let o = {
2727 let l = getInteger(this, (c + "_Total_Calls"))
2828 if ($isInstanceOf(l, "Int"))
2929 then {
3030 let m = l
3131 m
3232 }
3333 else 0
3434 }
3535 let p = (o + 1)
3636 if ((2 > j))
3737 then throw("Something Wrong with Oracle or Height is not matched.")
3838 else if ((d == "Close"))
3939 then throw("Oracle is closed. Wait Until Oracle is Turned On.")
4040 else if ((b == "Call"))
41- then [StringEntry(c, "Call"), StringEntry((c + "_price"), h)]
41+ then [StringEntry(c, "Call"), StringEntry((c + "_price"), h), IntegerEntry("Total_Calls", n), IntegerEntry((c + "_Total_Calls,TotalUserCall"), p)]
4242 else throw("You can Place only ['Call'] Here.")
4343 }
4444
4545
4646
4747 @Callable(a)
4848 func calldata (q) = {
4949 let f = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + toString(q)))
5050 let g = split(f, "_")
5151 let h = g[0]
5252 let r = g[1]
5353 let s = g[2]
5454 let t = g[3]
5555 [StringEntry("price", g[0]), StringEntry("time", g[1]), StringEntry("blockheight", g[2]), StringEntry("div", g[3])]
5656 }
5757
5858
5959 @Verifier(u)
6060 func v () = sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey)
6161

github/deemru/w8io/169f3d6 
42.81 ms