tx · 3VdM1QUWYvqyJugzkLAjwTkRnASN6j2EffZrTWHZNizq 3MzFYxmuFCZMtDM4xzqBHW6m3ZvNoX4Xe8T: -0.01400000 Waves 2021.06.05 18:14 [1557228] smart account 3MzFYxmuFCZMtDM4xzqBHW6m3ZvNoX4Xe8T > SELF 0.00000000 Waves
{ "type": 13, "id": "3VdM1QUWYvqyJugzkLAjwTkRnASN6j2EffZrTWHZNizq", "fee": 1400000, "feeAssetId": null, "timestamp": 1622906110649, "version": 2, "chainId": 84, "sender": "3MzFYxmuFCZMtDM4xzqBHW6m3ZvNoX4Xe8T", "senderPublicKey": "6BmCmWEkmyL4KtpmLBbW1T5EDSyu6WhDBx9wy8xedgxJ", "proofs": [ "DGn41zkkdBHT8hhYeYECQNBgwjmzR31zaYy4UZuWeXQ4XTr67aQLzvMXW3DYmMTqoqWLvgYf3gUVxaaXijbjsyY" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAJaXNzdWVnb2xkAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAC0dvbGRBc3NldElEAQAAACA4Trgygj42OSxCqzXCVkjy0fg0SK8264yFzLge7MhhwgQAAAALVVNEVEFzc2V0SUQBAAAAIO1uns5hlJz9zuYakh0t3uLmLZDCTZgfB7wEww+WnHxxBAAAABBQcmljZVBlckdyYW1Hb2xkCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAAdHQVUvVVNEBAAAAA1OZXdHb2xkVG9Vc2VyCQAAawAAAAMIBQAAAANwbXQAAAAGYW1vdW50BQAAABBQcmljZVBlckdyYW1Hb2xkAAAAAAAAD0JABAAAABJQcmV2aW91c0lzc3VlZEdvbGQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAAElRvdGFsX0lzc3VlZF9Hb2xkOgQAAAAPVG90YWxJc3N1ZWRHb2xkCQAAZAAAAAIFAAAAElByZXZpb3VzSXNzdWVkR29sZAUAAAANTmV3R29sZFRvVXNlcgMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAHYXNzZXRJZAUAAAALVVNEVEFzc2V0SUQJAAACAAAAAQIAAABiSW5jb3JyZWN0IGFzc2V0IGF0dGFjaGVkLCBwbGVhc2UgYXR0YWNoIFVTRFQgQXNzZXRJRCBHeXFUWURlYTNEV0JhQXlRczVTNXVIMjIyM3VjRUxZRmF6SnBaTENmTXpuVS4DCQAAZgAAAAIAAAAAAAAPQkAIBQAAAANwbXQAAAAGYW1vdW50CQAAAgAAAAECAAAAMVBsZWFzZSBBdHRhY2ggbWluaW11bSAxIFVTRFQgVG8gSXNzdWUgR29sZCBBc3NldC4JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAElRvdGFsX0lzc3VlZF9Hb2xkOgUAAAAPVG90YWxJc3N1ZWRHb2xkCQAETAAAAAIJAQAAAAdSZWlzc3VlAAAAAwUAAAALR29sZEFzc2V0SUQFAAAADU5ld0dvbGRUb1VzZXIGCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAANTmV3R29sZFRvVXNlcgUAAAALR29sZEFzc2V0SUQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5DWKiUQ==", "height": 1557228, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3bufbQWjUQRDeFN16yVsLJ6hv9SfTtFHYgVfaQ6Jh2HT Next: 7G45gxUQ3eJWUBj4wrfTHXie6Lsr89yw9PB8DfeqcjGe Diff:
Old | New | Differences | |
---|---|---|---|
17 | 17 | then throw("Incorrect asset attached, please attach USDT AssetID GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU.") | |
18 | 18 | else if ((1000000 > pmt.amount)) | |
19 | 19 | then throw("Please Attach minimum 1 USDT To Issue Gold Asset.") | |
20 | - | else [IntegerEntry("Total_Issued_Gold:", TotalIssuedGold), Reissue(GoldAssetID, | |
20 | + | else [IntegerEntry("Total_Issued_Gold:", TotalIssuedGold), Reissue(GoldAssetID, NewGoldToUser, true), ScriptTransfer(i.caller, NewGoldToUser, GoldAssetID)] | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func issuegold () = { | |
8 | 8 | let pmt = value(i.payments[0]) | |
9 | 9 | let currentKey = toBase58String(i.caller.bytes) | |
10 | 10 | let GoldAssetID = base58'4noTADz7TX4HmjkCMpJAzkfuR6BKxDsSCzp3XJNZAcgy' | |
11 | 11 | let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU' | |
12 | 12 | let PricePerGramGold = getIntegerValue(this, "GAU/USD") | |
13 | 13 | let NewGoldToUser = fraction(pmt.amount, PricePerGramGold, 1000000) | |
14 | 14 | let PreviousIssuedGold = getIntegerValue(this, "Total_Issued_Gold:") | |
15 | 15 | let TotalIssuedGold = (PreviousIssuedGold + NewGoldToUser) | |
16 | 16 | if ((pmt.assetId != USDTAssetID)) | |
17 | 17 | then throw("Incorrect asset attached, please attach USDT AssetID GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU.") | |
18 | 18 | else if ((1000000 > pmt.amount)) | |
19 | 19 | then throw("Please Attach minimum 1 USDT To Issue Gold Asset.") | |
20 | - | else [IntegerEntry("Total_Issued_Gold:", TotalIssuedGold), Reissue(GoldAssetID, | |
20 | + | else [IntegerEntry("Total_Issued_Gold:", TotalIssuedGold), Reissue(GoldAssetID, NewGoldToUser, true), ScriptTransfer(i.caller, NewGoldToUser, GoldAssetID)] | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | @Verifier(tx) | |
25 | 25 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
26 | 26 |
github/deemru/w8io/026f985 39.76 ms ◑