Crab Strategy v2

Verified contract

Active on Ethereum with 12,952 txns
Deployed by via 0xd8d63ba6 at 15134614
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $703,657.2
 (#286)
ERC-721
--
0x5071e6d9eceaed99fa13cb95ace76f96ea5493a9a4472a3bcec52a7ddddd1723
0x7ef06052bafcd1bb86a212261a0dc368e1a9d3bcbd49ca98d817eb7322e3a59a
From
0xc5484feb2b3ebc4880e5cfd6732476602b069afd59734ca9d1e553a0643d8eef
0xf98f57206d33dd013ce18c0d6918759aa45a0b4d532633ca47f4e7f29e249136
0x9f2ddf2ca26f2d6662d316696ac55b079405830cb15599e3d31440f5e82e47ba
0xf1e7f24ac450aab721867ba969b289c72ab4e41eab2f6c60cf9f9001a394d0f4
0x710e05839228184d804d8130f47c3a93b009dda9cddb0e4c418d3a81d292e065
From
0xe2c2944d4c595e02b9423295cf1ba448cedb774f279711aeb03c6174ca694697
0x32df9907e87fe4cbff4c7fb830f1cc2b9a2845cd50e1a56e1b202e8e92388788
0x58d9559fd0a092d309a6015e253c0eb78082040ab7ded517dd5bc20bcbb6240f

Functions
Getter at block 21161026
DOMAIN_SEPARATOR(view returns (bytes32)
0xff40743a0440aa739a394eca66c0780128b20b3a645f0ed4fbf890877a2020c9
MAX_OTC_PRICE_TOLERANCE(view returns (uint256)
200000000000000000
POWER_PERP_PERIOD(view returns (uint32)
420
 
checkPriceHedge(view returns (bool)
checkTimeHedge(view returns (bool)
true
crabMigration(view returns (address)
0xa1cab67a4383312718a5799eaa127906e9d4b19e
decimals(view returns (uint8)
18
ethWSqueethPool(view returns (address)
0x82c427adfdf2d245ec51d8046b41c4ee87f0d29c
factory(view returns (address)
0x1f98431c8ad98523631ae4a59f267346ea31f984
getStrategyVaultId(view returns (uint256)
286
getVaultDetails(view returns (addressuint256uint256uint256)
(0x0000000000000000000000000000000000000000, 0, 0, 0)
hedgePriceThreshold(view returns (uint256)
200000000000000000
hedgeTimeThreshold(view returns (uint256)
1800
hedgingTwapPeriod(view returns (uint32)
420
isInitialized(view returns (bool)
true
name(view returns (string)
Crab Strategy v2
oracle(view returns (address)
0x65d66c76447ccb45daf1e8044e918fa786a483a1
otcPriceTolerance(view returns (uint256)
50000000000000000
owner(view returns (address)
0xafe66363c27eedb597a140c28b70b32f113fd5a8
powerTokenController(view returns (address)
0x64187ae08781b09368e6253f9e94951243a493d5
priceAtLastHedge(view returns (uint256)
34450000000000000
strategyCap(view returns (uint256)
10000000000000000000000
symbol(view returns (string)
Crabv2
timeAtLastHedge(view returns (uint256)
1730479415
timelock(view returns (address)
0x67c083ae303741372f0f321bf9cad567cfefe2dc
totalSupply(view returns (uint256)
303998324782299559585
vaultId(view returns (uint256)
286
wPowerPerp(view returns (address)
0xf1b99e3e573a1a9c5e6b2ce818b617f0e664e86b
weth(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address accountview returns (uint256)
getWsqueethFromCrabAmount(uint256 _crabAmountview returns (uint256)
nonces(addressuint256view returns (bool)
State-modifying
approve(address spenderuint256 amountreturns (bool)
decreaseAllowance(address spenderuint256 subtractedValuereturns (bool)
deposit(payable 
flashDeposit(uint256 _ethToDeposituint24 _poolFeepayable 
flashWithdraw(uint256 _crabAmountuint256 _maxEthToPayuint24 _poolFee
hedgeOTC(uint256 _totalQuantityuint256 _clearingPricebool _isHedgeBuyingstruct CrabStrategyV2Order[] _orders
increaseAllowance(address spenderuint256 addedValuereturns (bool)
initialize(uint256 _wSqueethToMintuint256 _crabSharesToMintuint256 _timeAtLastHedgeuint256 _priceAtLastHedgeuint256 _strategyCappayable 
redeemShortShutdown(
renounceOwnership(
setHedgePriceThreshold(uint256 _hedgePriceThreshold
setHedgeTimeThreshold(uint256 _hedgeTimeThreshold
setHedgingTwapPeriod(uint32 _hedgingTwapPeriod
setNonceTrue(uint256 _nonce
setOTCPriceTolerance(uint256 _otcPriceTolerance
setStrategyCap(uint256 _capAmount
transfer(address recipientuint256 amountreturns (bool)
transferFrom(address senderaddress recipientuint256 amountreturns (bool)
transferOwnership(address newOwner
transferVault(address _newStrategy
uniswapV3SwapCallback(int256 amount0Deltaint256 amount1Deltabytes _data
withdraw(uint256 _crabAmount
withdrawShutdown(uint256 _crabAmount
Events
Approval(address indexed owneraddress indexed spenderuint256 value
Deposit(address indexed depositoruint256 wSqueethAmountuint256 lpAmount
FlashDeposit(address indexed depositoruint256 depositedAmountuint256 tradedAmountOut
FlashDepositCallback(address indexed depositoruint256 flashswapDebtuint256 excess
FlashWithdraw(address indexed withdraweruint256 crabAmountuint256 wSqueethAmount
FlashWithdrawCallback(address indexed withdraweruint256 flashswapDebtuint256 excess
HedgeOTC(uint256 bidIduint256 quantitybool isBuyinguint256 clearingPrice
HedgeOTCSingle(address traderuint256 bidIduint256 quantityuint256 pricebool isBuyinguint256 clearingPrice
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
SetHedgePriceThreshold(uint256 newHedgePriceThreshold
SetHedgeTimeThreshold(uint256 newHedgeTimeThreshold
SetHedgingTwapPeriod(uint32 newHedgingTwapPeriod
SetOTCPriceTolerance(uint256 otcPriceTolerance
SetStrategyCap(uint256 newCapAmount
Transfer(address indexed fromaddress indexed touint256 value
VaultTransferred(address indexed newStrategyuint256 vaultId
Withdraw(address indexed withdraweruint256 crabAmountuint256 wSqueethAmountuint256 ethWithdrawn
WithdrawShutdown(address indexed withdraweruint256 crabAmountuint256 ethWithdrawn
Constructor
constructor(address _wSqueethControlleraddress _oracleaddress _wethaddress _uniswapFactoryaddress _ethWSqueethPooladdress _timelockaddress _crabMigrationuint256 _hedgeTimeThresholduint256 _hedgePriceThreshold
Fallback and receive
receive(
Errors

This contract contains no error objects.