tx · 9iHEkCYJHxrdVFEQBqx3n1icPx5Akgxp3fMK1EXF1qfS

3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo:  -0.01400000 Waves

2021.10.09 10:47 [1738454] smart account 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo > SELF 0.00000000 Waves

{ "type": 13, "id": "9iHEkCYJHxrdVFEQBqx3n1icPx5Akgxp3fMK1EXF1qfS", "fee": 1400000, "feeAssetId": null, "timestamp": 1633765747192, "version": 2, "chainId": 84, "sender": "3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo", "senderPublicKey": "AmXrJ1inc5jpKhf6D9aDcRU8QWHZXBJdBBvz9VsKDe9x", "proofs": [ "5nVcyA3ruforcVYkj66MxAMMD44FDVuqbDw14c95G6eA1MtUC1n8GF9KmieUNB7jjHtaZSA4ae4gYnpuXDN65uzx" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAACAAAAAALQ09ERUFzc2V0SUQBAAAAINAEYRpFnLQZXHk7APbo5tWij1YQ2cG3R/UN12TTTH73AAAAAAdvbmVob3VyAAAAAAAANu6AAAAAAAZvbmVkYXkAAAAAAAUmXAAAAAAAB29uZXdlZWsAAAAAACQMhAAAAAAACG9uZW1vbnRoAAAAAACcv5BAAAAAAA5TdGFydEluZmxhdGlvbgkAAGwAAAAGAAAAAAAAAAAKAAAAAAAAAAACAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAACBQAAAAJVUAAAAAAKRmVlQWRkcmVzcwEAAAAgUoPZoIvXkJI7M+XgQERyG3Ox4PxeH5gdLMWeskjH4iAAAAAACmRldkFkZHJlc3MBAAAAIHE/Oe1BrsJepSkes1ESh96Qyq2U5VDLF1kF2MXI1ngbAAAAAQAAAAFpAQAAAAVDbGFpbQAAAAAEAAAAA3BtdAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAA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bmVkAAAAAQkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAtDT0RFQXNzZXRJRAkAAAIAAAABCQABLAAAAAICAAAAKEluY29ycmVjdCBhc3NldCBhdHRhY2hlZCwgcGxlYXNlIGF0dGFjaCAJAAJYAAAAAQUAAAALQ09ERUFzc2V0SUQDCQAAZgAAAAIAAAAAAABMS0AIBQAAAANwbXQAAAAGYW1vdW50CQAAAgAAAAECAAAAMlBsZWFzZSBBdHRhY2ggbWluaW11bSAwLjA1IFROIFRvIElzc3VlIENPREUgQXNzZXQuAwkAAGYAAAACBQAAAA9Ub3RhbElzc3VlZENPREUFAAAAC0NPREVIYXJkQ2FwCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAL0NPREUgTWludGluZyBpcyBhYm91dCB0byByZWFjaCB0aGUgSGFyZCBDYXAgb2YgCQABpAAAAAEFAAAAC0NPREVIYXJkQ2FwAgAAADAvMTBeOCBDT0RFLiBQbGVhc2UgUmVkdWNlIHlvdXIgTWludGluZyBPcmRlciBieSAJAAGkAAAAAQUAAAAOUGVuZGluZ01pbnRpbmcCAAAACCBvciBwdXQgCQABpAAAAAEJAABlAAAAAgUAAAALQ09ERUhhcmRDYXAFAAAAElByZXZpb3VzSXNzdWVkQ09ERQIAAAAFLzEwXjgJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAACUluZmxhdGlvbgUAAAAOU3RhcnRJbmZsYXRpb24FAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V55bOX5g==", "height": 1738454, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hy92krVqo17CPw3obdmfUYhCVMKgtCSQRefpwfhHDJxE Next: BDJxdkCXAinYsW9fUMgcsHg7hCvNsTkejEqP5cPC3YNk Diff:
OldNewDifferences
3232 let PreviousCODEBackupPrice = getIntegerValue(this, "CODE_Backup_Value_In_TN:")
3333 let CODEBackupPrice = fraction(100000, CODEReserveValue, TotalIssuedCODE)
3434 if (isDefined((pmt.assetId != CODEAssetID)))
35- then throw("Incorrect asset attached, please attach TN.")
35+ then throw(("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)))
3636 else if ((5000000 > pmt.amount))
3737 then throw("Please Attach minimum 0.05 TN To Issue CODE Asset.")
3838 else if ((TotalIssuedCODE > CODEHardCap))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let CODEAssetID = base58'F11g74azdw3SZN83raygbu9useimfTwSQ7HmTLggAq26'
55
66 let onehour = 3600000
77
88 let oneday = 86400000
99
1010 let oneweek = 604800000
1111
1212 let onemonth = 2629800000
1313
1414 let StartInflation = pow(10, 2, 3, 0, 2, UP)
1515
1616 let FeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
1717
1818 let devAddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
1919
2020 @Callable(i)
2121 func Claim () = {
2222 let pmt = value(i.payments[0])
2323 let currentKey = toBase58String(i.caller.bytes)
2424 let PricePerCODE = getIntegerValue(this, "CODE/TN")
2525 let CODEHardCap = getIntegerValue(this, "CODEHardCap")
2626 let NewCODEToUser = fraction(100000, pmt.amount, PricePerCODE)
2727 let PreviousIssuedCODE = getIntegerValue(this, "Total_Issued_CODE:")
2828 let TotalIssuedCODE = (PreviousIssuedCODE + NewCODEToUser)
2929 let PendingMinting = (CODEHardCap - TotalIssuedCODE)
3030 let PreviousCODEReserveValue = getIntegerValue(this, "Total_CODE_Reserve_In_TN:")
3131 let CODEReserveValue = (PreviousCODEReserveValue + pmt.amount)
3232 let PreviousCODEBackupPrice = getIntegerValue(this, "CODE_Backup_Value_In_TN:")
3333 let CODEBackupPrice = fraction(100000, CODEReserveValue, TotalIssuedCODE)
3434 if (isDefined((pmt.assetId != CODEAssetID)))
35- then throw("Incorrect asset attached, please attach TN.")
35+ then throw(("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)))
3636 else if ((5000000 > pmt.amount))
3737 then throw("Please Attach minimum 0.05 TN To Issue CODE Asset.")
3838 else if ((TotalIssuedCODE > CODEHardCap))
3939 then throw((((((("CODE Minting is about to reach the Hard Cap of " + toString(CODEHardCap)) + "/10^8 CODE. Please Reduce your Minting Order by ") + toString(PendingMinting)) + " or put ") + toString((CODEHardCap - PreviousIssuedCODE))) + "/10^8"))
4040 else [IntegerEntry("Inflation", StartInflation)]
4141 }
4242
4343
4444 @Verifier(tx)
4545 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4646

github/deemru/w8io/169f3d6 
27.73 ms