Skip to content

Commit

Permalink
Merge pull request #45 from sanbir/deoracleized
Browse files Browse the repository at this point in the history
fix audit L4
  • Loading branch information
sanbir authored Jan 20, 2025
2 parents 7a70df6 + 4f459c8 commit dcea97b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions contracts/feeDistributor/DeoracleizedFeeDistributor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ contract DeoracleizedFeeDistributor is BaseFeeDistributor {
revert FeeDistributor__ClientNotSet();
}

if (address(this).balance == 0) {
// revert if there is no ether to withdraw
revert FeeDistributor__NothingToWithdraw();
}

uint256 clientAmount = uint256(_withdrawal.clientAmount);
uint256 serviceAmount = uint256(_withdrawal.serviceAmount);
uint256 referrerAmount = uint256(_withdrawal.referrerAmount);
Expand Down

1 comment on commit dcea97b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@check-spelling-bot Report

🔴 Please review

See the 📜action log or 📝 job summary for details.

Unrecognized words (4)

Bbf
cancun
deoracleized
xec

These words are not needed and should be removed aae aaf ada adaefbe aecded aefb afdcab afe Bbbd bfbe BFF cafec cbb cdd cfe dcc dcdd dda DEAE debd deca ded ecca EFBA fca fccdea Fcd fdf fea fffebe hex'a hex'adfdd hex'b

To accept these unrecognized words as correct and remove the previously acknowledged and now absent words, you could run the following commands

... in a clone of the [email protected]:p2p-org/eth-staking-fee-distributor-contracts.git repository
on the master branch (ℹ️ how do I use this?):

curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/main/apply.pl' |
perl - 'https://github.com/p2p-org/eth-staking-fee-distributor-contracts/actions/runs/12868204673/attempts/1'
Available 📚 dictionaries could cover words (expected and unrecognized) not in the 📘 dictionary

This includes both expected items (76) from .github/actions/spelling/expect.txt and unrecognized words (4)

Dictionary Entries Covers Uniquely
cspell:software-terms/dict/softwareTerms.txt 1288 2 1
cspell:cryptocurrencies/cryptocurrencies.txt 125 1 1
cspell:mnemonics/src/mnemonics.txt 800 1 1
cspell:python/src/python/python-lib.txt 2417 1 1
cspell:filetypes/filetypes.txt 264 1

Consider adding them (in .github/workflows/spelling.yml) in jobs:/spelling: for uses: check-spelling/check-spelling@main in its with:

      with:
        extra_dictionaries: |
          cspell:software-terms/dict/softwareTerms.txt
          cspell:cryptocurrencies/cryptocurrencies.txt
          cspell:mnemonics/src/mnemonics.txt
          cspell:python/src/python/python-lib.txt
          cspell:filetypes/filetypes.txt

To stop checking additional dictionaries, add (in .github/workflows/spelling.yml) for uses: check-spelling/check-spelling@main in its with:

check_extra_dictionaries: ''
If the flagged items are false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it,
    try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

Please sign in to comment.