tx · 272XAisGhaNdcnXAHxXVkdDh432eSYsi7Szq4L7qTTLC

3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1:  -0.01400000 Waves

2022.03.18 13:13 [1969274] smart account 3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1 > SELF 0.00000000 Waves

{ "type": 13, "id": "272XAisGhaNdcnXAHxXVkdDh432eSYsi7Szq4L7qTTLC", "fee": 1400000, "feeAssetId": null, "timestamp": 1647598416133, "version": 2, "chainId": 84, "sender": "3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1", "senderPublicKey": "Ehngpik6DXwbcV8tpLbd3qBFjChSdW49YqyxinREgabT", "proofs": [ "21MKLgBjrQCsoYNEQiXoxHMtYQLXg5jMRqrak4ZE7dACTfJT3EAazwPvjaw9BbSQjJQfMCwJ5MYZ7gDSDnS9BYFG" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAABwAAAAAHRGFwcEZlZQAAAAAAAX14QAAAAAAPZ2V0Y3VycmVudHJvdW5kCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAA1jdXJyZW50X3JvdW5kAAAAAAt4VVNEQXNzZXRJRAEAAAAgFL6suSOz59kPuWk6uGlMY5dOE57gDA+avRGV6b6neqsAAAAADEZBSVRIQXNzZXRJRAEAAAAgLW9bAbmd5UpvGoRop5PuExeWGALv8UR2MHtYdfeTqKAAAAAAEUNvbGxlY3RGZWVBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABAQAAACBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAAAAAAOZmV0Y2h0b3RhbHR4bnMEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwIAAAAKVG90YWxfVHhucwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAAAAAAl0b3R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udHJ5AAAAAgkAASwAAAACAgAAABJEZXBvc2l0X0Ftb3VudF9PZl8FAAAACmN1cnJlbnRLZXkJAABlAAAAAggFAAAABHBtdDEAAAAGYW1vdW50BQAAAAdEYXBwRmVlCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAAEUN1cnJlbnRfUm91bmRfT2ZfBQAAAApjdXJyZW50S2V5BQAAAA9nZXRjdXJyZW50cm91bmQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAABBDbGFpbV9TdGF0dXNfT2ZfBQAAAApjdXJyZW50S2V5AgAAAAdQRU5ESU5HCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAAD05vX09mX0RlcG9zaXRzXwUAAAAKY3VycmVudEtleQUAAAAYU3VtcHVwb2ZVc2VyTm9PZkRlcG9zaXRzCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAEUNvbGxlY3RGZWVBZGRyZXNzBQAAAAdEYXBwRmVlBQAAAAt4VVNEQXNzZXRJRAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5j8A9Mg==", "height": 1969274, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BWNdM2q6vLy8BdZvTE68oKBhHfnqitwFx5kZ7xQ2ZPQY Next: GJsxN57YA1PhiLYz7ST5geMHpTi7r2QJDgdpX5SYnroz Diff:
OldNewDifferences
55
66 let getcurrentround = getIntegerValue(this, "current_round")
77
8-let xUSDAssetID = base58'F3or3Nn6NTcSkRvzqtoCoyuCfdqNSuP8rjLboS2AemPL'
8+let xUSDAssetID = base58'2PyngaPGAFjV9AVFXSQANwumY6FSY1cqZDBK8NsEGCup'
99
10-let FAITHAssetID = base58''
10+let FAITHAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
1111
1212 let CollectFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
1313
5252 then throw("Two assets attached, Kindly Attach only payment1 = xUSD with in [5-10000] xUSD Range.")
5353 else if ((UserNoOfDeposits == 1))
5454 then throw("You Already participated for an Round, Which has not been settled Yet. Wait until round end and re-enter again.")
55- else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), IntegerEntry(("Deposit_Amount_Of_" + currentKey), pmt1.amount), IntegerEntry(("Current_Round_Of_" + currentKey), getcurrentround), StringEntry(("Claim_Status_Of_" + currentKey), "PENDING"), IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), ScriptTransfer(CollectFeeAddress, DappFee, xUSDAssetID)]
55+ else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), IntegerEntry(("Deposit_Amount_Of_" + currentKey), (pmt1.amount - DappFee)), IntegerEntry(("Current_Round_Of_" + currentKey), getcurrentround), StringEntry(("Claim_Status_Of_" + currentKey), "PENDING"), IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), ScriptTransfer(CollectFeeAddress, DappFee, xUSDAssetID)]
5656 }
5757
5858
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let DappFee = 25000000
55
66 let getcurrentround = getIntegerValue(this, "current_round")
77
8-let xUSDAssetID = base58'F3or3Nn6NTcSkRvzqtoCoyuCfdqNSuP8rjLboS2AemPL'
8+let xUSDAssetID = base58'2PyngaPGAFjV9AVFXSQANwumY6FSY1cqZDBK8NsEGCup'
99
10-let FAITHAssetID = base58''
10+let FAITHAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
1111
1212 let CollectFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
1313
1414 let fetchtotaltxns = match getInteger(this, "Total_Txns") {
1515 case a: Int =>
1616 a
1717 case _ =>
1818 0
1919 }
2020
2121 let totaltxns = (fetchtotaltxns + 1)
2222
2323 @Callable(i)
2424 func Deposit () = {
2525 let pmt1 = if ((size(i.payments) == 1))
2626 then i.payments[0]
2727 else throw((("No Payments Attached Please Attach " + toBase58String(xUSDAssetID)) + " Asset Only."))
2828 let maxdepositamt = 1000000000000
2929 let currentKey = toBase58String(i.caller.bytes)
3030 let oneround = 240
3131 let fetchtotalusertxns = match getInteger(this, ("Total_UserTxns_" + currentKey)) {
3232 case a: Int =>
3333 a
3434 case _ =>
3535 0
3636 }
3737 let usertotaltxns = (fetchtotalusertxns + 1)
3838 let UserNoOfDeposits = match getInteger(this, ("No_Of_Deposits_" + currentKey)) {
3939 case a: Int =>
4040 a
4141 case _ =>
4242 0
4343 }
4444 let SumpupofUserNoOfDeposits = (UserNoOfDeposits + 1)
4545 if ((pmt1.assetId != xUSDAssetID))
4646 then throw("Incorrect asset attached, please attach only xUSD AssetID.")
4747 else if ((499999999 >= pmt1.amount))
4848 then throw("Please attach minimum 5xUSD to deposit to enter round.")
4949 else if ((pmt1.amount > maxdepositamt))
5050 then throw("Please attach correct amount in between [5-10000] xUSD.")
5151 else if ((size(i.payments) > 1))
5252 then throw("Two assets attached, Kindly Attach only payment1 = xUSD with in [5-10000] xUSD Range.")
5353 else if ((UserNoOfDeposits == 1))
5454 then throw("You Already participated for an Round, Which has not been settled Yet. Wait until round end and re-enter again.")
55- else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), IntegerEntry(("Deposit_Amount_Of_" + currentKey), pmt1.amount), IntegerEntry(("Current_Round_Of_" + currentKey), getcurrentround), StringEntry(("Claim_Status_Of_" + currentKey), "PENDING"), IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), ScriptTransfer(CollectFeeAddress, DappFee, xUSDAssetID)]
55+ else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), IntegerEntry(("Deposit_Amount_Of_" + currentKey), (pmt1.amount - DappFee)), IntegerEntry(("Current_Round_Of_" + currentKey), getcurrentround), StringEntry(("Claim_Status_Of_" + currentKey), "PENDING"), IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), ScriptTransfer(CollectFeeAddress, DappFee, xUSDAssetID)]
5656 }
5757
5858
5959 @Verifier(tx)
6060 func verify () = match tx {
6161 case _ =>
6262 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
6363 }
6464

github/deemru/w8io/026f985 
44.01 ms