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:
OldNewDifferences
1717 then throw("Incorrect asset attached, please attach USDT AssetID GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU.")
1818 else if ((1000000 > pmt.amount))
1919 then throw("Please Attach minimum 1 USDT To Issue Gold Asset.")
20- else [IntegerEntry("Total_Issued_Gold:", TotalIssuedGold), Reissue(GoldAssetID, (NewGoldToUser * 1000000), true), ScriptTransfer(i.caller, NewGoldToUser, GoldAssetID)]
20+ else [IntegerEntry("Total_Issued_Gold:", TotalIssuedGold), Reissue(GoldAssetID, NewGoldToUser, true), ScriptTransfer(i.caller, NewGoldToUser, GoldAssetID)]
2121 }
2222
2323
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func issuegold () = {
88 let pmt = value(i.payments[0])
99 let currentKey = toBase58String(i.caller.bytes)
1010 let GoldAssetID = base58'4noTADz7TX4HmjkCMpJAzkfuR6BKxDsSCzp3XJNZAcgy'
1111 let USDTAssetID = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'
1212 let PricePerGramGold = getIntegerValue(this, "GAU/USD")
1313 let NewGoldToUser = fraction(pmt.amount, PricePerGramGold, 1000000)
1414 let PreviousIssuedGold = getIntegerValue(this, "Total_Issued_Gold:")
1515 let TotalIssuedGold = (PreviousIssuedGold + NewGoldToUser)
1616 if ((pmt.assetId != USDTAssetID))
1717 then throw("Incorrect asset attached, please attach USDT AssetID GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU.")
1818 else if ((1000000 > pmt.amount))
1919 then throw("Please Attach minimum 1 USDT To Issue Gold Asset.")
20- else [IntegerEntry("Total_Issued_Gold:", TotalIssuedGold), Reissue(GoldAssetID, (NewGoldToUser * 1000000), true), ScriptTransfer(i.caller, NewGoldToUser, GoldAssetID)]
20+ else [IntegerEntry("Total_Issued_Gold:", TotalIssuedGold), Reissue(GoldAssetID, NewGoldToUser, true), ScriptTransfer(i.caller, NewGoldToUser, GoldAssetID)]
2121 }
2222
2323
2424 @Verifier(tx)
2525 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2626

github/deemru/w8io/026f985 
39.76 ms