Crab Strategy

Verified contract

Active on Ethereum with 1,596 txns
Deployed by via 0xb672155e at 14048622
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $16,450.31
 (#70)
ERC-721
--
0x0e61aedd28e01ac297ecb33c918def7ae1eddeb7d3a668e2a8ba79e98571668a
0xe9798d44f0ec1885f27fcd7b22a4f034171f098cf3c80030be96085794df1d9f
0xb8c49e8f349df20bcc9740e0b6f916f2de23aa0554725475ddd6833eb5f340f7
0x75add9936621e66b4e620d76f164d396cb055bd9a76a1309397ee962c4bbd1ef
0xe8c27f0ac866d46f66a186cbc3aa2ee83513a931f7ebb5f621c10dbc04120895
0xc8bd7f9f7ed34a4bd2083550601701b130fcf497ec2d1e958a737b56c578d4e3
0x2d8e9ab6759d7314882949846920ac52d3e1e01e7cc860bd001a88adc9a4072c
0x5eec61f3cad34f9274526757de34060b659cdba48a686f26cdace8a229c19b99
0xe06f444b8c755a484516b0975beae0e041295c0d35b5f89cfdcbe44c7d0ec558
0x084f8cd6afa4477b11630ea26438f910c4c2eef4c261db94ae807ca677678708

Functions
Getter at block 21267450
POWER_PERP_PERIOD(view returns (uint32)
420
auctionTime(view returns (uint256)
1200
checkTimeHedge(view returns (booluint256)
(true, 1730434319)
decimals(view returns (uint8)
18
deltaHedgeThreshold(view returns (uint256)
1000000000000000
ethQuoteCurrencyPool(view returns (address)
0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8
ethWSqueethPool(view returns (address)
0x82c427adfdf2d245ec51d8046b41c4ee87f0d29c
factory(view returns (address)
0x1f98431c8ad98523631ae4a59f267346ea31f984
getStrategyVaultId(view returns (uint256)
70
getVaultDetails(view returns (addressuint256uint256uint256)
(0x0000000000000000000000000000000000000000, 0, 0, 0)
hedgePriceThreshold(view returns (uint256)
200000000000000000
hedgeTimeThreshold(view returns (uint256)
86400
hedgingTwapPeriod(view returns (uint32)
420
maxPriceMultiplier(view returns (uint256)
1050000000000000000
minPriceMultiplier(view returns (uint256)
950000000000000000
name(view returns (string)
Crab Strategy
oracle(view returns (address)
0x65d66c76447ccb45daf1e8044e918fa786a483a1
owner(view returns (address)
0x609fff64429e2a275a879e5c50e415cec842c629
powerTokenController(view returns (address)
0x64187ae08781b09368e6253f9e94951243a493d5
priceAtLastHedge(view returns (uint256)
36929851693929030
quoteCurrency(view returns (address)
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
strategyCap(view returns (uint256)
9102000000000000000
symbol(view returns (string)
Crab
timeAtLastHedge(view returns (uint256)
1730347919
totalSupply(view returns (uint256)
19878092140375932412
vaultId(view returns (uint256)
70
wPowerPerp(view returns (address)
0xf1b99e3e573a1a9c5e6b2ce818b617f0e664e86b
weth(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address accountview returns (uint256)
checkPriceHedge(uint256 _auctionTriggerTimeview returns (bool)
getAuctionDetails(uint256 _auctionTriggerTimeview returns (booluint256uint256uint256bool)
getWsqueethFromCrabAmount(uint256 _crabAmountview returns (uint256)
State-modifying
approve(address spenderuint256 amountreturns (bool)
decreaseAllowance(address spenderuint256 subtractedValuereturns (bool)
deposit(payable 
flashDeposit(uint256 _ethToDepositpayable 
flashWithdraw(uint256 _crabAmountuint256 _maxEthToPay
increaseAllowance(address spenderuint256 addedValuereturns (bool)
priceHedge(uint256 _auctionTriggerTimebool _isStrategySellingWSqueethuint256 _limitPricepayable 
priceHedgeOnUniswap(uint256 _auctionTriggerTimeuint256 _minWSqueethuint256 _minEthpayable 
redeemShortShutdown(
renounceOwnership(
setAuctionTime(uint256 _auctionTime
setDeltaHedgeThreshold(uint256 _deltaHedgeThreshold
setHedgePriceThreshold(uint256 _hedgePriceThreshold
setHedgeTimeThreshold(uint256 _hedgeTimeThreshold
setHedgingTwapPeriod(uint32 _hedgingTwapPeriod
setMaxPriceMultiplier(uint256 _maxPriceMultiplier
setMinPriceMultiplier(uint256 _minPriceMultiplier
setStrategyCap(uint256 _capAmount
timeHedge(bool _isStrategySellingWSqueethuint256 _limitPricepayable 
timeHedgeOnUniswap(uint256 _minWSqueethuint256 _minEth
transfer(address recipientuint256 amountreturns (bool)
transferFrom(address senderaddress recipientuint256 amountreturns (bool)
transferOwnership(address newOwner
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
ExecuteBuyAuction(address indexed selleruint256 wSqueethBoughtuint256 ethSoldbool isHedgingOnUniswap
ExecuteSellAuction(address indexed buyeruint256 wSqueethSolduint256 ethBoughtbool isHedgingOnUniswap
FlashDeposit(address indexed depositoruint256 depositedAmountuint256 tradedAmountOut
FlashDepositCallback(address indexed depositoruint256 flashswapDebtuint256 excess
FlashWithdraw(address indexed withdraweruint256 crabAmountuint256 wSqueethAmount
FlashWithdrawCallback(address indexed withdraweruint256 flashswapDebtuint256 excess
Hedge(address indexed hedgerbool auctionTypeuint256 hedgerPriceuint256 auctionPriceuint256 wSqueethHedgeTargetAmountuint256 ethHedgetargetAmount
HedgeOnUniswap(address indexed hedgerbool auctionTypeuint256 auctionPriceuint256 wSqueethHedgeTargetAmountuint256 ethHedgetargetAmount
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PriceHedge(address indexed hedgerbool auctionTypeuint256 hedgerPriceuint256 auctionTriggerTimestamp
PriceHedgeOnUniswap(address indexed hedgeruint256 hedgeTimestampuint256 auctionTriggerTimestampuint256 minWSqueethuint256 minEth
SetAuctionTime(uint256 newAuctionTime
SetDeltaHedgeThreshold(uint256 newDeltaHedgeThreshold
SetHedgePriceThreshold(uint256 newHedgePriceThreshold
SetHedgeTimeThreshold(uint256 newHedgeTimeThreshold
SetHedgingTwapPeriod(uint32 newHedgingTwapPeriod
SetMaxPriceMultiplier(uint256 newMaxPriceMultiplier
SetMinPriceMultiplier(uint256 newMinPriceMultiplier
SetStrategyCap(uint256 newCapAmount
TimeHedge(address indexed hedgerbool auctionTypeuint256 hedgerPriceuint256 auctionTriggerTimestamp
TimeHedgeOnUniswap(address indexed hedgeruint256 hedgeTimestampuint256 auctionTriggerTimestampuint256 minWSqueethuint256 minEth
Transfer(address indexed fromaddress indexed touint256 value
Withdraw(address indexed withdraweruint256 crabAmountuint256 wSqueethAmountuint256 ethWithdrawn
WithdrawShutdown(address indexed withdraweruint256 crabAmountuint256 ethWithdrawn
Constructor
constructor(address _wSqueethControlleraddress _oracleaddress _wethaddress _uniswapFactoryaddress _ethWSqueethPooluint256 _hedgeTimeThresholduint256 _hedgePriceThresholduint256 _auctionTimeuint256 _minPriceMultiplieruint256 _maxPriceMultiplier
Fallback and receive
receive(
Errors

This contract contains no error objects.