BarnBridge junior cDAI
Verified contract
Active on
Ethereum with 100 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 4 additional slots
Balances ($0.00)
No balances found for "BarnBridge junior cDAI"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 16850767 | 2 years ago | | | 0 | 0.0014724686 | |
| 15867093 | 2 years ago | | | 0 | 0.00037166128 | |
| 14816157 | 3 years ago | | | 0 | 0.00078129719 | |
| 14401442 | 3 years ago | | | 0 | 0.016695059 | |
| 14344824 | 3 years ago | | | 0 | 0.0096295920 | |
| 14252830 | 3 years ago | | | 0 | 0.030890484 | |
| 14177396 | 3 years ago | | | 0 | 0.017090728 | |
| 14175094 | 3 years ago | | | 0 | 0.025841431 | |
| 14165584 | 3 years ago | | | 0 | 0.042791518 | |
| 13867182 | 3 years ago | | | 0 | 0.0027027444 |
ABI
ABI objects
Getter at block 21307242
EXP_SCALE() view returns (uint256)
1000000000000000000
MAX_UINT256() view returns (uint256)
115792089237316195423570985008687907853269984665640564039457584007913129639935
_setup() view returns (bool)
true
abond() view returns (uint256 principal, uint256 gain, uint256 issuedAt, uint256 maturesAt, bool liquidated)
(principal=5850000000000000000, gain=11156593781895321, issuedAt=1630824358301936126983903175, maturesAt=1646723969000000000000000000, liquidated=false)
abondDebt() view returns (uint256)
0
abondGain() view returns (uint256)
11156593781895321
abondPaid() view returns (uint256)
11156593781895321
controller() view returns (address)
0xaa963524e65c671ef7a5485adf9e342c401a46ff
decimals() view returns (uint8)
18
juniorBond() view returns (address)
0x7f46e3ca055d3fe08cc5c1bfb9c4995e7de36fa3
juniorBondId() view returns (uint256)
2
juniorBondsMaturitiesPrev() view returns (uint256)
1
name() view returns (string)
BarnBridge junior cDAI
pool() view returns (address)
0xe6c1a8e7a879d7febb8144276a62f9a6b381bd37
seniorBond() view returns (address)
0x7785d69512296ec83634c283c923719e2306d133
seniorBondId() view returns (uint256)
6
symbol() view returns (string)
bb_cDAI
tokensInJuniorBonds() view returns (uint256)
0
totalSupply() view returns (uint256)
1420749290480760663251
underlyingLiquidatedJuniors() view returns (uint256)
0
Read-only
allowance(address owner, address spender) view returns (uint256)
balanceOf(address account) view returns (uint256)
juniorBonds(uint256) view returns (uint256 tokens, uint256 maturesAt)
juniorBondsMaturingAt(uint256) view returns (uint256 tokens, uint256 price)
juniorBondsMaturities(uint256) view returns (uint256)
seniorBonds(uint256) view returns (uint256 principal, uint256 gain, uint256 issuedAt, uint256 maturesAt, bool liquidated)
State-modifying
Events approve(address spender, uint256 amount) returns (bool)
bondGain(uint256 principalAmount_, uint16 forDays_) returns (uint256)
buyBond(uint256 principalAmount_, uint256 minGain_, uint256 deadline_, uint16 forDays_) returns (uint256)
buyJuniorBond(uint256 tokenAmount_, uint256 maxMaturesAt_, uint256 deadline_)
buyTokens(uint256 underlyingAmount_, uint256 minTokens_, uint256 deadline_)
decreaseAllowance(address spender, uint256 subtractedValue) returns (bool)
increaseAllowance(address spender, uint256 addedValue) returns (bool)
liquidateJuniorBonds(uint256 upUntilTimestamp_)
maxBondDailyRate() returns (uint256)
price() returns (uint256)
redeemBond(uint256 bondId_)
redeemJuniorBond(uint256 jBondId_)
sellTokens(uint256 tokenAmount_, uint256 minUnderlying_, uint256 deadline_)
setController(address newController_)
setup(address controller_, address pool_, address seniorBond_, address juniorBond_)
transfer(address recipient, uint256 amount) returns (bool)
transferFrom(address sender, address recipient, uint256 amount) returns (bool)
unaccountBonds(uint256[] bondIds_)
underlyingJuniors() returns (uint256)
underlyingLoanable() returns (uint256)
underlyingTotal() returns (uint256)
Approval(address indexed owner, address indexed spender, uint256 value)
BuyJuniorBond(address indexed buyer, uint256 indexed juniorBondId, uint256 tokensIn, uint256 maturesAt)
BuySeniorBond(address indexed buyer, uint256 indexed seniorBondId, uint256 underlyingIn, uint256 gain, uint256 forDays)
BuyTokens(address indexed buyer, uint256 underlyingIn, uint256 tokensOut, uint256 fee)
RedeemJuniorBond(address indexed owner, uint256 indexed juniorBondId, uint256 underlyingOut)
RedeemSeniorBond(address indexed owner, uint256 indexed seniorBondId, uint256 fee)
SellTokens(address indexed seller, uint256 tokensIn, uint256 underlyingOut, uint256 forfeits)
Transfer(address indexed from, address indexed to, uint256 value)
constructor(string name_, string symbol_, uint8 decimals_)
This contract contains no fallback and receive objects.
This contract contains no error objects.