tx · HAhwt7mTy5a9Kn66q7xtLDQwz9UusbywTSHdNu3dehdq

3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ:  -0.01400000 Waves

2023.01.15 17:05 [2406161] smart account 3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ > SELF 0.00000000 Waves

{ "type": 13, "id": "HAhwt7mTy5a9Kn66q7xtLDQwz9UusbywTSHdNu3dehdq", "fee": 1400000, "feeAssetId": null, "timestamp": 1673791567603, "version": 2, "chainId": 84, "sender": "3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ", "senderPublicKey": "6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez", "proofs": [ "4LHpEEnkmTGhbnFiyTt5d3vnMUJ2NzdgdR1AE7VfFvM7if524VUExtnWiW56jpztpJnDhKcEHBWza9ysYnvR8rH7" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQEAAAAAAAAAAgAAAAFpAQAAAA9wbGFjZW9wdGlvbkNhbGwAAAABAAAAC09wdGlvbkVudHJ5BAAAAA1jYWxsZXJhZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAEnJlYWRfb3JhY2xlX3N0YXR1cwkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAANb3JhY2xlX3N0YXR1cwQAAAAUcmVhZF9PcHRpb25Db3VudGVySUQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAADjFtX2NvbnRyYWN0X2lkBAAAAApnZXRidGNkYXRhCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzCQABLAAAAAICAAAABzFtX2J0Y18JAAGkAAAAAQUAAAAUcmVhZF9PcHRpb25Db3VudGVySUQEAAAABnN3YXBMaQkABLUAAAACBQAAAApnZXRidGNkYXRhAgAAAAFfBAAAAAVwcmljZQkAAZEAAAACBQAAAAZzd2F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0cmluZ0VudHJ5AAAAAgIAAAALYmxvY2toZWlnaHQJAAGRAAAAAgUAAAAGc3dhcExpAAAAAAAAAAACCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAA2RpdgkAAZEAAAACBQAAAAZzd2FwTGkAAAAAAAAAAAMFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5+OgYeA==", "height": 2406161, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2RPBPwYa6dBE13coCnCyBAUUAByyXJHa8CVYQubQCbpe Next: CNgyZeGhCZL8Lv9tkCm3qPRwv1uXXED8BYGRp6gAK1j4 Diff:
OldNewDifferences
1212 let swapLi = split(getbtcdata, "_")
1313 let price = swapLi[0]
1414 let block = parseIntValue(swapLi[2])
15- let checkblockgap = (lastBlock.height - block)
15+ let checkblockgap = (height - block)
1616 let PreviousCall = match getInteger(this, "Total_Calls") {
1717 case a: Int =>
1818 a
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func placeoptionCall (OptionEntry) = {
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])
15- let checkblockgap = (lastBlock.height - block)
15+ let checkblockgap = (height - block)
1616 let PreviousCall = match getInteger(this, "Total_Calls") {
1717 case a: Int =>
1818 a
1919 case _ =>
2020 0
2121 }
2222 let TotalCall = (PreviousCall + 1)
2323 let PreviousUserCall = match getInteger(this, (calleraddress + "_Total_Calls")) {
2424 case a: Int =>
2525 a
2626 case _ =>
2727 0
2828 }
2929 let TotalUserCall = (PreviousUserCall + 1)
3030 if ((2 > checkblockgap))
3131 then throw("Something Wrong with Oracle or Height is not matched.")
3232 else if ((read_oracle_status == "Close"))
3333 then throw("Oracle is closed. Wait Until Oracle is Turned On.")
3434 else if ((OptionEntry == "Call"))
3535 then [StringEntry(calleraddress, "Call"), StringEntry((calleraddress + "_price"), price), IntegerEntry("Total_Calls", TotalCall), IntegerEntry((calleraddress + "_Total_Calls"), TotalUserCall)]
3636 else throw("You can Place only ['Call'] Here.")
3737 }
3838
3939
4040
4141 @Callable(i)
4242 func calldata (Counter) = {
4343 let getbtcdata = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + toString(Counter)))
4444 let swapLi = split(getbtcdata, "_")
4545 let price = swapLi[0]
4646 let time = swapLi[1]
4747 let blockheight = swapLi[2]
4848 let div = swapLi[3]
4949 [StringEntry("price", swapLi[0]), StringEntry("time", swapLi[1]), StringEntry("blockheight", swapLi[2]), StringEntry("div", swapLi[3])]
5050 }
5151
5252
5353 @Verifier(tx)
5454 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5555

github/deemru/w8io/169f3d6 
26.54 ms