tx · Gw99fbTjAWAi6XRChedWTpgfC1epdEuwSHc1MDjgxn7k

3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo:  -0.01400000 Waves

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

{ "type": 13, "id": "Gw99fbTjAWAi6XRChedWTpgfC1epdEuwSHc1MDjgxn7k", "fee": 1400000, "feeAssetId": null, "timestamp": 1634190063995, "version": 2, "chainId": 84, "sender": "3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo", "senderPublicKey": "AmXrJ1inc5jpKhf6D9aDcRU8QWHZXBJdBBvz9VsKDe9x", "proofs": [ "5XG2myG9MbFMSictWjQXZmszQ39vmDeP2KaoeQhMwxXJmA9mdTAsXXtYZ89WWQCygN8E2xGa8T9VBFz3N9Q3fhgV" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAACgAAAAALQ09ERUFzc2V0SUQBAAAAINAEYRpFnLQZXHk7APbo5tWij1YQ2cG3R/UN12TTTH73AAAAAAtTdGFydEhlaWdodAAAAAAAABqh+AAAAAAGb25lZGF5AAAAAAAAAAWgAAAAAA9taW5pbXVtbG9ja2RheXMAAAAAAAAAAAYAAAAAD21heGltdW1sb2NrZGF5cwAAAAAAAAAABwAAAAAJYmxvY2tkaWZmCQAAZQAAAAIFAAAABmhlaWdodAUAAAALU3RhcnRIZWlnaHQAAAAAC0luZmxhdGlvbk5vCQAAZAAAAAIJAABrAAAAAwAAAAACVAvkAAAAAAAAAAAAAQUAAAAJYmxvY2tkaWZmAAAAAAAAABdwAAAAAAtTdGFraW5nRGFwcAEAAAAgo7WknlFYQG5NE/mpBZyxqA4fl+GkedKP+NopRLlOBBYAAAAACkZlZUFkZHJlc3MBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAApkZXZBZGRyZXNzAQAAACBxPzntQa7CXqUpHrNREofekMqtlOVQyxdZBdjFy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AUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmmJT6L", "height": 1745531, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BJj5YwqYrsZrqn4NrDBgH6tiGngKnU6RHrcwEafuPKUQ Next: FVpz14Ng6RHz1uoaoe8xomDYGgCPUSANaoWrnijKiv7L Diff:
OldNewDifferences
77
88 let oneday = 1440
99
10-let minimumlockdays = 29
10+let minimumlockdays = 6
1111
12-let maximumlockdays = 200
12+let maximumlockdays = 7
1313
1414 let blockdiff = (height - StartHeight)
1515
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
10-let minimumlockdays = 29
10+let minimumlockdays = 6
1111
12-let maximumlockdays = 200
12+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))
5050 then throw(((("You Entered days greater than 200 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 
34.58 ms