bZxProtocol
Verified contract
Proxy
Active on
Ethereum with 16,669 txns
Unified storage
Map
Table
Raw
Constants and immutables
9
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
67 additional
variables
Balances ($488,767.49)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
WETH | ERC-20 | 130.946896 | $3,396.61 |
$444,775.54 | |
WBTC | ERC-20 | 0.159606 | $93,473.00 |
$14,918.88 | |
LINK | ERC-20 | 445.879573 | $17.23 |
$7,682.51 | |
KNC | ERC-20 | 10.416043K | $0.652011 |
$6,791.37 | |
USDT | ERC-20 | 6.351208K | $0.999774 |
$6,349.77 | |
wstETH | ERC-20 | 1.470625 | $4,030.18 |
$5,926.89 | |
USDC | ERC-20 | 1.654578K | $0.999346 |
$1,653.5 | |
AAVE | ERC-20 | 3.274472 | $176.59 |
$578.24 | |
DAI | ERC-20 | 39.130438 | $0.998896 |
$39.09 | |
UNI | ERC-20 | 2.290283 | $11.41 |
$26.13 |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 21220015 | 7 days ago | | | 0 | 0.0033923919 | |
| 21220007 | 7 days ago | | | 0 | 0.0037396498 | |
| 21220005 | 7 days ago | | | 0 | 0.0035608790 | |
| 21219998 | 7 days ago | | | 0 | 0.0034499508 | |
| 21219993 | 7 days ago | | | 0 | 0.0034553884 | |
| 21067701 | a month ago | | | 0 | 0.0028170112 | |
| 21030316 | a month ago | | | 0 | 0.0024080060 | |
| 21030311 | a month ago | | | 0 | 0.0064547241 | |
| 21030293 | a month ago | | | 0 | 0.0072336329 | |
| 21030291 | a month ago | | | 0 | 0.0081946824 |
ABI
ABI objects
Getter at block 21270563 DELEGATE_FLAG() view returns (uint128) DEX_SELECTOR_FLAG() view returns (uint128) HOLD_OOKI_FLAG() view returns (uint128) OOKI() view returns (address) PAY_WITH_OOKI_FLAG() view returns (uint128) TRACK_VOLUME_FLAG() view returns (uint128) USDC() view returns (address) WITH_PERMIT() view returns (uint128) timeDelta() view returns (uint32) twaiLength() view returns (uint32)
affiliateFeePercent() view returns (uint256)
30000000000000000000
borrowingFeePercent() view returns (uint256)
0
bzrxTokenAddress() view returns (address)
0x56d811088235f11c8920698a204a5010a788f4b3
feesController() view returns (address)
0xffb328ad3b727830f9482845a4737afddde85554
isOwner() view returns (bool)
false
lendingFeePercent() view returns (uint256)
10000000000000000000
maxDisagreement() view returns (uint256)
5000000000000000000
maxSwapSize() view returns (uint256)
3333333333333333333333
owner() view returns (address)
0xfedc4dd5247b93feb41e899a09c44cfabec29cbc
priceFeeds() view returns (address)
0xfc1f6b8f47f17ca2d8b5e95ef44874fa5f793123
protocolTokenHeld() view returns (uint256)
0
protocolTokenPaid() view returns (uint256)
51202148491171907048889944
sourceBufferPercent() view returns (uint256)
5000000000000000000
swapsImpl() view returns (address)
0x0d2cad590e0c2beb141ac872afd94fe17bec3bfb
tradingFeePercent() view returns (uint256)
150000000000000000
vbzrxTokenAddress() view returns (address)
0xb72b31907c1c95f3650b64b2469e08edacee5e8f
wethToken() view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
affiliateFeePercent() view returns (uint256)
30000000000000000000
borrowingFeePercent() view returns (uint256)
0
bzrxTokenAddress() view returns (address)
0x56d811088235f11c8920698a204a5010a788f4b3
feesController() view returns (address)
0xffb328ad3b727830f9482845a4737afddde85554
getGuardian() view returns (address guardian)
0x9b43a385e08ee3e4b402d4312dabd11296d09e93
isOwner() view returns (bool)
false
lendingFeePercent() view returns (uint256)
10000000000000000000
maxDisagreement() view returns (uint256)
5000000000000000000
maxSwapSize() view returns (uint256)
3333333333333333333333
owner() view returns (address)
0xfedc4dd5247b93feb41e899a09c44cfabec29cbc
priceFeeds() view returns (address)
0xfc1f6b8f47f17ca2d8b5e95ef44874fa5f793123
protocolTokenHeld() view returns (uint256)
0
protocolTokenPaid() view returns (uint256)
51202148491171907048889944
sourceBufferPercent() view returns (uint256)
5000000000000000000
swapsImpl() view returns (address)
0x0d2cad590e0c2beb141ac872afd94fe17bec3bfb
tradingFeePercent() view returns (uint256)
150000000000000000
vbzrxTokenAddress() view returns (address)
0xb72b31907c1c95f3650b64b2469e08edacee5e8f
wethToken() view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
borrowerOrders(address, bytes32) view returns (uint256 lockedAmount, uint256 interestRate, uint256 minLoanTerm, uint256 maxLoanTerm, uint256 createdTimestamp, uint256 expirationTimestamp)
borrowingFeeTokensHeld(address) view returns (uint256)
borrowingFeeTokensPaid(address) view returns (uint256)
delegatedManagers(bytes32, address) view returns (bool)
getTarget(string sig) view returns (address)
lenderInterest(address, address) view returns (uint256 principalTotal, uint256 owedPerDay, uint256 owedTotal, uint256 paidTotal, uint256 updatedTimestamp)
lenderOrders(address, bytes32) view returns (uint256 lockedAmount, uint256 interestRate, uint256 minLoanTerm, uint256 maxLoanTerm, uint256 createdTimestamp, uint256 expirationTimestamp)
lendingFeeTokensHeld(address) view returns (uint256)
lendingFeeTokensPaid(address) view returns (uint256)
liquidationIncentivePercent(address) view returns (uint256)
loanInterest(bytes32) view returns (uint256 owedPerDay, uint256 depositTotal, uint256 updatedTimestamp)
loanParams(bytes32) view returns (bytes32 id, bool active, address owner, address loanToken, address collateralToken, uint256 minInitialMargin, uint256 maintenanceMargin, uint256 maxLoanTerm)
loanPoolToUnderlying(address) view returns (address)
loans(bytes32) view returns (bytes32 id, bytes32 loanParamsId, bytes32 pendingTradesId, uint256 principal, uint256 collateral, uint256 startTimestamp, uint256 endTimestamp, uint256 startMargin, uint256 startRate, address borrower, address lender, bool active)
logicTargets(bytes4) view returns (address)
supportedTokens(address) view returns (bool)
tradingFeeTokensHeld(address) view returns (uint256)
tradingFeeTokensPaid(address) view returns (uint256)
underlyingToLoanPool(address) view returns (address)
_isPaused(bytes4 sig) view returns (bool isPaused)
borrowerOrders(address, bytes32) view returns (uint256 lockedAmount, uint256 interestRate, uint256 minLoanTerm, uint256 maxLoanTerm, uint256 createdTimestamp, uint256 expirationTimestamp)
borrowingFeeTokensHeld(address) view returns (uint256)
borrowingFeeTokensPaid(address) view returns (uint256)
delegatedManagers(bytes32, address) view returns (bool)
generateLoanParamId(address loanToken, address collateralToken, bool isTorqueLoan) pure returns (bytes32)
getDefaultLoanParams(address loanToken, address collateralToken, bool isTorqueLoan) view returns (struct LoanParamsStructLoanParams loanParamsLocal, bool isDefault)
getRequiredCollateral(address loanToken, address collateralToken, uint256 newPrincipal, uint256 marginAmount, bool isTorqueLoan) view returns (uint256 collateralAmountRequired)
lenderInterest(address, address) view returns (uint256 principalTotal, uint256 owedPerDay, uint256 owedTotal, uint256 paidTotal, uint256 updatedTimestamp)
lenderOrders(address, bytes32) view returns (uint256 lockedAmount, uint256 interestRate, uint256 minLoanTerm, uint256 maxLoanTerm, uint256 createdTimestamp, uint256 expirationTimestamp)
lendingFeeTokensHeld(address) view returns (uint256)
lendingFeeTokensPaid(address) view returns (uint256)
liquidationIncentivePercent(address, address) view returns (uint256)
loanInterest(bytes32) view returns (uint256 owedPerDay, uint256 depositTotal, uint256 updatedTimestamp)
loanInterestTotal(bytes32) view returns (uint256)
loanParams(bytes32) view returns (bytes32 id, bool active, address owner, address loanToken, address collateralToken, uint256 minInitialMargin, uint256 maintenanceMargin, uint256 maxLoanTerm)
loanPoolToUnderlying(address) view returns (address)
loanRatePerTokenPaid(bytes32) view returns (uint256)
loans(bytes32) view returns (bytes32 id, bytes32 loanParamsId, bytes32 pendingTradesId, uint256 principal, uint256 collateral, uint256 startTimestamp, uint256 endTimestamp, uint256 startMargin, uint256 startRate, address borrower, address lender, bool active)
logicTargets(bytes4) view returns (address)
poolInterestTotal(address) view returns (uint256)
poolLastUpdateTime(address) view returns (uint256)
poolPrincipalTotal(address) view returns (uint256)
poolRatePerTokenStored(address) view returns (uint256)
supportedTokens(address) view returns (bool)
tradingFeeTokensHeld(address) view returns (uint256)
tradingFeeTokensPaid(address) view returns (uint256)
underlyingToLoanPool(address) view returns (address)
State-modifying
Events replaceContract(address target)
setTargets(string[] sigsArr, address[] targetsArr)
transferOwnership(address newOwner)
borrowOrTradeFromPool(address collateralToken, bytes32 loanId, bool isTorqueLoan, uint256 initialMargin, address[4] sentAddresses, uint256[5] sentValues, bytes loanDataBytes) payable returns (struct LoanOpeningsEventsLoanOpenData)
changeGuardian(address newGuardian)
initialize(address target)
pause(bytes4[] sig)
renounceOwnership()
setDelegatedManager(bytes32 loanId, address delegated, bool toggle)
swapLoanCollateral(bytes32 loanId, address newCollateralToken, bytes loanDataBytes)
toggleFunctionPause(bytes4 sig)
toggleFunctionUnPause(bytes4 sig)
transferOwnership(address newOwner)
unpause(bytes4[] sig)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Borrow(address indexed user, address indexed lender, bytes32 indexed loanId, address loanToken, address collateralToken, uint256 newPrincipal, uint256 newCollateral, uint256 interestRate, uint256 interestDuration, uint256 collateralToLoanRate, uint256 currentMargin)
DelegatedManagerSet(bytes32 indexed loanId, address indexed delegator, address indexed delegated, bool isActive)
EarnReward(address indexed receiver, bytes32 indexed loanId, uint8 indexed feeType, address token, uint256 amount)
ExternalSwap(address indexed user, address indexed sourceToken, address indexed destToken, uint256 sourceAmount, uint256 destAmount)
LoanCollateralSwap(address indexed user, bytes32 indexed loanId, address oldCollateralToken, address newCollateralToken, uint256 collateral, uint256 collateralToLoanRate, uint256 currentMargin)
LoanInterestRateVals(bytes32 indexed loanId, uint256 loanPrincipalTotal, uint256 loanInterestTotal, uint256 loanRatePerTokenPaid)
LoanSwap(bytes32 indexed loanId, address indexed sourceToken, address indexed destToken, address borrower, uint256 sourceAmount, uint256 destAmount)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
PayBorrowingFee(address indexed payer, address indexed token, bytes32 indexed loanId, uint256 amount)
PayLendingFee(address indexed payer, address indexed token, uint256 amount)
PayTradingFee(address indexed payer, address indexed token, bytes32 indexed loanId, uint256 amount)
PoolInterestRateVals(address indexed pool, uint256 poolPrincipalTotal, uint256 poolInterestTotal, uint256 poolRatePerTokenStored, uint256 poolNextInterestRate)
SettleFeeRewardForInterestExpense(address indexed payer, address indexed token, bytes32 indexed loanId, uint256 amount)
Trade(address indexed user, address indexed lender, bytes32 indexed loanId, address collateralToken, address loanToken, uint256 positionSize, uint256 borrowedAmount, uint256 interestRate, uint256 settlementDate, uint256 entryPrice, uint256 entryLeverage, uint256 currentLeverage)
VaultDeposit(address indexed asset, address indexed from, uint256 amount)
VaultWithdraw(address indexed asset, address indexed to, uint256 amount)
This contract contains no constructor objects.
fallback()
This contract contains no error objects.