WePiggy DAI

Verified contract

Proxy

Active on Ethereum with 796 txns
Deployed by via 0xd78c97c1 at 11645233
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
3 additional variables
ERC-20
Value $100,894.07
ERC-20
--
ERC-20
--
0x224d5fe1b4cb7cb01dd04cfb600e6ebd8890e66a4158ef68175c988cd909328a
0xe39e0b4aa6cb6568601c13e78f944ee59401e39da97dfe4e4005917a4c9c1073
0x286f884fb89793ec06379944a9ae907bf9b9d816dd1bb407dc354e12df0bedb5
0x41326e6ccaaa58e84fad44c74ac7f8da24fdc2abc95a343590bc253fb6276f31
0x5a51022d1ddcad0cc099af5b30242c5c2f458a59273a1f991ca35afb4ce20229
0x91e2cc7cfa4cb43b2559f1f0b8ace28099d23c021efc53c57032c0b11733d82d
0xb30a69b948751e682fdc6a743fdba25006dde0c9d957a85f0592ac9ed6215c9b
0xe8186ffd309815e213f77dec27e54ab00ce5d78ded655f951540544c9872e830
0x0fb20694529570742cb5382ba8384082fa3e3021a81d4dfe59f787ff5866805b
0x67c50205d5b0d45d6aee6081dbdd2925434d0a3145c497c86067b223bec0f69c

Functions
Getter at block 21314708
accrualBlockNumber(view returns (uint256)
21282935
 
accrueInterestSnapshot(view returns (uint256[])
borrowIndex(view returns (uint256)
1496070638075850312
 
borrowRatePerBlock(view returns (uint256)
comptroller(view returns (address)
0x0c8c1ab017c3c0c8a48dd9f1db2f59022d190f0b
decimals(view returns (uint8)
8
exchangeRateStored(view returns (uint256)
283304472969570568891942813
getCash(view returns (uint256)
100894065413625099210864
interestRateModel(view returns (address)
0x8158b34ff8a36dd9e4519d62c52913c24ad5554b
isPToken(view returns (bool)
true
migrator(view returns (address)
0x836490dcf3c63da80a8bee9c666fbfe294d80c69
minInterestAccumulated(view returns (uint256)
0
name(view returns (string)
WePiggy DAI
owner(view returns (address)
0x8114b3854d1e7b7f5f14896537c321e9062284ce
reserveFactorMantissa(view returns (uint256)
100000000000000000
 
supplyRatePerBlock(view returns (uint256)
symbol(view returns (string)
pDAI
totalBorrows(view returns (uint256)
146820915122276610483
totalReserves(view returns (uint256)
13751505591330524136532
totalSupply(view returns (uint256)
308111551584265
underlying(view returns (address)
0x6b175474e89094c44da98b954eedeac495271d0f
Read-only
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address ownerview returns (uint256)
borrowBalanceStored(address accountview returns (uint256)
getAccountSnapshot(address accountview returns (uint256uint256uint256uint256)
State-modifying
admin(returns (address)
changeAdmin(address newAdmin
implementation(returns (address)
upgradeTo(address newImplementation
upgradeToAndCall(address newImplementationbytes datapayable 
_addReserves(uint256 addAmountreturns (uint256)
_reduceReserves(uint256 reduceAmountreturns (uint256)
_setComptroller(address newComptrollerreturns (uint256)
_setInterestRateModel(address newInterestRateModelreturns (uint256)
_setMigrator(address newMigratorreturns (uint256)
_setMinInterestAccumulated(uint256 _minInterestAccumulatedreturns (uint256)
_setReserveFactor(uint256 newReserveFactorMantissareturns (uint256)
accrueInterest(returns (uint256)
approve(address spenderuint256 amountreturns (bool)
balanceOfUnderlying(address ownerreturns (uint256)
borrow(uint256 borrowAmountreturns (uint256)
borrowBalanceCurrent(address accountreturns (uint256)
exchangeRateCurrent(returns (uint256)
init(address comptroller_address interestRateModel_uint256 initialExchangeRateMantissa_string name_string symbol_uint8 decimals_
initialize(address underlying_address comptroller_address interestRateModel_uint256 initialExchangeRateMantissa_string name_string symbol_uint8 decimals_
liquidateBorrow(address borroweruint256 repayAmountaddress cTokenCollateralreturns (uint256)
mint(uint256 mintAmountreturns (uint256)
mintForMigrate(uint256 mintAmountuint256 mintTokensreturns (uint256)
redeem(uint256 redeemTokensreturns (uint256)
redeemUnderlying(uint256 redeemAmountreturns (uint256)
renounceOwnership(
repayBorrow(uint256 repayAmountreturns (uint256)
repayBorrowBehalf(address borroweruint256 repayAmountreturns (uint256)
seize(address liquidatoraddress borroweruint256 seizeTokensreturns (uint256)
totalBorrowsCurrent(returns (uint256)
transfer(address dstuint256 amountreturns (bool)
transferFrom(address srcaddress dstuint256 amountreturns (bool)
transferOwnership(address newOwner
Events
AdminChanged(address previousAdminaddress newAdmin
Upgraded(address indexed implementation
AccrueInterest(uint256 cashPrioruint256 interestAccumulateduint256 borrowIndexuint256 totalBorrowsuint256 totalReserves
Approval(address indexed owneraddress indexed spenderuint256 amount
Borrow(address borroweruint256 borrowAmountuint256 accountBorrowsuint256 totalBorrowsuint256 interestBalancePrior
Failure(uint256 erroruint256 infouint256 detail
LiquidateBorrow(address liquidatoraddress borroweruint256 repayAmountaddress pTokenCollateraluint256 seizeTokens
Mint(address minteruint256 mintAmountuint256 mintTokensuint256 totalSupplyuint256 accountTokens
NewComptroller(address oldComptrolleraddress newComptroller
NewMarketInterestRateModel(address oldInterestRateModeladdress newInterestRateModel
NewMigrator(address oldMigratoraddress newMigrator
NewMinInterestAccumulated(uint256 oldMinInterestAccumulateduint256 newMinInterestAccumulated
NewReserveFactor(uint256 oldReserveFactorMantissauint256 newReserveFactorMantissa
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Redeem(address redeemeruint256 redeemAmountuint256 redeemTokensuint256 totalSupplyuint256 accountTokens
RepayBorrow(address payeraddress borroweruint256 repayAmountuint256 accountBorrowsuint256 totalBorrowsuint256 interestBalancePrior
ReservesAdded(address benefactoruint256 addAmountuint256 newTotalReserves
ReservesReduced(address adminuint256 reduceAmountuint256 newTotalReserves
Transfer(address indexed fromaddress indexed touint256 amount
Constructor
constructor(address _logicaddress _adminbytes _data
Fallback and receive
fallback(
Errors

This contract contains no error objects.