This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity 0.8.25; | |
| // PoC: minimal reproduction of the EXACT bug pattern from | |
| // /kite-audit/src/contracts/validator-manager/StakingManager.sol | |
| // Lines referenced are from the real source. | |
| enum DelegatorStatus { Unknown, PendingAdded, Active, PendingRemoved } | |
| enum ValidatorStatus { Unknown, PendingAdded, Active, PendingRemoved, Completed, Invalidated } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: LicenseRef-Ecosystem | |
| // (c) 2024, Ava Labs, Inc. All rights reserved. | |
| // modified from https://github.com/ava-labs/icm-contracts/blob/main/contracts/validator-manager/StakingManager.sol | |
| pragma solidity 0.8.25; | |
| import {ValidatorMessages} from "./ValidatorMessages.sol"; | |
| import {IValidatorManager} from "./interfaces/IValidatorManager.sol"; | |
| import {Delegator, DelegatorStatus, IStakingManager, PoSValidatorInfo, StakingManagerSettings} from "./interfaces/IStakingManager.sol"; |