CornSilo

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x519d44c4 at 20541559
Slot
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

No balances found for "CornSilo"

No transactions found for "CornSilo"


Functions
Getter at block 20791569
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[])
[]
 
getERC20Inbox(view returns (address erc20Inbox)
 
getGatewayRouter(view returns (address gatewayRouter)
 
getSwapFacilityVault(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 amountIn18Decimalsview returns (uint256)
fromAssetDecimalsTo18Decimals(uint256 amountview returns (uint256)
sharesOf(address useraddress tokenview returns (uint256)
totalShares(addressview returns (uint256)
State-modifying
addApprovedToken(address token
bridgeAllTokens(address recipientuint256 costuint256 maxGasuint256 gasPriceBidbytes data
bridgeBitcorn(address recipientuint256 costuint256 maxGasuint256 gasPriceBid
bridgeToken(address tokenaddress recipientuint256 maxGasuint256 gasPriceBidbytes data
deposit(address tokenuint256 assetsreturns (uint256 shares)
depositFor(address recipientaddress tokenuint256 assetsreturns (uint256 shares)
enableBridge(address gatewayRouteraddress erc20Inboxaddress swapFacilityVault
initialize(address _authorityaddress[] _initialApprovedTokens
mintAndDepositBitcorn(uint256 assetsreturns (uint256 shares)
mintAndDepositBitcornFor(address recipientuint256 assetsreturns (uint256 shares)
pause(
redeemAll(returns (address[] depositedTokensuint256[] assetsuint256 bitcornSharesuint256 minterAssetReturned)
redeemBitcorn(uint256 sharesreturns (uint256 assets)
redeemToken(address tokenuint256 sharesreturns (uint256 assets)
setWithdrawalFee(uint256 _fee
unpause(
upgradeTo(address newImplementation
upgradeToAndCall(address newImplementationbytes datapayable 
Events
AdminChanged(address previousAdminaddress newAdmin
AuthorityUpdated(address indexed useraddress indexed newAuthority
BeaconUpgraded(address indexed beacon
BridgeEnabled(address gatewayRouteraddress swapFacilityVault
Initialized(uint8 version
Paused(address account
TokenBridged(address indexed tokenaddress indexed useraddress indexed recipientuint256 amountuint256 maxGasuint256 gasPriceBidbytes data
TokenDeposited(address indexed useraddress indexed tokenuint256 assetsuint256 shares
TokenWithdrawn(address indexed useraddress indexed tokenuint256 assetsuint256 shares
Unpaused(address account
Upgraded(address indexed implementation
Constructor
constructor(address _bitcornaddress _bitcornMinterAssetaddress _feeRecipient
Fallback and receive

This contract contains no fallback and receive objects.

Errors
BelowOneSatoshiOfShares(uint256 sharesuint256 oneSatoshiOfBitcornShares
BitcornMinterAssetMustNotBeApprovedToken(address bitcornMinterAsset
BitcornMustNotBeApprovedToken(address bitcorn
BridgeIsEnabled(
BridgeIsNotSet(
BridgeNotEnabled(
InsufficientBitcornSharesToBridge(uint256 cachedSharesuint256 requiredShares
InsufficientShares(address tokenuint256 cachedSharesuint256 shares
SharesNotMultipleOfOneSatoshi(uint256 bitcornSharesuint256 oneSatoshiOfBitcornShares
TokenAlreadyApproved(address token
TokenNotApproved(address token
WithdrawalFeeAboveMax(uint256 fee
ZeroDeposit(address token
ZeroShares(address token
ZeroSharesForAnyToken(address account
ZeroWithdraw(address token