ALE

Verified contract

Active on Ethereum with 175 txns
Deployed by via 0x7e1e2fb0 at 20582753
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "ALE"

0xa73edd1187489b0412b83d87e9995c6f651a68127f89800a834b8a54d0d442e1
0xd4fa0e3e2db5f2c02902a2510aba18e11b4bbf8ec31cc609dd379236db50535d
0x8db83fbbfc3a22aeaef0969823f9200b9cce5ffa11028b70d246b41c38f95fff
0x3b14351b101d05b827a357fb95093b3cbaa5f7ec43dd4062758e3eb34c789136
0x0ae7b7a6aabda9d9d2dc94ee373e0a78c4dde9e62c074f17ddd92af639f6d97e
0xd14e382bbac990fb110f52ceabc91160d66e080f9f172308aef6be721d9c68e5
0x6342bbe655f21c5b2bf387ec51698a49fc8f76be2f6b69d1486234d83bf4d07e
0x7cb8802e9229a58f7c7c835d52fd4c3e1042f2fa0dc3ed066565ef29fa197b6b
0x42adf86b62bc0cbf01fe301954fdc3549e5b2d1087033f0fa1543028ef766190
0xa4dc89df8b9d5551d625277b92872ea434b222608eb56cc0412397c1e43e9468

Functions
Getter at block 21202258
CALLBACK_SUCCESS(view returns (bytes32)
0x439148f0bbc682ca079e46d6e2c2f0c1e3b820f1a291b069d8882abf8cf18dd9
DBR(view returns (address)
0xad038eb671c44b853887a7e32528fab35dc5d710
DELEVERAGE(view returns (bytes32)
0x0d4f76b1b60020edd6acf708bcdea3786c83a63ebd71b191c28d7561a8c0fc2a
LEVERAGE(view returns (bytes32)
0x147ae675f296256b5eecc84e9bf2bc391732bfd51dcbff57b4a60ba6cb0ffaf1
curvePool(view returns (address)
0xc7de47b9ca2fc753d6a2f167d8b3e19c6d18b19a
exchangeProxy(view returns (address)
0x111111125421ca6dc452d289314280a0f8842a65
flash(view returns (address)
0x6c5fdc0c53b122ae0f15a863c349f3a481de8f1f
owner(view returns (address)
0x926df14a23be491164dcf93f4c468a50ef659d5b
Read-only
approximateDolaAndDbrNeeded(uint256 dolaBorrowAmountuint256 perioduint256 iterationsview returns (uint256 dolaForDbruint256 dbrNeeded)
markets(addressview returns (address buySellTokenaddress collateraladdress helperbool useProxy)
State-modifying
deleveragePosition(uint256 valueaddress marketuint256 collateralAmountaddress spenderbytes swapCallDatastruct ALEPermit permitbytes helperDatastruct ALEDBRHelper dbrDatapayable 
depositAndLeveragePosition(uint256 initialDeposituint256 valueaddress marketaddress spenderbytes swapCallDatastruct ALEPermit permitbytes helperDatastruct ALEDBRHelper dbrDatabool depositCollateralpayable 
leveragePosition(uint256 valueaddress marketaddress spenderbytes swapCallDatastruct ALEPermit permitbytes helperDatastruct ALEDBRHelper dbrDatapayable 
onFlashLoan(address initiatoraddressuint256 amountuint256 feebytes datareturns (bytes32)
renounceOwnership(
setExchangeProxy(address _exchangeProxy
setMarket(address _marketaddress _buySellTokenaddress _helperbool useProxy
transferOwnership(address newOwner
updateMarketHelper(address _marketaddress _helper
Events
Deposit(address indexed marketaddress indexed accountaddress indexed tokenuint256 depositAmount
LeverageDown(address indexed marketaddress indexed accountuint256 dolaFlashMinteduint256 dolaFeeuint256 collateralSolduint256 dolaUserRepaiduint256 dbrSoldForDola
LeverageUp(address indexed marketaddress indexed accountuint256 dolaFlashMinteduint256 dolaFeeuint256 collateralDepositeduint256 dolaBorroweduint256 dolaForDBR
NewHelper(address indexed marketaddress indexed helper
NewMarket(address indexed marketaddress indexed buySellTokenaddress collateraladdress indexed helper
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Constructor
constructor(address _exchangeProxyaddress _pool
Fallback and receive
receive(
Errors
AddressEmptyCode(address target
AddressInsufficientBalance(address account
CollateralIsZero(
CollateralNotSet(
DOLAInvalidBorrow(uint256 expecteduint256 actual
DOLAInvalidRepay(uint256 expecteduint256 actual
DepositFailed(uint256 expecteduint256 actual
FailedInnerCall(
InvalidAction(bytes32 action
InvalidHelperAddress(
InvalidProxyAddress(
MarketNotSet(address market
MarketSetupFailed(address marketaddress buySellTokenaddress collateraladdress helper
NoMarket(address market
NotALE(address caller
NotFlashMinter(address caller
NothingToDeposit(
OwnableInvalidOwner(address owner
OwnableUnauthorizedAccount(address account
ReentrancyGuardReentrantCall(
SafeERC20FailedOperation(address token
SwapFailed(
TotalSupplyChanged(uint256 expecteduint256 actual
WithdrawFailed(uint256 expecteduint256 actual