ArbitrageV4

Verified contract

Active on Ethereum with 1,964 txns
Deployed by via 0x7508ae7c at 20508230
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $66,344.67
ERC-20
Value $6,233.58
ERC-20
Value $376.34
ERC-20
Value $0
0xfe2c5cf93b9de256be4e4294e2d85a382063288a9b119b2556c5a22b70c0f259
0x8fcca7dbee92123480b55f7c5872daf4d64210596c27d285ad55930442c8f7aa
0xd80d41ea172a1dcc4dcd5a788032829105752b762a0c7db855a60e754563597a
0x9bc9b5364ce83988e86d14372812fb41eecef77aa3fdfea2568b09113fe75102
0x0f7a8c2cb9da393e3db5cfd2aefa77c0cd92ce3fc529312321bd45047bda3e7e
0xb094c0b80e0c7a983a4e4ff6b20af68a5b5a7eb889b92d5fd4abed647a4b9b3e
0x7e5fccfb91bdcce16bbdd780c396db7e2d1cf863b404beb2e564565e2180f114
0xb6c3d906a034c99761d84444257f3749b3f9eaf71687304cb0bd1d78911a3768
0xf0e83faa3f53a12b11028a7ab3064b85cac48442a91d61dbd2cc9a30fb08b9b4
0x917c1756ebc7595696cbe7ce8f138435b604b686b069e739d4cd58ed523dca46

Functions
Getter at block 21160813
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)
56366320483510457814000
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 amountaddress receiverreturns (uint256)
claimRewards(address[] tokensuint256[] amounts
executeArbitrage(uint256 maxChiSpotPricereturns (uint256)
mint(address receiverpayable returns (uint256)
mintWithStETH(uint256 stETHAmountaddress receiverreturns (uint256)
mintWithWETH(uint256 wethAmountaddress receiverreturns (uint256)
renounceOwnership(
rewardUSC(uint256 amount
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 fromaddress touint256 amountuint256 ethAmount
ExecuteArbitrage(address indexed accountuint256 indexed arbNumuint256 deltaUsduint256 reserveDiffuint256 ethPriceuint256 rewardValue
Mint(address indexed fromaddress indexed toaddress tokenuint256 amountuint256 uscAmount
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
RewardUSC(uint256 amount
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