tx · GUA8BJSJetQQ6rKewFNnnRpDLZk9HbwXqfKbssR3tnVk

3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ:  -0.01400000 Waves

2023.01.15 16:13 [2406108] smart account 3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ > SELF 0.00000000 Waves

{ "type": 13, "id": "GUA8BJSJetQQ6rKewFNnnRpDLZk9HbwXqfKbssR3tnVk", "fee": 1400000, "feeAssetId": null, "timestamp": 1673788484610, "version": 2, "chainId": 84, "sender": "3MvTsZLYhU4bGijfdULLDAUEiZVryxJVQPJ", "senderPublicKey": "6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez", "proofs": [ "YV9LCrgEx56gK6HE4YVuUdVEbFkQ1ocqgeWciigg32QoJyxd8pGSkwc26qnCFBbEhVNMkUECQUXBr5fdiq2HQgY" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQEAAAAAAAAAAgAAAAFpAQAAAAtwbGFjZW9wdGlvbgAAAAEAAAALT3B0aW9uRW50cnkEAAAADWNhbGxlcmFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAScmVhZF9vcmFjbGVfc3RhdHVzCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAA1vcmFjbGVfc3RhdHVzBAAAABRyZWFkX09wdGlvbkNvdW50ZXJJRAkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAAOMW1fY29udHJhY3RfaWQEAAAACmdldGJ0Y2RhdGEJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAADjFtX2NvbnRyYWN0X2lkBAAAAAZzd2FwTGkJAAS1AAAAAgUAAAAKZ2V0YnRjZGF0YQIAAAABXwQAAAAFcHJpY2UJAAGRAAAAAgUAAAAGc3dhcExpAAAAAAAAAAAAAwkAAAAAAAACBQAAABJyZWF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2FwTGkAAAAAAAAAAAIEAAAAA2RpdgkAAZEAAAACBQAAAAZzd2FwTGkAAAAAAAAAAAMJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAFcHJpY2UJAAGRAAAAAgUAAAAGc3dhcExpAAAAAAAAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABHRpbWUJAAGRAAAAAgUAAAAGc3dhcExpAAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAC2Jsb2NraGVpZ2h0CQABkQAAAAIFAAAABnN3YXBMaQAAAAAAAAAAAgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAANkaXYJAAGRAAAAAgUAAAAGc3dhcExpAAAAAAAAAAADBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQSJ3vU=", "height": 2406108, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HmU4v35aw1xQKrN28EczbjnRQKfajb5SrZaVbc3LGFK6 Next: Ckjvhmu3PQFYC1hHnL1u6wt5DLWZWbHrayYQj74sT3DJ Diff:
OldNewDifferences
66 @Callable(i)
77 func placeoption (OptionEntry) = {
88 let calleraddress = toBase58String(i.caller.bytes)
9- let read_oracle_status = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), "oracle_status")
10- let read_OptionCounterID = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), "1m_contract_id")
11- let getbtcdata = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), "1m_contract_id")
9+ let read_oracle_status = getStringValue(this, "oracle_status")
10+ let read_OptionCounterID = getStringValue(this, "1m_contract_id")
11+ let getbtcdata = getStringValue(this, "1m_contract_id")
1212 let swapLi = split(getbtcdata, "_")
1313 let price = swapLi[0]
1414 if ((read_oracle_status == "Close"))
1717 then [StringEntry(calleraddress, "Call"), StringEntry((calleraddress + "_price"), price)]
1818 else if ((OptionEntry == "Put"))
1919 then [StringEntry(calleraddress, "Put"), StringEntry((calleraddress + "_price"), price)]
20- else throw("You can Place only Either Call or Put")
20+ else throw("You can Place only Either ['Call'] or ['Put']")
2121 }
2222
2323
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func placeoption (OptionEntry) = {
88 let calleraddress = toBase58String(i.caller.bytes)
9- let read_oracle_status = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), "oracle_status")
10- let read_OptionCounterID = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), "1m_contract_id")
11- let getbtcdata = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), "1m_contract_id")
9+ let read_oracle_status = getStringValue(this, "oracle_status")
10+ let read_OptionCounterID = getStringValue(this, "1m_contract_id")
11+ let getbtcdata = getStringValue(this, "1m_contract_id")
1212 let swapLi = split(getbtcdata, "_")
1313 let price = swapLi[0]
1414 if ((read_oracle_status == "Close"))
1515 then throw("Oracle is closed.Wait Until Oracle is Turned On.")
1616 else if ((OptionEntry == "Call"))
1717 then [StringEntry(calleraddress, "Call"), StringEntry((calleraddress + "_price"), price)]
1818 else if ((OptionEntry == "Put"))
1919 then [StringEntry(calleraddress, "Put"), StringEntry((calleraddress + "_price"), price)]
20- else throw("You can Place only Either Call or Put")
20+ else throw("You can Place only Either ['Call'] or ['Put']")
2121 }
2222
2323
2424
2525 @Callable(i)
2626 func calldata (Counter) = {
2727 let getbtcdata = getStringValue(addressFromPublicKey(base58'6hSe4di8vdVexXUoSJQ1unZB3n287fgHNBP7PberpTez'), ("1m_btc_" + toString(Counter)))
2828 let swapLi = split(getbtcdata, "_")
2929 let price = swapLi[0]
3030 let time = swapLi[1]
3131 let blockheight = swapLi[2]
3232 let div = swapLi[3]
3333 [StringEntry("price", swapLi[0]), StringEntry("time", swapLi[1]), StringEntry("blockheight", swapLi[2]), StringEntry("div", swapLi[3])]
3434 }
3535
3636
3737 @Verifier(tx)
3838 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3939

github/deemru/w8io/169f3d6 
43.15 ms