tx · 72j6GXxHhkL8ayto7iceR9oGMcrhWvibFy15e5e5Zw8i
3Mz3A1UYGJv1646xRXHZzTy4nofAbg4QPaH: -0.01400000 Waves
2023.03.06 13:39 [2478117] smart account 3Mz3A1UYGJv1646xRXHZzTy4nofAbg4QPaH > SELF 0.00000000 Waves
{
"type": 13,
"id": "72j6GXxHhkL8ayto7iceR9oGMcrhWvibFy15e5e5Zw8i",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1678099159523,
"version": 2,
"chainId": 84,
"sender": "3Mz3A1UYGJv1646xRXHZzTy4nofAbg4QPaH",
"senderPublicKey": "8wkcC4wZzidr4PipMnDKcJn4CP25PZn9Mj15Tx51kiB9",
"proofs": [
"QNFkuJR7tqLAu2bK4fT9jvaCDZzteV8UBYakDJ55DhuETKthdQV3zopERqLEw6MNZYtCBUPQCUTUrpVwcxNsuEA"
],
"script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAAAAAAEAAAABaQEAAAASSXNzdWVPcHRpb25MUFRva2VuAAAAAQAAAAxFbnRlckFzc2V0SUQEAAAABGluZm8JAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkAA+wAAAABCQACWQAAAAEFAAAADEVudGVyQXNzZXRJRAkAASwAAAACCQABLAAAAAICAAAABkFzc2V0IAUAAAAMRW50ZXJBc3NldElEAgAAAB0gZG9lc24ndCBleGlzdCBvbiBCbG9ja2NoYWluLgQAAAAEbmFtZQgFAAAABGluZm8AAAAEbmFtZQQAAAAHTFBpc3N1ZQkABEIAAAAFCQABLAAAAAIJAAEsAAAAAgIAAAAET3B0LQkAAS8AAAACBQAAAARuYW1lAAAAAAAAAAAHAgAAAAUtVVNEQwkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAET3B0LQkAAS8AAAACBQAAAARuYW1lAAAAAAAAAAAHAgAAAAUtVVNEQwIAAABEIGlzIGEgTGlxdWlkaXR5IFByb3ZpZGVyIFRva2VuIElzc3VlZCBBZ2FpbnN0IE9wdGlvbiBTbWFydCBDb250cmFjdC4AAAAAAAAAAAEAAAAAAAAAAAgGBAAAAAdhc3NldElkCQAEOAAAAAEFAAAAB0xQaXNzdWUEAAAAGWNoZWNraWZhc3NldGFscmVhZHlpc3N1ZWQJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACCQABLwAAAAIFAAAABG5hbWUAAAAAAAAAAAcCAAAAEV9MUF9Ub2tlbl9Bc3NldElEAwkAAAAAAAACBQAAABljaGVja2lmYXNzZXRhbHJlYWR5aXNzdWVkCQABLAAAAAIJAAEvAAAAAgUAAAAEbmFtZQAAAAAAAAAABwIAAAARX0xQX1Rva2VuX0Fzc2V0SUQJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAMRW50ZXJBc3NldElEAgAAAA4gTFAgVG9rZW4gZm9yIAUAAAAMRW50ZXJBc3NldElEAgAAABMgaXMgYWxyZWFkeSBpc3N1ZWQuCQAETAAAAAIFAAAAB0xQaXNzdWUJAARMAAAAAgkBAAAABEJ1cm4AAAACBQAAAAdhc3NldElkAAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgkAAS8AAAACBQAAAARuYW1lAAAAAAAAAAAHAgAAABFfTFBfVG9rZW5fQXNzZXRJRAkAAlgAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAAAYuk/Nw==",
"height": 2478117,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CRRGwH4MohyuvNyhaK3id6JnHMqkT2GtAc2oswAaAbJ3
Next: none
Diff:
Old | New | | Differences |
---|
10 | 10 | | let LPissue = Issue((("Opt-" + take(name, 7)) + "-USDC"), ((("Opt-" + take(name, 7)) + "-USDC") + " is a Liquidity Provider Token Issued Against Option Smart Contract."), 1, 8, true) |
---|
11 | 11 | | let assetId = calculateAssetId(LPissue) |
---|
12 | 12 | | let checkifassetalreadyissued = getString(this, (take(name, 7) + "_LP_Token_AssetID")) |
---|
13 | | - | if ((checkifassetalreadyissued == EnterAssetID)) |
---|
| 13 | + | if ((checkifassetalreadyissued == (take(name, 7) + "_LP_Token_AssetID"))) |
---|
14 | 14 | | then throw((((EnterAssetID + " LP Token for ") + EnterAssetID) + " is already issued.")) |
---|
15 | 15 | | else [LPissue, Burn(assetId, 1), StringEntry((take(name, 7) + "_LP_Token_AssetID"), toBase58String(assetId))] |
---|
16 | 16 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func IssueOptionLPToken (EnterAssetID) = { |
---|
8 | 8 | | let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist on Blockchain.")) |
---|
9 | 9 | | let name = info.name |
---|
10 | 10 | | let LPissue = Issue((("Opt-" + take(name, 7)) + "-USDC"), ((("Opt-" + take(name, 7)) + "-USDC") + " is a Liquidity Provider Token Issued Against Option Smart Contract."), 1, 8, true) |
---|
11 | 11 | | let assetId = calculateAssetId(LPissue) |
---|
12 | 12 | | let checkifassetalreadyissued = getString(this, (take(name, 7) + "_LP_Token_AssetID")) |
---|
13 | | - | if ((checkifassetalreadyissued == EnterAssetID)) |
---|
| 13 | + | if ((checkifassetalreadyissued == (take(name, 7) + "_LP_Token_AssetID"))) |
---|
14 | 14 | | then throw((((EnterAssetID + " LP Token for ") + EnterAssetID) + " is already issued.")) |
---|
15 | 15 | | else [LPissue, Burn(assetId, 1), StringEntry((take(name, 7) + "_LP_Token_AssetID"), toBase58String(assetId))] |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|