ArbitrageV4

Verified contract

Active on Ethereum with 3,044 txns
Deployed by via 0xeedb89b0 at 19824106
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $2,392.1
ERC-20
Value $71.6
ERC-20
Value $6.91
ERC-20
Value $0
0x86782a7867983aab1c171501e7efe9145c5d9261d7e1ee2fa8af43dd0358145a
0x607b5eab39f5d18ba6036a29bedb8de21482f2617a870b3c20d788ee931c927d
0x3d5d06b002ab6722fb15d7798052c052408cbf78f21b52fbe7aaa7d40fc08be7
0xf5873eb9737c1c2f27d7d30a8b0fe2666808b60b154ef4161d5446cf26693a46
0xd95ce4de83732c6e17f9a66794d5cb92a77c5f81339200858cf67519d4f017f7
0xf3fc455815445cda9f5ec2e4d3b4432508757346cf786ac224bf16a9d0003dff
0x518e8201fce5012a7862d22428edf22605d31ea5cc3ecd0cf4a97b54cd1fe5e5
0xe574a553116de99a5c3803e87ebd8950b2dadb30159abe638911d8f4d3575319
0xde9d023bde9d40149435063208ff18a8e35932be206e81941d91fac87ce135b8
0x37e4cf32dc338ce6398c36500f125e555a273cbd4b1d1c6cc77af020d093aaa4

Functions
Getter at block 21288182
BASE_PRICE(view returns (uint256)
100000000
CHI(view returns (address)
0x3b21418081528845a6df4e970bd2185545b712ba
F(view returns (uint256)
997000000000000000
MAX_FEE(view returns (uint256)
10000
MAX_PRICE_TOLERANCE(view returns (uint16)
10000
POOL_FEE(view returns (uint256)
30
STETH(view returns (address)
0xae7ab96520de3a18e5e111b5eaab095312d7fe84
USC(view returns (address)
0x38547d918b9645f2d94336b6b61aeb08053e142c
USC_TARGET_PRICE(view returns (uint256)
100000000
WETH(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
 
_getReservesData(view returns (bool isExcessOfReservesuint256 reserveDiffuint256 reserveValue)
burnPaused(view returns (bool)
false
chiPriceTolerance(view returns (uint16)
4000
 
getArbitrageData(view returns (bool isPriceAboveTargetbool isExcessOfReservesuint256 reserveDiffuint256 discount)
maxMintBurnPriceDiff(view returns (uint256)
5000000
maxMintBurnReserveTolerance(view returns (uint16)
50
mintBurnFee(view returns (uint256)
30
mintPaused(view returns (bool)
false
owner(view returns (address)
0xcdb8d92fa641106fdaee3ccc6b53a029edb9c458
pegPriceToleranceAbs(view returns (uint256)
1000000
poolFactory(view returns (address)
0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f
priceFeedAggregator(view returns (address)
0xb3a36232ecc1da6c8d0d3f417e00406566933bd0
priceTolerance(view returns (uint16)
3500
reserveHolder(view returns (address)
0x037528457cf5b0b9dab641fd7f0ce8fc9690318d
rewardController(view returns (address)
0xb9e08d13d2694b561a5033aca07ba7dea49d0258
swapRouter(view returns (address)
0x7a250d5630b4cf539739df2c5dacb4c659f2488d
totalMintedUsc(view returns (uint256)
0
Read-only
_calculateDelta(uint256 reserveInuint256 priceInuint256 reserveOutuint256 priceOutpure returns (uint256)
_calculateDeltaETH(uint256 ethPriceview returns (uint256)
_calculateDeltaUSC(uint256 ethPriceview returns (uint256)
isArbitrager(addressview returns (bool)
isPrivileged(addressview returns (bool)
State-modifying
burn(uint256 amountreturns (uint256)
claimRewards(address[] tokens
executeArbitrage(uint256 maxChiSpotPricereturns (uint256)
mint(payable returns (uint256)
mintWithStETH(uint256 stETHAmountreturns (uint256)
mintWithWETH(uint256 wethAmountreturns (uint256)
renounceOwnership(
setBurnPause(bool isPaused
setChiPriceTolerance(uint16 _chiPriceTolerance
setMaxMintBurnPriceDiff(uint256 _maxMintBurnPriceDiff
setMaxMintBurnReserveTolerance(uint16 _maxMintBurnReserveTolerance
setMintBurnFee(uint16 _mintBurnFee
setMintPause(bool isPaused
setPegPriceToleranceAbs(uint256 _priceTolerance
setPriceTolerance(uint16 _priceTolerance
transferOwnership(address newOwner
updateArbitrager(address arbitragerbool status
updatePrivileged(address accountbool status
Events
Burn(address accountuint256 amountuint256 ethAmount
ExecuteArbitrage(address indexed accountuint256 indexed arbNumuint256 deltaUsduint256 reserveDiffuint256 ethPriceuint256 rewardValue
Mint(address indexed accountaddress tokenuint256 amountuint256 uscAmount
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
SetChiPriceTolerance(uint16 chiPriceTolerance
SetMaxMintBurnPriceDiff(uint256 maxMintBurnPriceDiff
SetMaxMintBurnReserveTolerance(uint16 maxBurnReserveTolerance
SetMintBurnFee(uint256 mintFee
SetPriceTolerance(uint16 priceTolerance
UpdateArbitrager(address indexed accountbool status
UpdatePrivileged(address indexed privilegedbool isPrivileged
Constructor
constructor(address _USCaddress _CHIaddress _rewardControlleraddress _priceFeedAggregatoraddress _reserveHolder
Fallback and receive
receive(
Errors
ChiPriceNotPegged(uint256 spotPriceuint256 twapPrice
ChiSpotPriceTooBig(
ContractIsPaused(
DeltaBiggerThanAmountReceivedETH(uint256 deltaETHuint256 receivedETH
FeeTooBig(uint256 fee
NotArbitrager(address account
PriceIsNotPegged(
PriceSlippageTooBig(
ReserveDiffTooBig(
ToleranceTooBig(uint16 _tolerance