tx · HwW2NWCQKXQyZQ5C7ULZVk4SBW1932oc9D6q8cxKLCAU

3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK:  -0.01000000 Waves

2022.05.23 19:06 [2064550] smart account 3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK > SELF 0.00000000 Waves

{ "type": 13, "id": "HwW2NWCQKXQyZQ5C7ULZVk4SBW1932oc9D6q8cxKLCAU", "fee": 1000000, "feeAssetId": null, "timestamp": 1653321971227, "version": 2, "chainId": 84, "sender": "3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK", "senderPublicKey": "2bV4VobJC5a6L6e7or9PFXQhQ1KtkZW1UYzjAvMzs6A8", "proofs": [ "ZFYFSXxbKtMMtoB2sjrwz36aWNRZgp7g2W8DqgHB6Eka6usZi8siYsUuBJaVgUMH4ZgVdVqjBgAWDuZt9i9ktv6" ], "script": "base64:AAIFAAAAAAAAABUIAhIFCgMICAgSAwoBARIFCgMICAEAAAALAAAAAARCVXNkAQAAACCXSkGrfgp9S6ACoVXGdcgAKGd7js0XAB7Z3/CJRHkIAQAAAAAEVVNEVAEAAAAgl0pBq34KfUugAqFVxnXIAChne47NFwAe2d/wiUR5CAEAAAAABFVTREMBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAANCVEMBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAANFVEgBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAANCTkIBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAARVU0ROAQAAACCXSkGrfgp9S6ACoVXGdcgAKGd7js0XAB7Z3/CJRHkIAQAAAAAESEFTSAEAAAAgl0pBq34KfUugAqFVxnXIAChne47NFwAe2d/wiUR5CAEAAAAABEtVU0QBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ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5zZmVyAAAAAwUAAAAJZEFwcEZyZWVzCQAAaQAAAAIJAABoAAAAAgAAAAAAAAAABQUAAAAGYW1vdW50AAAAAAAAAABkBQAAAARCVXNkBQAAAANuaWwFAAAABEJVc2QAAAAAb7QgVQ==", "height": 2064550, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5EvwzSL3Mw6aZNm7SzXGx1nLLSXB5dE6kNJo8E9RpdU4 Next: Gn7frxoYTVgijfn9n2MkD4HmnzA5R5exDpwvXttFE3sP Diff:
OldNewDifferences
2828 let pmt = if ((size(i.payments) == 1))
2929 then i.payments[0]
3030 else throw("Attached payment is required")
31- if (if (if (if (if (if (if (if (if (if ((pmt.assetId != BUsd))
31+ if (if (if (if (if (if (if (if (if ((pmt.assetId != BUsd))
3232 then (pmt.assetId != USDT)
3333 else false)
3434 then (pmt.assetId != USDC)
4444 then (pmt.assetId != HASH)
4545 else false)
4646 then (pmt.assetId != KUSD)
47- else false)
48- then isDefined(pmt.assetId)
4947 else false)
5048 then if (if (if ((ScopeDesc == ""))
5149 then true
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let BUsd = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
55
66 let USDT = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
77
88 let USDC = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
99
1010 let BTC = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
1111
1212 let ETH = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
1313
1414 let BNB = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
1515
1616 let USDN = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
1717
1818 let HASH = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
1919
2020 let KUSD = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k'
2121
2222 let dAppFees = base58'3N9Lfz79kZAEUupwESSboYFyygo1nQguVXo'
2323
2424 let AdmindApp = base58'3Mx3pn4yMcBccM59UrDGjbbAkVsRYBw38tB'
2525
2626 @Callable(i)
2727 func DepositFunds (ScopeDesc,Deliverables,FreelancerAddress) = {
2828 let pmt = if ((size(i.payments) == 1))
2929 then i.payments[0]
3030 else throw("Attached payment is required")
31- if (if (if (if (if (if (if (if (if (if ((pmt.assetId != BUsd))
31+ if (if (if (if (if (if (if (if (if ((pmt.assetId != BUsd))
3232 then (pmt.assetId != USDT)
3333 else false)
3434 then (pmt.assetId != USDC)
3535 else false)
3636 then (pmt.assetId != BTC)
3737 else false)
3838 then (pmt.assetId != ETH)
3939 else false)
4040 then (pmt.assetId != BNB)
4141 else false)
4242 then (pmt.assetId != USDN)
4343 else false)
4444 then (pmt.assetId != HASH)
4545 else false)
4646 then (pmt.assetId != KUSD)
47- else false)
48- then isDefined(pmt.assetId)
4947 else false)
5048 then if (if (if ((ScopeDesc == ""))
5149 then true
5250 else (Deliverables == ""))
5351 then true
5452 else (FreelancerAddress == ""))
5553 then throw("Job Scope, Deliverables desc and Freelancer Wallet Address cannot be empty")
5654 else [StringEntry((toBase58String(i.caller.bytes) + "_Scope"), ScopeDesc), StringEntry((toBase58String(i.caller.bytes) + "_Deliv"), Deliverables), StringEntry((toBase58String(i.caller.bytes) + "_Freelancer"), FreelancerAddress), IntegerEntry((toBase58String(i.caller.bytes) + "_Payment"), pmt.amount)]
5755 else throw("Can only deposit accepted tokens")
5856 }
5957
6058
6159
6260 @Callable(i)
6361 func PayFreelancer (PayFreelancer) = {
6462 let FreeLancerPayment = (toBase58String(i.caller.bytes) + "_Payment")
6563 let FreelancerAddress = (toBase58String(i.caller.bytes) + "_Freelancer")
6664 let Paidtrx = (toBase58String(i.caller.bytes) + "_Paidtrx")
6765 let amount = match getInteger(this, FreeLancerPayment) {
6866 case a: Int =>
6967 a
7068 case _ =>
7169 0
7270 }
7371 let PaidtrxValue = match getInteger(this, Paidtrx) {
7472 case a: Int =>
7573 a
7674 case _ =>
7775 0
7876 }
7977 let FreelancerAddressStr = getStringValue(this, FreelancerAddress)
8078 let AddressFreeLancer = addressFromStringValue(FreelancerAddressStr)
8179 let dAppFrees = Address(dAppFees)
8280 if ((0 >= (amount - PayFreelancer)))
8381 then throw(("You do not have enough funds to make payment, your available funds are: " + toString((amount / 100000000))))
8482 else if ((PaidtrxValue > 12))
8583 then throw("You have already done 12 payments, you cannot make more payments")
8684 else {
8785 let Payment2Freelance = if ((PaidtrxValue == 11))
8886 then amount
8987 else (amount - PayFreelancer)
9088 $Tuple2([IntegerEntry((toBase58String(i.caller.bytes) + "_Payment"), Payment2Freelance), IntegerEntry((toBase58String(i.caller.bytes) + "_Paidtrx"), (PaidtrxValue + 1)), ScriptTransfer(AddressFreeLancer, ((95 * amount) / 100), BUsd), ScriptTransfer(dAppFrees, ((5 * amount) / 100), BUsd)], BUsd)
9189 }
9290 }
9391
9492
9593
9694 @Callable(i)
9795 func AdminTransfer (User,Freelancer,ToFreelancer) = if ((i.caller.bytes != AdmindApp))
9896 then throw("Only Admin can do this")
9997 else {
10098 let FreeLancerPayment = (User + "_Payment")
10199 let FreelancerAddress = (User + "_Freelancer")
102100 let amount = match getInteger(this, FreeLancerPayment) {
103101 case a: Int =>
104102 a
105103 case _ =>
106104 0
107105 }
108106 let FreelancerAddressStr = getStringValue(this, FreelancerAddress)
109107 let AddressFreeLancer = addressFromStringValue(FreelancerAddressStr)
110108 let dAppFrees = Address(dAppFees)
111109 let AddressUser = addressFromStringValue(User)
112110 if ((amount == 0))
113111 then throw("User's balance is 0 BUsdc cannot realize any payment")
114112 else $Tuple2([IntegerEntry((User + "_Payment"), 0), ScriptTransfer(AddressFreeLancer, ((ToFreelancer * (95 * amount)) / 10000), BUsd), ScriptTransfer(AddressUser, (((100 - ToFreelancer) * (95 * amount)) / 10000), BUsd), ScriptTransfer(dAppFrees, ((5 * amount) / 100), BUsd)], BUsd)
115113 }
116114
117115

github/deemru/w8io/169f3d6 
31.97 ms