scUSDCv2

Verified contract

Proxy

Active on Ethereum with 105 txns
Deployed by via 0x21da14a4 at 18488685
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 2 additional slots
ERC-20
Value $1,031,919.36
ERC-20
Value $12,902.26
ERC-20
--
ERC-20
--
0xd2081b6762d303c9006e4979239ed0a187f75832017daf770633adcfb97687e8
0x65d1bedbe646864c3d9b0eff4b070037c0bc71f25e6711aae7cb14d766edc5b5
0xf3eaaccda690eba0e600c6f2683bebe735a75eb0ecda426837a86e0442d9ff70
0xa3730705e5cdb0615aa9cd7bf56cf23ba3630ab8c58b1b51881be3fd7593ec26
0xe8e2b8fa5705fa41943cb7350b5616ff6a03ca685a696f2c69ab68364f3b60c5
0x2626752273924d86bbb4339e9477e2a45d438681ccc0f24529cbc5f3c5d6b523
0x9a610bf3761d945360aeb05163d55834a40d861fb63b7d4559c3e72363fcb10a
0x0d52c98994ba1e927fa0f64d8075e4ed3c002a8731ce30cf80e8ef87a73606a6
0x79f617656e218f1821b07f70a993bb4f63d5c965161d1fe37485c7910feb66f5
0x0aba108f4ac45aa9ad0e06c00af97ea50411065282c1cb5b27ca0c4759f19b8a

Functions
Getter at block 21167183
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
 
getProfit(view returns (uint256)
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
 
totalAssets(view returns (uint256)
 
totalCollateral(view returns (uint256 total)
 
totalDebt(view returns (uint256 total)
totalSupply(view returns (uint256)
975254141267
treasury(view returns (address)
0x0000000000000000000000000000000000000000
usdcBalance(view returns (uint256)
12902257719
weth(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
 
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)
Read-only
allowance(addressaddressview returns (uint256)
balanceOf(addressview returns (uint256)
convertToAssets(uint256 sharesview returns (uint256)
convertToShares(uint256 assetsview returns (uint256)
getCollateral(uint256 _adapterIdview returns (uint256)
getDebt(uint256 _adapterIdview returns (uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
isSupported(uint256 _adapterIdview returns (bool)
isTokenWhitelisted(address _tokenview returns (bool)
maxDeposit(addressview returns (uint256)
maxMint(addressview returns (uint256)
maxRedeem(address ownerview returns (uint256)
maxWithdraw(address ownerview returns (uint256)
nonces(addressview returns (uint256)
previewDeposit(uint256 assetsview returns (uint256)
previewMint(uint256 sharesview returns (uint256)
previewRedeem(uint256 sharesview returns (uint256)
previewWithdraw(uint256 assetsview returns (uint256)
supportsInterface(bytes4 interfaceIdview returns (bool)
claimRewards(bytespure 
getCollateral(address _accountview returns (uint256)
getDebt(address _accountview returns (uint256)
State-modifying
addAdapter(address _adapter
approve(address spenderuint256 amountreturns (bool)
borrow(uint256 _adapterIduint256 _amount
claimRewards(uint256 _adapterIdbytes _callData
deposit(uint256 assetsaddress receiverreturns (uint256 shares)
disinvest(uint256 _amount
exitAllPositions(uint256 _endUsdcBalanceMin
grantRole(bytes32 roleaddress account
mint(uint256 sharesaddress receiverreturns (uint256 assets)
permit(address owneraddress spenderuint256 valueuint256 deadlineuint8 vbytes32 rbytes32 s
reallocate(uint256 _flashLoanAmountbytes[] _callData
rebalance(bytes[] _callData
receiveFlashLoan(address[]uint256[] _amountsuint256[] _feeAmountsbytes _data
redeem(uint256 sharesaddress receiveraddress ownerreturns (uint256 assets)
removeAdapter(uint256 _adapterIdbool _force
renounceRole(bytes32 roleaddress account
repay(uint256 _adapterIduint256 _amount
revokeRole(bytes32 roleaddress account
sellProfit(uint256 _usdcAmountOutMin
setFloatPercentage(uint256 _newFloatPercentage
setPerformanceFee(uint256 _newPerformanceFee
setSlippageTolerance(uint256 _newSlippageTolerance
setSwapper(address _newSwapper
setTreasury(address _newTreasury
supply(uint256 _adapterIduint256 _amount
transfer(address touint256 amountreturns (bool)
transferFrom(address fromaddress touint256 amountreturns (bool)
whiteListOutToken(address _tokenbool _value
withdraw(uint256 _adapterIduint256 _amount
withdraw(uint256 assetsaddress receiveraddress ownerreturns (uint256 shares)
zeroExSwap(address _tokenInaddress _tokenOutuint256 _amountbytes _swapDatauint256 _assetAmountOutMin
borrow(uint256 _amount
repay(uint256 _amount
revokeApprovals(
setApprovals(
supply(uint256 _amount
withdraw(uint256 _amount
Events
Approval(address indexed owneraddress indexed spenderuint256 amount
Borrowed(uint256 adapterIduint256 amount
Deposit(address indexed calleraddress indexed owneruint256 assetsuint256 shares
Disinvested(uint256 wethAmount
EmergencyExitExecuted(address indexed adminuint256 wethWithdrawnuint256 debtRepaiduint256 collateralReleased
FloatPercentageUpdated(address indexed useruint256 newFloatPercentage
Invested(uint256 wethAmount
PerformanceFeeUpdated(address indexed useruint256 newPerformanceFee
ProfitSold(uint256 wethSolduint256 usdcReceived
ProtocolAdapterAdded(address indexed adminuint256 adapterIdaddress adapter
ProtocolAdapterRemoved(address indexed adminuint256 adapterId
Reallocated(
Rebalanced(uint256 totalCollateraluint256 totalDebtuint256 floatBalance
Repaid(uint256 adapterIduint256 amount
RewardsClaimed(uint256 adapterId
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
SlippageToleranceUpdated(address indexed adminuint256 newSlippageTolerance
Supplied(uint256 adapterIduint256 amount
SwapperUpdated(address indexed adminaddress newSwapper
TokenSwapped(address tokenuint256 amountuint256 amountReceived
TokenWhitelisted(address tokenbool value
Transfer(address indexed fromaddress indexed touint256 amount
TreasuryUpdated(address indexed useraddress newTreasury
Withdraw(address indexed calleraddress indexed receiveraddress indexed owneruint256 assetsuint256 shares
Withdrawn(uint256 adapterIduint256 amount
Constructor
constructor(address _adminaddress _keeperaddress _scWETHaddress _priceConverteraddress _swapper
Fallback and receive

This contract contains no fallback and receive objects.

Errors
CallerNotAdmin(
CallerNotKeeper(
EndUsdcBalanceTooLow(
FeesTooHigh(
FlashLoanAmountZero(
FloatBalanceTooLow(uint256 actualuint256 required
InvalidFlashLoanCaller(
InvalidFloatPercentage(
InvalidSlippageTolerance(
NoProfitsToSell(
ProtocolInUse(uint256 adapterId
ProtocolNotSupported(uint256 adapterId
TokenOutNotAllowed(address token
TreasuryCannotBeZero(
ZeroAddress(