tx · NLSafXrhHKoJhkQBQCnTHBcYUB15hx3EXE91ZCsRNLL

3NC9boevS259eTsMAkFAxCPorzK4Z9bpWje:  -0.01400000 Waves

2023.01.16 01:41 [2406671] smart account 3NC9boevS259eTsMAkFAxCPorzK4Z9bpWje > SELF 0.00000000 Waves

{ "type": 13, "id": "NLSafXrhHKoJhkQBQCnTHBcYUB15hx3EXE91ZCsRNLL", "fee": 1400000, "feeAssetId": null, "timestamp": 1673822480944, "version": 2, "chainId": 84, "sender": "3NC9boevS259eTsMAkFAxCPorzK4Z9bpWje", "senderPublicKey": "515tSAyMUbAb8kKjcpGDpqALGfCgcwfWmWKKkcBKTcGB", "proofs": [ "5VMfQ54Nqdfw4jJbZ29rRSuXNC4EfaBM5XJpdwkY1fDKf2BYSNAhXde1DNQt3dhruGW95FdYq1NV5ADb6xoNdJQ3" ], "script": "base64:AAIFAAAAAAAAAA4IAhIAEgMKAQESAwoBAQAAAAAAAAADAAAAAWkBAAAAD3BsYWNlb3B0aW9uQ2FsbAAAAAAEAAAADWNhbGxlcmFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAScmVhZF9vcmFjbGVfc3RhdHVzCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAA1vcmFjbGVfc3RhdHVzBAAAABRyZWFkX09wdGlvbkNvdW50ZXJJRAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAOMW1fY29udHJhY3RfaWQEAAAACmdldGJ0Y2RhdGEJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAHMW1fYnRjXwkAAaQAAAABBQAAABRyZWFkX09wdGlvbkNvdW50ZXJJRAQAAAAGc3dhcExpCQAEtQAAAAIFAAAACmdldGJ0Y2RhdGECAAAAAV8EAAAABXByaWNlCQABkQAAAAIFAAAABnN3YXBMaQAAAAAAAA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AAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXk8C7xW", "height": 2406671, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 13YibWEHqj6nZrffaB9ZS6NgiFQCpP2HS93GPRb6oCNS Next: Cth8DcjLRMzQVx8qjkwjbopqKkvzwFSnR3UwWG5vMRvU Diff:
OldNewDifferences
5151 let StartEndPriceDiff = (parseIntValue(getbtcdataAtEndCounter) - parseIntValue(getbtcdataAtStartCounter))
5252 if ((StartEndPriceDiff > 0))
5353 then throw("Price is not Positive")
54- else [StringEntry("Start_value", getStartCounter), IntegerEntry("Price_Diff", StartEndPriceDiff), DeleteEntry(((("Call_Start_End_" + calleraddress) + "_") + toString(Call_Sequence))), DeleteEntry(getOptionCallPrice)]
54+ else [StringEntry("Start_value", getStartCounter), DeleteEntry(((("Call_Start_End_" + calleraddress) + "_") + toString(Call_Sequence))), DeleteEntry(getOptionCallPrice)]
5555 }
5656
5757
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func placeoptionCall () = {
88 let calleraddress = toBase58String(i.caller.bytes)
99 let read_oracle_status = getStringValue(this, "oracle_status")
1010 let read_OptionCounterID = getIntegerValue(this, "1m_contract_id")
1111 let getbtcdata = getStringValue(this, ("1m_btc_" + toString(read_OptionCounterID)))
1212 let swapLi = split(getbtcdata, "_")
1313 let price = swapLi[0]
1414 let block = parseIntValue(swapLi[2])
1515 let checkblockgap = (height - block)
1616 let OpionExpireCounter = 15
1717 let OptionExpireCounterID = (read_OptionCounterID + OpionExpireCounter)
1818 let PreviousCall = match getInteger(this, "Total_Calls") {
1919 case a: Int =>
2020 a
2121 case _ =>
2222 0
2323 }
2424 let TotalCall = (PreviousCall + 1)
2525 let PreviousUserCall = match getInteger(this, (calleraddress + "_Total_Calls")) {
2626 case a: Int =>
2727 a
2828 case _ =>
2929 0
3030 }
3131 let TotalUserCall = (PreviousUserCall + 1)
3232 if ((checkblockgap > 2))
3333 then throw("Something Wrong with Oracle or Height is not matched.")
3434 else if ((read_oracle_status == "Close"))
3535 then throw("Oracle is closed. Wait Until Oracle is Turned On.")
3636 else [StringEntry(((("Call_" + calleraddress) + "_") + toString(TotalUserCall)), price), StringEntry(((("Call_Start_End_" + calleraddress) + "_") + toString(TotalUserCall)), ((toString(read_OptionCounterID) + "_") + toString(OptionExpireCounterID))), IntegerEntry("Total_Calls", TotalCall), IntegerEntry((calleraddress + "_Total_Calls"), TotalUserCall)]
3737 }
3838
3939
4040
4141 @Callable(i)
4242 func ClaimCall (Call_Sequence) = {
4343 let calleraddress = toBase58String(i.caller.bytes)
4444 let getOptionCallPrice = getStringValue(this, ((("Call_" + calleraddress) + "_") + toString(Call_Sequence)))
4545 let getOptionCall_Sequencedata = getStringValue(this, ((("Call_Start_End_" + calleraddress) + "_") + toString(Call_Sequence)))
4646 let splitStartEndCounter = split(getOptionCall_Sequencedata, "_")
4747 let getStartCounter = splitStartEndCounter[0]
4848 let getEndCounter = splitStartEndCounter[1]
4949 let getbtcdataAtStartCounter = getStringValue(this, ("1m_btc_" + getStartCounter))
5050 let getbtcdataAtEndCounter = getStringValue(this, ("1m_btc_" + getEndCounter))
5151 let StartEndPriceDiff = (parseIntValue(getbtcdataAtEndCounter) - parseIntValue(getbtcdataAtStartCounter))
5252 if ((StartEndPriceDiff > 0))
5353 then throw("Price is not Positive")
54- else [StringEntry("Start_value", getStartCounter), IntegerEntry("Price_Diff", StartEndPriceDiff), DeleteEntry(((("Call_Start_End_" + calleraddress) + "_") + toString(Call_Sequence))), DeleteEntry(getOptionCallPrice)]
54+ else [StringEntry("Start_value", getStartCounter), DeleteEntry(((("Call_Start_End_" + calleraddress) + "_") + toString(Call_Sequence))), DeleteEntry(getOptionCallPrice)]
5555 }
5656
5757
5858
5959 @Callable(i)
6060 func calldata (Counter) = {
6161 let getbtcdata = getStringValue(this, ("1m_btc_" + toString(Counter)))
6262 let swapLi = split(getbtcdata, "_")
6363 let price = swapLi[0]
6464 let time = swapLi[1]
6565 let blockheight = swapLi[2]
6666 let div = swapLi[3]
6767 [StringEntry("price", swapLi[0]), StringEntry("time", swapLi[1]), StringEntry("blockheight", swapLi[2]), StringEntry("div", swapLi[3])]
6868 }
6969
7070
7171 @Verifier(tx)
7272 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
7373

github/deemru/w8io/169f3d6 
41.56 ms