tx · EtE7BQn14rbTDUMpv38yEsoBCdtdrvhte7kdtJ7rRxS8

3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo:  -0.01400000 Waves

2021.10.09 10:51 [1738457] smart account 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo > SELF 0.00000000 Waves

{ "type": 13, "id": "EtE7BQn14rbTDUMpv38yEsoBCdtdrvhte7kdtJ7rRxS8", "fee": 1400000, "feeAssetId": null, "timestamp": 1633765906609, "version": 2, "chainId": 84, "sender": "3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo", "senderPublicKey": "AmXrJ1inc5jpKhf6D9aDcRU8QWHZXBJdBBvz9VsKDe9x", "proofs": [ "26nhzE3pEPz2AEhcMoBE75AnnJC3dERn1RRa3C1TK9X6jdf2oYHVDr1vKoouLYVmJb5QJwzW254UXbJnwEAdRaP4" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAACAAAAAALQ09ERUFzc2V0SUQBAAAAINAEYRpFnLQZXHk7APbo5tWij1YQ2cG3R/UN12TTTH73AAAAAAdvbmVob3VyAAAAAAAANu6AAAAAAAZvbmVkYXkAAAAAAAUmXAAAAAAAB29uZXdlZWsAAAAAACQMhAAAAAAACG9uZW1vbnRoAAAAAACcv5BAAAAAAA5TdGFydEluZmxhdGlvbgkAAGwAAAAGAAAAAAAAAAAKAAAAAAAAAAACAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAACBQAAAAJVUAAAAAAKRmVlQWRkcmVzcwEAAAAgUoPZoIvXkJI7M+XgQERyG3Ox4PxeH5gdLMWeskjH4iAAAAAACmRldkFkZHJlc3MBAAAAIHE/Oe1BrsJepSkes1ESh96Qyq2U5VDLF1kF2MXI1ngbAAAAAQAAAAFpAQAAAAVDbGFpbQAAAAAEAAAAA3BtdAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAtDT0RFQXNzZXRJRAkAAAIAAAABCQABLAAAAAICAAAAKEluY29ycmVjdCBhc3NldCBhdHRhY2hlZCwgcGxlYXNlIGF0dGFjaCAJAAJYAAAAAQUAAAALQ09ERUFzc2V0SUQDCQAAZgAAAAIAAAAAAABMS0AIBQAAAANwbXQAAAAGYW1vdW50CQAAAgAAAAECAAAAMlBsZWFzZSBBdHRhY2ggbWluaW11bSAwLjA1IFROIFRvIElzc3VlIENPREUgQXNzZXQuCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAlJbmZsYXRpb24FAAAADlN0YXJ0SW5mbGF0aW9uBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tledrKzTY=", "height": 1738457, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BDJxdkCXAinYsW9fUMgcsHg7hCvNsTkejEqP5cPC3YNk Next: 3stDvzzk5umsmBptDpSfBhtPkNiKv5wjhSov5TwA39YK Diff:
OldNewDifferences
2121 func Claim () = {
2222 let pmt = value(i.payments[0])
2323 let currentKey = toBase58String(i.caller.bytes)
24- let PricePerCODE = getIntegerValue(this, "CODE/TN")
25- let CODEHardCap = getIntegerValue(this, "CODEHardCap")
26- let NewCODEToUser = fraction(100000, pmt.amount, PricePerCODE)
27- let PreviousIssuedCODE = getIntegerValue(this, "Total_Issued_CODE:")
28- let TotalIssuedCODE = (PreviousIssuedCODE + NewCODEToUser)
29- let PendingMinting = (CODEHardCap - TotalIssuedCODE)
30- let PreviousCODEReserveValue = getIntegerValue(this, "Total_CODE_Reserve_In_TN:")
31- let CODEReserveValue = (PreviousCODEReserveValue + pmt.amount)
32- let PreviousCODEBackupPrice = getIntegerValue(this, "CODE_Backup_Value_In_TN:")
33- let CODEBackupPrice = fraction(100000, CODEReserveValue, TotalIssuedCODE)
3424 if ((pmt.assetId != CODEAssetID))
3525 then throw(("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)))
3626 else if ((5000000 > pmt.amount))
3727 then throw("Please Attach minimum 0.05 TN To Issue CODE Asset.")
38- else if ((TotalIssuedCODE > CODEHardCap))
39- 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"))
40- else [IntegerEntry("Inflation", StartInflation)]
28+ else [IntegerEntry("Inflation", StartInflation)]
4129 }
4230
4331
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)
24- let PricePerCODE = getIntegerValue(this, "CODE/TN")
25- let CODEHardCap = getIntegerValue(this, "CODEHardCap")
26- let NewCODEToUser = fraction(100000, pmt.amount, PricePerCODE)
27- let PreviousIssuedCODE = getIntegerValue(this, "Total_Issued_CODE:")
28- let TotalIssuedCODE = (PreviousIssuedCODE + NewCODEToUser)
29- let PendingMinting = (CODEHardCap - TotalIssuedCODE)
30- let PreviousCODEReserveValue = getIntegerValue(this, "Total_CODE_Reserve_In_TN:")
31- let CODEReserveValue = (PreviousCODEReserveValue + pmt.amount)
32- let PreviousCODEBackupPrice = getIntegerValue(this, "CODE_Backup_Value_In_TN:")
33- let CODEBackupPrice = fraction(100000, CODEReserveValue, TotalIssuedCODE)
3424 if ((pmt.assetId != CODEAssetID))
3525 then throw(("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)))
3626 else if ((5000000 > pmt.amount))
3727 then throw("Please Attach minimum 0.05 TN To Issue CODE Asset.")
38- else if ((TotalIssuedCODE > CODEHardCap))
39- 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"))
40- else [IntegerEntry("Inflation", StartInflation)]
28+ else [IntegerEntry("Inflation", StartInflation)]
4129 }
4230
4331
4432 @Verifier(tx)
4533 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4634

github/deemru/w8io/169f3d6 
23.61 ms