Earn

Verified contract

Active on Ethereum with 33 txns
Deployed by via 0x6f2139c5 at 14389781
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
--
0xe91c454784c03b0a734cf61aeb81cda8d424e5801c7fb3bb29d44b7c80b471b9
0xedb9f9dccc07a24389b33d829efb9b71adacf7d53efd21a6ad850c1b8e7aa329
0xc976f39751d8daaed64ba17215b8fb13b23c6cd83b68ffac78dba07dbb4124aa
0xc370446b6d33bb88df500dd35a03a1db88de567873346d5834d4fd5d924d619a
0x46a12425265dfa76b755010c98908f456651402b5b9d889b56c52ca02c3efcd6
0xe0aa8bcb27a8f52ef8dd678c0c074b486ea7f2afb5f285ad92108ccd85a781eb
0x61a292a44984ba1d048a4bab3c7593e0c17c6a84c73e4c2db18272b031f611f4
0x2c82035b964d3d209b410ce4c3125b13f645eccaae121d038884cfe18e6092fe
0xde801a94c9efe47490ad4df52c5f4f7465ab3f7e09d68375c46dc1b78d614a94
0x7033c87d24e5bc46a4459f5467cdc2c00aa4b67e55abba8513a493e22ea37921

Functions
Getter at block 21206100
ALTA(view returns (address)
0xe0cca86b254005889ac3a81e737f56a14f4a38f5
USDC(view returns (address)
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
altaBonusMultiplier(view returns (uint256)
200
baseBonusMultiplier(view returns (uint256)
150
getAllBids(view returns (struct EarnBid[])
[]
 
getAllEarnContracts(view returns (struct EarnEarnContract[])
 
getAllEarnTerms(view returns (struct EarnEarnTerm[])
 
getAllOpenEarnTerms(view returns (struct EarnEarnTerm[])
highTier(view returns (uint256)
150000000000
lowTier(view returns (uint256)
5000000000
medTier(view returns (uint256)
25000000000
owner(view returns (address)
0x087183a411770a645a96cf2e31fa69ab89e22f5e
paused(view returns (bool)
false
transferFee(view returns (uint256)
0
Read-only
bids(uint256view returns (address bidderaddress touint256 earnContractIduint256 amountbool accepted)
calculateInterest(uint256 _earnContractIdview returns (uint256 usdcInterestAmountuint256 altaAmount)
calculateInterestReserves(uint256 _usdcPrincipaluint256 _usdcRateview returns (uint256 usdcInterestAmount)
checkTokenWhitelist(address _tokenuint256 _earnTermsIdview returns (bool)
earnContractBidCount(uint256view returns (uint256)
earnContractToOwner(uint256view returns (address)
earnContracts(uint256view returns (address owneruint256 startTimeuint256 contractLengthaddress tokenAddressuint256 tokenAmountuint256 usdcPrincipaluint256 usdcRateuint256 usdcInterestPaiduint256 altaAmountuint256 usdcBonusRateuint256 altaBonusAmountuint8 status)
earnTerms(uint256view returns (uint256 timeuint16 usdcRateuint64 altaHighAmountuint64 altaMedAmountuint64 altaLowAmountbool otherTokensbool whitelistuint256 usdcMaxuint256 usdcAcceptedbool open)
getBidsByContract(uint256 _earnContractIdview returns (uint256[])
getContractsByOwner(address _ownerview returns (uint256[])
getCurrentUsdcValueByOwner(address _ownerview returns (uint256)
getRedemptionUsdcValueByOwner(address _ownerview returns (uint256)
ownerEarnContractCount(addressview returns (uint256)
State-modifying
acceptBid(uint256 _bidId
addTerm(uint256 _timeuint16 _usdcRateuint64 _altaHighAmountuint64 _altaMedAmountuint64 _altaLowAmountbool _otherTokensbool _whitelistaddress[] _tokensAccepteduint256 _usdcMax
closeContract(uint256 _earnContractId
closeTerm(uint256 _earnTermsId
makeBid(uint256 _earnContractIduint256 _amount
openContractTokenSwapToUSDC(uint256 _earnTermsIdaddress _tokenAddressuint256 _amountaddress _swapTargetbytes _swapCallData
openContractUsdc(uint256 _earnTermsIduint256 _amount
openTerm(uint256 _earnTermsId
pause(
putSale(uint256 _earnContractId
redeemInterestUSDC(uint256 _earnContractId
removeBid(uint256 _bidId
removeContractFromMarket(uint256 _earnContractId
renounceOwnership(
setAltaAddress(address _ALTA
setAltaBonusMultiplier(uint256 _altaBonusMultiplier
setAltaContractTiers(uint256 _highTieruint256 _medTieruint256 _lowTier
setBaseBonusMultiplier(uint256 _baseBonusMultiplier
setFeeAddress(address _feeAddress
setLoanAddress(address _loanAddress
setReserveDays(uint256 _reserveDays
setTransferFee(uint256 _transferFee
transfer(address _touint256 _amount
transferOwnership(address newOwner
unpause(
updateTerm(uint256 _earnTermsIduint256 _timeuint16 _usdcRateuint64 _altaHighAmountuint64 _altaMedAmountuint64 _altaLowAmountbool _otherTokensbool _whitelistaddress[] _tokensAccepteduint256 _usdcMaxuint256 _usdcAcceptedbool _open
withdraw(address _addr
withdrawUSDC(address _addr
Events
BidMade(address indexed bidderuint256 bidId
ContractClosed(address indexed owneruint256 earnContractId
ContractForSale(uint256 earnContractId
ContractOffMarket(uint256 earnContractId
ContractOpened(address indexed owneruint256 earnContractId
EarnContractOwnershipTransferred(address indexed previousOwneraddress indexed newOwneruint256 earnContractId
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Paused(address account
Unpaused(address account
Constructor
constructor(address _USDCaddress _ALTAaddress _loanAddressaddress _feeAddressstruct EarnEarnContract[] migratedContracts
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.