2025-08-09 18:03:31 +02:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
pragma solidity ^0.8.19;
|
|
|
|
|
|
2025-10-04 15:17:09 +02:00
|
|
|
import { Kraiken } from "../../src/Kraiken.sol";
|
|
|
|
|
import { Stake } from "../../src/Stake.sol";
|
2025-08-09 18:03:31 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @title WhaleOptimizer
|
|
|
|
|
* @notice Simulates large position dominance with extremely aggressive parameters
|
|
|
|
|
* @dev Tests vulnerability to large trades that can move price significantly
|
|
|
|
|
*/
|
|
|
|
|
contract WhaleOptimizer {
|
|
|
|
|
function calculateSentiment(uint256, uint256) external pure returns (uint256) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getSentiment() external pure returns (uint256) {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getLiquidityParams() external pure returns (uint256, uint256, uint24, uint256) {
|
|
|
|
|
return (
|
2025-10-04 15:17:09 +02:00
|
|
|
1e17, // capitalInefficiency: 10% (very aggressive)
|
2025-08-09 18:03:31 +02:00
|
|
|
95e16, // anchorShare: 95% (massive anchor position)
|
2025-10-04 15:17:09 +02:00
|
|
|
10, // anchorWidth: 10 (extremely narrow)
|
|
|
|
|
5e16 // discoveryDepth: 5% (minimal discovery)
|
2025-08-09 18:03:31 +02:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getDescription() external pure returns (string memory) {
|
|
|
|
|
return "Whale Market - Massive concentrated liquidity";
|
|
|
|
|
}
|
2025-10-04 15:17:09 +02:00
|
|
|
}
|