scUSDCv2
Verified contract
Proxy
Active on
Ethereum with 105 txns
Unified storage
Map
Table
Raw
Constants and immutables
54
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x6649…6531
-
variable spans 2 additional slots
Balances ($1,044,821.61)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
aEthUSDC | ERC-20 | 1.031981M | $0.99994 |
$1,031,919.36 | |
USDC | ERC-20 | 12.902258K | $1.00 |
$12,902.26 | |
variableDebtEthWETH | ERC-20 | 169.714489 | -- | -- | |
scWETHv2 | ERC-20 | 159.960316 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 20769985 | 2 months ago | | | 0 | 0.0014242982 | |
| 20468827 | 3 months ago | | | 0 | 0.0012192009 | |
| 20467691 | 3 months ago | | | 0 | 0.0011947503 | |
| 20424566 | 3 months ago | | | 0 | 0.0019790785 | |
| 20362306 | 4 months ago | | | 0 | 0.0035777991 | |
| 20332920 | 4 months ago | | | 0 | 0.0036281947 | |
| 20310951 | 4 months ago | | | 0 | 0.0039189525 | |
| 20297132 | 4 months ago | | | 0 | 0.0031743923 | |
| 20292946 | 4 months ago | | | 0 | 0.0012850969 | |
| 20268367 | 4 months ago | | | 0 | 0.0016399892 |
ABI
ABI objects
Getter at block 21167183 getProfit() view returns (uint256) totalAssets() view returns (uint256) totalCollateral() view returns (uint256 total) totalDebt() view returns (uint256 total) wethInvested() view returns (uint256) aUsdc() view returns (address) aaveV3PoolDataProvider() view returns (address) dWeth() view returns (address) getMaxLtv() view returns (uint256) id() view returns (uint256) pool() view returns (address)
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
DOMAIN_SEPARATOR() view returns (bytes32)
0x092c4bf5ac69cdfd87adb7ac39ff8cb298489d7f4c5dd719b8d8dd5c388fc3cb
KEEPER_ROLE() view returns (bytes32)
0xfc8737ab85eb45125971625a9ebdb75cc78e01d5c1fa80c4c6e5203f47bc4fab
asset() view returns (address)
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
balancerVault() view returns (address)
0xba12222222228d8ba445958a75a0704d566bf2c8
decimals() view returns (uint8)
6
flashLoanInitiated() view returns (bool)
false
floatPercentage() view returns (uint256)
10000000000000000
name() view returns (string)
Sandclock Yield USDC
performanceFee() view returns (uint256)
100000000000000000
priceConverter() view returns (address)
0xd76b0ff4a487cafe4e19ed15b73f12f6a92095ca
scWETH() view returns (address)
0x4c406c068106375724275cbff028770c544a1333
slippageTolerance() view returns (uint256)
990000000000000000
swapper() view returns (address)
0x6649f12b5ef495a3861b21e3206b1abfa33a6531
symbol() view returns (string)
scUSDC
totalSupply() view returns (uint256)
975254141267
treasury() view returns (address)
0x0000000000000000000000000000000000000000
usdcBalance() view returns (uint256)
12902257719
weth() view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
allowance(address, address) view returns (uint256)
balanceOf(address) view returns (uint256)
convertToAssets(uint256 shares) view returns (uint256)
convertToShares(uint256 assets) view returns (uint256)
getCollateral(uint256 _adapterId) view returns (uint256)
getDebt(uint256 _adapterId) view returns (uint256)
getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole(bytes32 role, address account) view returns (bool)
isSupported(uint256 _adapterId) view returns (bool)
isTokenWhitelisted(address _token) view returns (bool)
maxDeposit(address) view returns (uint256)
maxMint(address) view returns (uint256)
maxRedeem(address owner) view returns (uint256)
maxWithdraw(address owner) view returns (uint256)
nonces(address) view returns (uint256)
previewDeposit(uint256 assets) view returns (uint256)
previewMint(uint256 shares) view returns (uint256)
previewRedeem(uint256 shares) view returns (uint256)
previewWithdraw(uint256 assets) view returns (uint256)
supportsInterface(bytes4 interfaceId) view returns (bool)
claimRewards(bytes) pure
getCollateral(address _account) view returns (uint256)
getDebt(address _account) view returns (uint256)
State-modifying
Events addAdapter(address _adapter)
approve(address spender, uint256 amount) returns (bool)
borrow(uint256 _adapterId, uint256 _amount)
claimRewards(uint256 _adapterId, bytes _callData)
deposit(uint256 assets, address receiver) returns (uint256 shares)
disinvest(uint256 _amount)
exitAllPositions(uint256 _endUsdcBalanceMin)
grantRole(bytes32 role, address account)
mint(uint256 shares, address receiver) returns (uint256 assets)
permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s)
reallocate(uint256 _flashLoanAmount, bytes[] _callData)
rebalance(bytes[] _callData)
receiveFlashLoan(address[], uint256[] _amounts, uint256[] _feeAmounts, bytes _data)
redeem(uint256 shares, address receiver, address owner) returns (uint256 assets)
removeAdapter(uint256 _adapterId, bool _force)
renounceRole(bytes32 role, address account)
repay(uint256 _adapterId, uint256 _amount)
revokeRole(bytes32 role, address account)
sellProfit(uint256 _usdcAmountOutMin)
setFloatPercentage(uint256 _newFloatPercentage)
setPerformanceFee(uint256 _newPerformanceFee)
setSlippageTolerance(uint256 _newSlippageTolerance)
setSwapper(address _newSwapper)
setTreasury(address _newTreasury)
supply(uint256 _adapterId, uint256 _amount)
transfer(address to, uint256 amount) returns (bool)
transferFrom(address from, address to, uint256 amount) returns (bool)
whiteListOutToken(address _token, bool _value)
withdraw(uint256 _adapterId, uint256 _amount)
withdraw(uint256 assets, address receiver, address owner) returns (uint256 shares)
zeroExSwap(address _tokenIn, address _tokenOut, uint256 _amount, bytes _swapData, uint256 _assetAmountOutMin)
borrow(uint256 _amount)
repay(uint256 _amount)
revokeApprovals()
setApprovals()
supply(uint256 _amount)
withdraw(uint256 _amount)
Approval(address indexed owner, address indexed spender, uint256 amount)
Borrowed(uint256 adapterId, uint256 amount)
Deposit(address indexed caller, address indexed owner, uint256 assets, uint256 shares)
Disinvested(uint256 wethAmount)
EmergencyExitExecuted(address indexed admin, uint256 wethWithdrawn, uint256 debtRepaid, uint256 collateralReleased)
FloatPercentageUpdated(address indexed user, uint256 newFloatPercentage)
Invested(uint256 wethAmount)
PerformanceFeeUpdated(address indexed user, uint256 newPerformanceFee)
ProfitSold(uint256 wethSold, uint256 usdcReceived)
ProtocolAdapterAdded(address indexed admin, uint256 adapterId, address adapter)
ProtocolAdapterRemoved(address indexed admin, uint256 adapterId)
Reallocated()
Rebalanced(uint256 totalCollateral, uint256 totalDebt, uint256 floatBalance)
Repaid(uint256 adapterId, uint256 amount)
RewardsClaimed(uint256 adapterId)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
SlippageToleranceUpdated(address indexed admin, uint256 newSlippageTolerance)
Supplied(uint256 adapterId, uint256 amount)
SwapperUpdated(address indexed admin, address newSwapper)
TokenSwapped(address token, uint256 amount, uint256 amountReceived)
TokenWhitelisted(address token, bool value)
Transfer(address indexed from, address indexed to, uint256 amount)
TreasuryUpdated(address indexed user, address newTreasury)
Withdraw(address indexed caller, address indexed receiver, address indexed owner, uint256 assets, uint256 shares)
Withdrawn(uint256 adapterId, uint256 amount)
constructor(address _admin, address _keeper, address _scWETH, address _priceConverter, address _swapper)
This contract contains no fallback and receive objects.
CallerNotAdmin()
CallerNotKeeper()
EndUsdcBalanceTooLow()
FeesTooHigh()
FlashLoanAmountZero()
FloatBalanceTooLow(uint256 actual, uint256 required)
InvalidFlashLoanCaller()
InvalidFloatPercentage()
InvalidSlippageTolerance()
NoProfitsToSell()
ProtocolInUse(uint256 adapterId)
ProtocolNotSupported(uint256 adapterId)
TokenOutNotAllowed(address token)
TreasuryCannotBeZero()
ZeroAddress()