Skip to content

Add Staking.sol

Add Staking.sol #10

Triggered via push June 10, 2024 13:28
Status Success
Total duration 20s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

7 warnings
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint: src/Staking.sol#L16
Immutable variables name are set to be in capitalized SNAKE_CASE
lint: src/Staking.sol#L29
Value parameter in mapping userStakes is not named
lint: src/Staking.sol#L30
Value parameter in mapping balances is not named
lint: src/Staking.sol#L35
Variable "_lockPeriod" is unused
lint: src/Staking.sol#L41
Error message for require is too long: 46 counted / 32 allowed
lint: src/Staking.sol#L119
Possible reentrancy vulnerabilities. Avoid state changes after transfer