Skip to content

Commit

Permalink
readonly fields
Browse files Browse the repository at this point in the history
  • Loading branch information
bra1nsurfer committed Oct 21, 2024
1 parent b825915 commit 992702d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ride/l2mp_leasing.ride
Original file line number Diff line number Diff line change
Expand Up @@ -601,11 +601,13 @@ func getUserLeasingDataREADONLY(nodeAddress: String, userAddress: String) = {
# _9 = l2mp to burn on units claim
# _10 = total l2mp burned
# _11 = last units claimed height
# -12 = units per block per l2 in scale16
@Callable(i)
func getUserDataREADONLY(userAddress: String) = {
let (toClaim, toUnlock) = getUserToClaimBalance(userAddress)
let userTotalLocked = getUserTotalLocked(userAddress)
let (unitsToSend, totalUnitsClaimed, l2ToBurn, totalL2Burned, claimedBlock) = getUnitsClaimData(userAddress)
let unitsPerBlockScale16 = this.getInteger(keyUnitsPerBlockScale16).valueOrElse(0)

(
[],
Expand All @@ -620,7 +622,8 @@ func getUserDataREADONLY(userAddress: String) = {
totalUnitsClaimed,
l2ToBurn,
totalL2Burned,
claimedBlock
claimedBlock,
unitsPerBlockScale16
)
)
}
Expand Down

0 comments on commit 992702d

Please sign in to comment.