Skip to content

[ITE][Admin][Contract Controls] Lỗi chưa hiển thị đúng error message ở item [Amount] khi setting Min stake, Max stake / User, Max stake / Package, khi Withdraw Excess Reward và Fund Contract #7

@LeThao4112004

Description

@LeThao4112004

Step:

  1. Login site Admin
  2. Tại menu: click [Sync Monitor]
  3. Click Withdraw Excess

Case 1: Tại form Withdraw Excess Reward:
4. Input 72 kí tự (số nguyên) vào item [Amount] -> click button [Withdraw Reward]
5. Input 1.1234567 (7 số ở phần thập phân) vào item [Amount] -> click button [Withdraw Reward]
6. Input amount lớn hơn số reward dư thực tế

Actual:
Tại 4: Đang hiển thị error message sau:
Image

Tại 5: Đang cho phép nhập > 6 kí tự ở phần thập phân (sau dấu [.])

Tại 6: Đang hiển thị error message sau:
Image

Expected:
Tại 4: Chặn nhập kí tự thứ 72
Tại 5: Chặn nhập kí tự thứ 6
Tại 6: Hiển thị error message khi nhập amount lớn hơn số reward dư thực tế: "Exceeds excess reward"

Note: fix tương tự với các case sau:
Case 2: Tại pop up Fund contract:

  • Fix tương tự step 4, 5
  • Fix lại error message khi nhập amount quá số token trong ví: Hiển thị "Insufficient token balance"

Case 3: Tại pop up Min stake:

  • Fix tương tự step 4, 5
  • Expected: khi lưu với min stake = 0 thì hiển thị error message: Min stake amount must be greater than 0"

Case 4: Tại pop up Max stake / User

  • Fix tương tự step 4, 5

Case 5: Tại pop up Max stake / Package

  • Fix tương tự step 4, 5

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions