tx · 29AwsDPaMD4wpFVof2piAYVx8R1Rv9SLweG3VLCdVav9

3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ:  -0.01400000 Waves

2023.01.15 17:51 [2406206] smart account 3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ > SELF 0.00000000 Waves

{ "type": 13, "id": "29AwsDPaMD4wpFVof2piAYVx8R1Rv9SLweG3VLCdVav9", "fee": 1400000, "feeAssetId": null, "timestamp": 1673794259052, "version": 2, "chainId": 84, "sender": "3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ", "senderPublicKey": "6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez", "proofs": [ "2vBUjBiXqS8q2aHiiBBAxzj8Kv3ZXTXnzebSnvSSt83pAR6rKChcYschB68pLnFzQrcxQhFSJ9HCw1ioTC8MB2Nn" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQEAAAAAAAAAAgAAAAFpAQAAAA9wbGFjZW9wdGlvbkNhbGwAAAAABAAAAA1jYWxsZXJhZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAEnJlYWRfb3JhY2xlX3N0YXR1cwkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAANb3JhY2xlX3N0YXR1cwQAAAAUcmVhZF9PcHRpb25Db3VudGVySUQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAADjFtX2NvbnRyYWN0X2lkBAAAAApnZXRidGNkYXRhCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzCQABLAAAAAICAAAABzFtX2J0Y18JAAGkAAAAAQUAAAAUcmVhZF9PcHRpb25Db3VudGVySUQEAAAABnN3YXBMaQkABLUAAAACBQAAAApnZXRidGNkYXRhAgAAAAFfBAAAAAVwcmljZQkAAZEAAAACBQAAAAZzd2FwTGkAAAAAAAAAAAAEAAA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YJAAGRAAAAAgUAAAAGc3dhcExpAAAAAAAAAAADCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABXByaWNlCQABkQAAAAIFAAAABnN3YXBMaQAAAAAAAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAR0aW1lCQABkQAAAAIFAAAABnN3YXBMaQAAAAAAAAAAAQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAtibG9ja2hlaWdodAkAAZEAAAACBQAAAAZzd2FwTGkAAAAAAAAAAAIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAADZGl2CQABkQAAAAIFAAAABnN3YXBMaQAAAAAAAAAAAwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnYxzmo", "height": 2406206, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 32RPYtt2PtRerR7GvimJuYBf5tHmWfSV8ho9HUrrDMUA Next: 7iBxHL8khf2ypaiaMh4zkyvYnMUtPSpGDxf5KzV15gS3 Diff:
OldNewDifferences
3232 then throw("Something Wrong with Oracle or Height is not matched.")
3333 else if ((read_oracle_status == "Close"))
3434 then throw("Oracle is closed. Wait Until Oracle is Turned On.")
35- else [StringEntry(((("Call_" + calleraddress) + "_") + toString(TotalUserCall)), price), IntegerEntry(((("Call_Expire_" + calleraddress) + "_") + toString(TotalUserCall)), OptionExpireCounterID), IntegerEntry("Total_Calls", TotalCall), IntegerEntry((calleraddress + "_Total_Calls"), TotalUserCall)]
35+ 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)]
3636 }
3737
3838
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 OptionExpireCounterID = (read_OptionCounterID + 15)
1717 let PreviousCall = match getInteger(this, "Total_Calls") {
1818 case a: Int =>
1919 a
2020 case _ =>
2121 0
2222 }
2323 let TotalCall = (PreviousCall + 1)
2424 let PreviousUserCall = match getInteger(this, (calleraddress + "_Total_Calls")) {
2525 case a: Int =>
2626 a
2727 case _ =>
2828 0
2929 }
3030 let TotalUserCall = (PreviousUserCall + 1)
3131 if ((checkblockgap > 2))
3232 then throw("Something Wrong with Oracle or Height is not matched.")
3333 else if ((read_oracle_status == "Close"))
3434 then throw("Oracle is closed. Wait Until Oracle is Turned On.")
35- else [StringEntry(((("Call_" + calleraddress) + "_") + toString(TotalUserCall)), price), IntegerEntry(((("Call_Expire_" + calleraddress) + "_") + toString(TotalUserCall)), OptionExpireCounterID), IntegerEntry("Total_Calls", TotalCall), IntegerEntry((calleraddress + "_Total_Calls"), TotalUserCall)]
35+ 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)]
3636 }
3737
3838
3939
4040 @Callable(i)
4141 func calldata (Counter) = {
4242 let getbtcdata = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + toString(Counter)))
4343 let swapLi = split(getbtcdata, "_")
4444 let price = swapLi[0]
4545 let time = swapLi[1]
4646 let blockheight = swapLi[2]
4747 let div = swapLi[3]
4848 [StringEntry("price", swapLi[0]), StringEntry("time", swapLi[1]), StringEntry("blockheight", swapLi[2]), StringEntry("div", swapLi[3])]
4949 }
5050
5151
5252 @Verifier(tx)
5353 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5454

github/deemru/w8io/169f3d6 
65.76 ms