DCA: USDC - WETH

Verified contract

Active on Ethereum with 252 txns
Deployed by via 0xd2778566 at 12960741
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
ERC-20
Value $16,060.37
ERC-20
Value $14,240.25
0xd1bf9a9ec28d10f5af7aa0759f77f7eb916c6eb455fee43aeec6d4f8a003c89b
0x1a77adf77884e602a1b0c22587a9087a332bb177e49ec9e243236972b4cc126e
0xd4ee9a7fed58e25280b5ebec937d804ba824c8fd51ab98fbc3359fa19e1e2e07
0x32b0303090b3e8cfa49cc278904cfd55e5ab4152291c8c05b48346a9f0bffc68
0x4b65980684a187af50c6fd5599f15a949e1a823ddc20a70a63c91c3bd3eaf733
0x05b75c551c9f88766bc3eec33d38def46031b12a6c31c9b187366eb83edbc2be
0xfce35a5dbebfa4c599730e91479a3b3c005c82d1247e52a07f3a259629e0a86e
0x83c7ce3dc1fac92da63961a0f2f51cbf825f0f1923465b68f32630daad1571f2
0x016c8f4cfa587ac405fea1f7d26a6142e8d65962b0ab8a9d286ccc85495d1b0c
0xfa631bb7ac2ec16c8efc9738d233773b7ea9a7f73c30c24539cfc668c2d8ee01

Functions
Getter at block 21402558
availableToBorrow(view returns (uint256 _amountToBorrowTokenAuint256 _amountToBorrowTokenB)
(_amountToBorrowTokenA=14250238498, _amountToBorrowTokenB=4179263192657944858)
 
getNextSwapInfo(view returns (struct IDCAPairSwapHandlerNextSwapInformation _nextSwapInformation)
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 ownerview returns (uint256)
getApproved(uint256 tokenIdview returns (address)
isApprovedForAll(address owneraddress operatorview returns (bool)
isSwapIntervalActive(uint32 _activeSwapIntervalview returns (bool _isIntervalActive)
nextSwapAvailable(uint32view returns (uint32)
ownerOf(uint256 tokenIdview returns (address)
performedSwaps(uint32view returns (uint32)
supportsInterface(bytes4 interfaceIdview returns (bool)
swapAmountAccumulator(uint32addressview returns (uint256)
swapAmountDelta(uint32addressuint32view returns (int256)
tokenURI(uint256 tokenIdview returns (string)
userPosition(uint256 _dcaIdview returns (struct IDCAPairPositionHandlerUserPosition _userPosition)
State-modifying
addFundsToPosition(uint256 _dcaIduint256 _amountuint32 _newSwaps
approve(address touint256 tokenId
deposit(address _tokenAddressuint160 _rateuint32 _amountOfSwapsuint32 _swapIntervalreturns (uint256)
loan(uint256 _amountToBorrowTokenAuint256 _amountToBorrowTokenBaddress _tobytes _data
modifyRate(uint256 _dcaIduint160 _newRate
modifyRateAndSwaps(uint256 _dcaIduint160 _newRateuint32 _newAmountOfSwaps
modifySwaps(uint256 _dcaIduint32 _newSwaps
safeTransferFrom(address fromaddress touint256 tokenId
safeTransferFrom(address fromaddress touint256 tokenIdbytes _data
setApprovalForAll(address operatorbool approved
swap(
swap(uint256 _amountToBorrowTokenAuint256 _amountToBorrowTokenBaddress _tobytes _data
terminate(uint256 _dcaId
transferFrom(address fromaddress touint256 tokenId
withdrawSwapped(uint256 _dcaIdreturns (uint256 _swapped)
withdrawSwappedMany(uint256[] _dcaIdsreturns (uint256 _swappedTokenAuint256 _swappedTokenB)
Events
Approval(address indexed owneraddress indexed approveduint256 indexed tokenId
ApprovalForAll(address indexed owneraddress indexed operatorbool approved
Deposited(address indexed _useruint256 _dcaIdaddress _fromTokenuint160 _rateuint32 _startingSwapuint32 _swapIntervaluint32 _lastSwap
Loaned(address indexed _senderaddress indexed _touint256 _amountBorrowedTokenAuint256 _amountBorrowedTokenBuint32 _loanFee
Modified(address indexed _useruint256 _dcaIduint160 _rateuint32 _startingSwapuint32 _lastSwap
Swapped(address indexed _senderaddress indexed _touint256 _amountBorrowedTokenAuint256 _amountBorrowedTokenBuint32 _feestruct IDCAPairSwapHandlerNextSwapInformation _nextSwapInformation
Terminated(address indexed _useruint256 _dcaIduint256 _returnedUnswappeduint256 _returnedSwapped
Transfer(address indexed fromaddress indexed touint256 indexed tokenId
Withdrew(address indexed _useruint256 _dcaIdaddress _tokenuint256 _amount
WithdrewMany(address indexed _useruint256[] _dcaIdsuint256 _swappedTokenAuint256 _swappedTokenB
Constructor
constructor(address _globalParametersaddress _tokenAaddress _tokenB
Fallback and receive

This contract contains no fallback and receive objects.

Errors
InsufficientLiquidity(
InvalidInterval(
InvalidPosition(
InvalidToken(
LiquidityNotReturned(
MandatoryWithdraw(
NoSwapsToExecute(
Paused(
PositionCompleted(
UnauthorizedCaller(
ZeroAddress(
ZeroAmount(
ZeroLoan(
ZeroRate(
ZeroSwaps(