Alkemi Earn Contracts
Earn App
Earn API
Search…
Alkemi Earn Contracts
docs
EIP20NonStandardInterface (EIP20NonStandardInterface.sol)
EIP20Interface.sol
RewardControlStorage.sol
TestTokens.sol
Careful Math (CarefulMath.sol)
RewardControlInterface.sol
AggregatorV3Interface.sol
PriceOracleProxy.sol
RewardControl.sol
Migrations.sol
SafeToken.sol
AlkemiWETH.sol
Exponential module for storing fixed-precision decimals (ExponentialNoError.sol)
AlkemiEarnPublic.sol
ErrorReporter.sol
AlkemiEarnVerified.sol
Earn Interest Rate Model (AlkemiRateModel.sol)
PriceOracle.sol
ExchangeRateModel.sol
Exponential.sol
LiquidationChecker.sol
InterestRateModel Interface (InterestRateModel.sol)
SafeMath.sol
ChainLink.sol
PriceOracleInterface.sol
Liquidator.sol
.solidoc
scripts
Powered By
GitBook
AlkemiWETH.sol
View Source:
contracts/AlkemiWETH.sol
​
​
Contract Members
Constants & Variables
1
string
public
name
;
2
string
public
symbol
;
3
uint8
public
decimals
;
4
mapping
(
address
=>
uint256
)
public
balanceOf
;
5
mapping
(
address
=>
mapping
(
address
=>
uint256
))
public
allowance
;
Copied!
Events
1
event
Approval
(
address indexed src
,
address indexed guy
,
uint256 wad
);
2
event
Transfer
(
address indexed src
,
address indexed dst
,
uint256 wad
);
3
event
Deposit
(
address indexed dst
,
uint256 wad
);
4
event
Withdrawal
(
address indexed src
,
uint256 wad
);
Copied!
Functions
()
deposit()
withdraw(address user, uint256 wad)
totalSupply()
approve(address guy, uint256 wad)
transfer(address dst, uint256 wad)
transferFrom(address src, address dst, uint256 wad)
​
1
function
()
public
payable
Copied!
Arguments
Name
Type
Description
deposit
1
function
deposit
()
public
payable
Copied!
Arguments
Name
Type
Description
withdraw
1
function
withdraw
(
address user
,
uint256 wad
)
public
nonpayable
Copied!
Arguments
Name
Type
Description
user
address
​
wad
uint256
​
totalSupply
1
function
totalSupply
()
public
view
2
returns
(
uint256
)
Copied!
Arguments
Name
Type
Description
approve
1
function
approve
(
address guy
,
uint256 wad
)
public
nonpayable
2
returns
(
bool
)
Copied!
Arguments
Name
Type
Description
guy
address
​
wad
uint256
​
transfer
1
function
transfer
(
address dst
,
uint256 wad
)
public
nonpayable
2
returns
(
bool
)
Copied!
Arguments
Name
Type
Description
dst
address
​
wad
uint256
​
transferFrom
1
function
transferFrom
(
address src
,
address dst
,
uint256 wad
)
public
nonpayable
2
returns
(
bool
)
Copied!
Arguments
Name
Type
Description
src
address
​
dst
address
​
wad
uint256
​
Previous
SafeToken.sol
Next
Exponential module for storing fixed-precision decimals (ExponentialNoError.sol)
Last modified
9mo ago
Copy link
Contents
Contract Members
Functions