DCA: USDC - WETH
Verified contract
Active on
Ethereum with 252 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0xa0b8…eb48
0xc02a…6cc2
-
variable spans 1 additional slot
Balances ($30,300.61)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
WETH | ERC-20 | 4.179263 | $3,842.87 |
$16,060.37 | |
USDC | ERC-20 | 14.250238K | $0.999299 |
$14,240.25 |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 19117418 | 10 months ago | | | 0 | 0.00094578061 | |
| 19117380 | 10 months ago | | | 0 | 0.00098678565 | |
| 19117301 | 10 months ago | | | 0 | 0.0012516798 | |
| 18187178 | a year ago | | | 0 | 0.00069734498 | |
| 16575017 | 2 years ago | | | 0 | 0.00059546204 | |
| 15881420 | 2 years ago | | | 0 | 0.00048205316 | |
| 15191573 | 2 years ago | | | 0 | 0.00080808542 | |
| 14981564 | 2 years ago | | | 0 | 0.0016199979 | |
| 14813864 | 3 years ago | | | 0 | 0.0021171563 | |
| 14436434 | 3 years ago | | | 0 | 0.0032724878 |
ABI
ABI objects
Getter at block 21402558 getNextSwapInfo() view returns (struct IDCAPairSwapHandlerNextSwapInformation _nextSwapInformation)
availableToBorrow() view returns (uint256 _amountToBorrowTokenA, uint256 _amountToBorrowTokenB)
(_amountToBorrowTokenA=14250238498, _amountToBorrowTokenB=4179263192657944858)
globalParameters() view returns (address)
0x0dbcca406b622ed1f455abc9560d51aa0c81560f
name() view returns (string)
DCA: USDC - WETH
secondsUntilNextSwap() view returns (uint32 _secondsUntil)
0
symbol() view returns (string)
DCA
tokenA() view returns (address)
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
tokenB() view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
balanceOf(address owner) view returns (uint256)
getApproved(uint256 tokenId) view returns (address)
isApprovedForAll(address owner, address operator) view returns (bool)
isSwapIntervalActive(uint32 _activeSwapInterval) view returns (bool _isIntervalActive)
nextSwapAvailable(uint32) view returns (uint32)
ownerOf(uint256 tokenId) view returns (address)
performedSwaps(uint32) view returns (uint32)
supportsInterface(bytes4 interfaceId) view returns (bool)
swapAmountAccumulator(uint32, address) view returns (uint256)
swapAmountDelta(uint32, address, uint32) view returns (int256)
tokenURI(uint256 tokenId) view returns (string)
userPosition(uint256 _dcaId) view returns (struct IDCAPairPositionHandlerUserPosition _userPosition)
State-modifying
Events addFundsToPosition(uint256 _dcaId, uint256 _amount, uint32 _newSwaps)
approve(address to, uint256 tokenId)
deposit(address _tokenAddress, uint160 _rate, uint32 _amountOfSwaps, uint32 _swapInterval) returns (uint256)
loan(uint256 _amountToBorrowTokenA, uint256 _amountToBorrowTokenB, address _to, bytes _data)
modifyRate(uint256 _dcaId, uint160 _newRate)
modifyRateAndSwaps(uint256 _dcaId, uint160 _newRate, uint32 _newAmountOfSwaps)
modifySwaps(uint256 _dcaId, uint32 _newSwaps)
safeTransferFrom(address from, address to, uint256 tokenId)
safeTransferFrom(address from, address to, uint256 tokenId, bytes _data)
setApprovalForAll(address operator, bool approved)
swap()
swap(uint256 _amountToBorrowTokenA, uint256 _amountToBorrowTokenB, address _to, bytes _data)
terminate(uint256 _dcaId)
transferFrom(address from, address to, uint256 tokenId)
withdrawSwapped(uint256 _dcaId) returns (uint256 _swapped)
withdrawSwappedMany(uint256[] _dcaIds) returns (uint256 _swappedTokenA, uint256 _swappedTokenB)
Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
ApprovalForAll(address indexed owner, address indexed operator, bool approved)
Deposited(address indexed _user, uint256 _dcaId, address _fromToken, uint160 _rate, uint32 _startingSwap, uint32 _swapInterval, uint32 _lastSwap)
Loaned(address indexed _sender, address indexed _to, uint256 _amountBorrowedTokenA, uint256 _amountBorrowedTokenB, uint32 _loanFee)
Modified(address indexed _user, uint256 _dcaId, uint160 _rate, uint32 _startingSwap, uint32 _lastSwap)
Swapped(address indexed _sender, address indexed _to, uint256 _amountBorrowedTokenA, uint256 _amountBorrowedTokenB, uint32 _fee, struct IDCAPairSwapHandlerNextSwapInformation _nextSwapInformation)
Terminated(address indexed _user, uint256 _dcaId, uint256 _returnedUnswapped, uint256 _returnedSwapped)
Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
Withdrew(address indexed _user, uint256 _dcaId, address _token, uint256 _amount)
WithdrewMany(address indexed _user, uint256[] _dcaIds, uint256 _swappedTokenA, uint256 _swappedTokenB)
constructor(address _globalParameters, address _tokenA, address _tokenB)
This contract contains no fallback and receive objects.
InsufficientLiquidity()
InvalidInterval()
InvalidPosition()
InvalidToken()
LiquidityNotReturned()
MandatoryWithdraw()
NoSwapsToExecute()
Paused()
PositionCompleted()
UnauthorizedCaller()
ZeroAddress()
ZeroAmount()
ZeroLoan()
ZeroRate()
ZeroSwaps()