tx · FVpz14Ng6RHz1uoaoe8xomDYGgCPUSANaoWrnijKiv7L

3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo:  -0.01400000 Waves

2021.10.14 08:40 [1745531] smart account 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo > SELF 0.00000000 Waves

{ "type": 13, "id": "FVpz14Ng6RHz1uoaoe8xomDYGgCPUSANaoWrnijKiv7L", "fee": 1400000, "feeAssetId": null, "timestamp": 1634190147996, "version": 2, "chainId": 84, "sender": "3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo", "senderPublicKey": "AmXrJ1inc5jpKhf6D9aDcRU8QWHZXBJdBBvz9VsKDe9x", "proofs": [ "2A5iu3xFHJAciazAZQjTLuXnQASnaYno2k7MbR471LzPU1sqPA5jFq3i94aynDw2uxZoAAqC7XdpzvoXTbr9AyjU" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAACgAAAAALQ09ERUFzc2V0SUQBAAAAINAEYRpFnLQZXHk7APbo5tWij1YQ2cG3R/UN12TTTH73AAAAAAtTdGFydEhlaWdodAAAAAAAABqh+AAAAAAGb25lZGF5AAAAAAAAAAWgAAAAAA9taW5pbXVtbG9ja2RheXMAAAAAAAAAAAYAAAAAD21heGltdW1sb2NrZGF5cwAAAAAAAAAABwAAAAAJYmxvY2tkaWZmCQAAZQAAAAIFAAAABmhlaWdodAUAAAALU3RhcnRIZWlnaHQAAAAAC0luZmxhdGlvbk5vCQAAZAAAAAIJAABrAAAAAwAAAAACVAvkAAAAAAAAAAAAAQUAAAAJYmxvY2tkaWZmAAAAAAAAABdwAAAAAAtTdGFraW5nRGFwcAEAAAAgo7WknlFYQG5NE/mpBZyxqA4fl+GkedKP+NopRLlOBBYAAAAACkZlZUFkZHJlc3MBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAApkZXZBZGRyZXNzAQAAACBxPzntQa7CXqUpHrNREofekMqtlOVQyxdZBdjFyNZ4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W1BbW91bnQFAAAAC0NPREVBc3NldElEBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tledB1lys=", "height": 1745531, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Gw99fbTjAWAi6XRChedWTpgfC1epdEuwSHc1MDjgxn7k Next: D4z7dwdLVriabLQwytQUEGdzXRvjQNGdoPSA5Feb4ka Diff:
OldNewDifferences
4747 else if ((minimumlockdays >= days))
4848 then throw(((("Choose Locking days in between " + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
4949 else if ((days > maximumlockdays))
50- then throw(((("You Entered days greater than 200 please Enter no. of days in between " + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
50+ then throw(((((("You Entered days to " + toString(days)) + ", Please Enter no. of days in between ") + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
5151 else if ((100000 > pmt.amount))
5252 then throw("Please Attach minimum 0.001 CODE To Issue CODE Asset.")
5353 else if ((pmt.amount > allowdedpymt))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let CODEAssetID = base58'F11g74azdw3SZN83raygbu9useimfTwSQ7HmTLggAq26'
55
66 let StartHeight = 1745400
77
88 let oneday = 1440
99
1010 let minimumlockdays = 6
1111
1212 let maximumlockdays = 7
1313
1414 let blockdiff = (height - StartHeight)
1515
1616 let InflationNo = (fraction(10000000000, 1, blockdiff) + 6000)
1717
1818 let StakingDapp = base58'C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV'
1919
2020 let FeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
2121
2222 let devAddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
2323
2424 @Callable(i)
2525 func Deposit (days) = {
2626 let pmt = if ((size(i.payments) == 1))
2727 then i.payments[0]
2828 else throw("No Payments Attached Please Attach CODE Asset Only.")
2929 let currentKey = toBase58String(i.caller.bytes)
3030 let UserClaimAmount = ((((InflationNo * pmt.amount) * days) / 365) / 1000)
3131 let allowdedpymt = (blockdiff * 100000)
3232 let actualblocks = (oneday * days)
3333 let totallockblocks = (height + actualblocks)
3434 let PreviousIssuedCODE = getIntegerValue(this, "Total_Issued_CODE:")
3535 let TotalIssuedCODE = (PreviousIssuedCODE + UserClaimAmount)
3636 let PreviousBurnedCODE = getIntegerValue(this, "Total_Burned_CODE:")
3737 let TotalBurnedCODE = (PreviousBurnedCODE + pmt.amount)
3838 let PreviousTxnsCODE = getIntegerValue(this, "Total_Txns:")
3939 let TotalTxnsCODE = (PreviousTxnsCODE + 1)
4040 let fetchuserstakeheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Deposit_height_Of_" + currentKey)), "Your Address not Found on Staking DApp")
4141 let fetchusermatureheight = valueOrErrorMessage(getInteger(addressFromPublicKey(StakingDapp), ("Total_Lock_Blocks_Of_" + currentKey)), "Your Address not Found on Staking DApp")
4242 let gapofheight = (fetchusermatureheight - fetchuserstakeheight)
4343 if ((StartHeight > height))
4444 then throw((("DApp is Not Started Yet please Wait until " + toString((StartHeight - height))) + " blocks"))
4545 else if ((pmt.assetId != CODEAssetID))
4646 then throw(("Incorrect asset attached, please attach " + toBase58String(CODEAssetID)))
4747 else if ((minimumlockdays >= days))
4848 then throw(((("Choose Locking days in between " + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
4949 else if ((days > maximumlockdays))
50- then throw(((("You Entered days greater than 200 please Enter no. of days in between " + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
50+ then throw(((((("You Entered days to " + toString(days)) + ", Please Enter no. of days in between ") + toString((minimumlockdays + 1))) + " to ") + toString(maximumlockdays)))
5151 else if ((100000 > pmt.amount))
5252 then throw("Please Attach minimum 0.001 CODE To Issue CODE Asset.")
5353 else if ((pmt.amount > allowdedpymt))
5454 then throw((("You can attach maximum " + toString(allowdedpymt)) + "/10^8 CODE."))
5555 else if ((gapofheight != 129600))
5656 then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.")
5757 else [Burn(CODEAssetID, pmt.amount), IntegerEntry("Total_Issued_CODE:", TotalIssuedCODE), IntegerEntry("Total_Burned_CODE:", TotalBurnedCODE), IntegerEntry("Total_Txns:", TotalTxnsCODE), IntegerEntry("Inflation", InflationNo), IntegerEntry(("Deposit_height_Of_" + currentKey), height), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), totallockblocks), IntegerEntry(("Claim_Amount_" + currentKey), UserClaimAmount), StringEntry("message", "<h1>CODE Issued Successfully!</h1><br>"), ScriptTransfer(i.caller, UserClaimAmount, CODEAssetID)]
5858 }
5959
6060
6161 @Verifier(tx)
6262 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
6363

github/deemru/w8io/169f3d6 
49.81 ms