Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [L-02] Lack of input validation #47

Merged
merged 3 commits into from
Jan 4, 2023
Merged

Commits on Jan 2, 2023

  1. [L-02] fix: Lack of input validation

    The OZ December 2022 audit identified a lack of input validation on
    the following functions:
     - stakeFor() (missing validation of beneficiary address).
     - unstake()  (missing validation on the amount input).
     - _stake()   (missing validation on the amount input).
    
    This change applies input validation to the externally-accessible
    functions.
    pxrl committed Jan 2, 2023
    Configuration menu
    Copy the full SHA
    6f3c275 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2023

  1. improve: Relocate staking amount constraint

    Discussed with Nick.
    pxrl committed Jan 4, 2023
    Configuration menu
    Copy the full SHA
    53347df View commit details
    Browse the repository at this point in the history
  2. fix: Un-break test

    pxrl committed Jan 4, 2023
    Configuration menu
    Copy the full SHA
    fc2bcd5 View commit details
    Browse the repository at this point in the history