CornSilo
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
18
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 1 additional slot
Balances ($0.00)
No balances found for "CornSilo"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "CornSilo"
ABI
ABI objects
Getter at block 20791569 getERC20Inbox() view returns (address erc20Inbox) getGatewayRouter() view returns (address gatewayRouter) getSwapFacilityVault() view returns (address)
BPS_DIVISOR() view returns (uint256)
10000
MAX_WITHDRAWAL_FEE_BPS() view returns (uint256)
0
ONE_SATOSHI_OF_BITCOIN_SHARES() view returns (uint256)
10000000000
authority() view returns (address)
0x0000000000000000000000000000000000000000
authorityInitialized() view returns (bool)
false
bitcorn() view returns (address)
0x39eb270155c78cbe8cdad4050fd8b8512f806a21
bitcornMinterAsset() view returns (address)
0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
feeRecipient() view returns (address)
0xd437fc63d8e4a0cb5c3d086fee5033a53c6eefe3
getApprovedTokens() view returns (address[])
[]
isBridgeEnabled() view returns (bool)
false
paused() view returns (bool)
false
proxiableUUID() view returns (bytes32)
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc
to18ConversionFactor() view returns (uint256)
10000000000
withdrawalFee() view returns (uint256)
0
Read-only
from18DecimalsToAssetDecimals(uint256 amountIn18Decimals) view returns (uint256)
fromAssetDecimalsTo18Decimals(uint256 amount) view returns (uint256)
sharesOf(address user, address token) view returns (uint256)
totalShares(address) view returns (uint256)
State-modifying
Events addApprovedToken(address token)
bridgeAllTokens(address recipient, uint256 cost, uint256 maxGas, uint256 gasPriceBid, bytes data)
bridgeBitcorn(address recipient, uint256 cost, uint256 maxGas, uint256 gasPriceBid)
bridgeToken(address token, address recipient, uint256 maxGas, uint256 gasPriceBid, bytes data)
deposit(address token, uint256 assets) returns (uint256 shares)
depositFor(address recipient, address token, uint256 assets) returns (uint256 shares)
enableBridge(address gatewayRouter, address erc20Inbox, address swapFacilityVault)
initialize(address _authority, address[] _initialApprovedTokens)
mintAndDepositBitcorn(uint256 assets) returns (uint256 shares)
mintAndDepositBitcornFor(address recipient, uint256 assets) returns (uint256 shares)
pause()
redeemAll() returns (address[] depositedTokens, uint256[] assets, uint256 bitcornShares, uint256 minterAssetReturned)
redeemBitcorn(uint256 shares) returns (uint256 assets)
redeemToken(address token, uint256 shares) returns (uint256 assets)
setWithdrawalFee(uint256 _fee)
unpause()
upgradeTo(address newImplementation)
upgradeToAndCall(address newImplementation, bytes data) payable
AdminChanged(address previousAdmin, address newAdmin)
AuthorityUpdated(address indexed user, address indexed newAuthority)
BeaconUpgraded(address indexed beacon)
BridgeEnabled(address gatewayRouter, address swapFacilityVault)
Initialized(uint8 version)
Paused(address account)
TokenBridged(address indexed token, address indexed user, address indexed recipient, uint256 amount, uint256 maxGas, uint256 gasPriceBid, bytes data)
TokenDeposited(address indexed user, address indexed token, uint256 assets, uint256 shares)
TokenWithdrawn(address indexed user, address indexed token, uint256 assets, uint256 shares)
Unpaused(address account)
Upgraded(address indexed implementation)
constructor(address _bitcorn, address _bitcornMinterAsset, address _feeRecipient)
This contract contains no fallback and receive objects.
BelowOneSatoshiOfShares(uint256 shares, uint256 oneSatoshiOfBitcornShares)
BitcornMinterAssetMustNotBeApprovedToken(address bitcornMinterAsset)
BitcornMustNotBeApprovedToken(address bitcorn)
BridgeIsEnabled()
BridgeIsNotSet()
BridgeNotEnabled()
InsufficientBitcornSharesToBridge(uint256 cachedShares, uint256 requiredShares)
InsufficientShares(address token, uint256 cachedShares, uint256 shares)
SharesNotMultipleOfOneSatoshi(uint256 bitcornShares, uint256 oneSatoshiOfBitcornShares)
TokenAlreadyApproved(address token)
TokenNotApproved(address token)
WithdrawalFeeAboveMax(uint256 fee)
ZeroDeposit(address token)
ZeroShares(address token)
ZeroSharesForAnyToken(address account)
ZeroWithdraw(address token)