Portal

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0xeb66a64c at 19425762
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "Portal"

No transactions found for "Portal"


Functions
Getter at block 21307420
depositCount(view returns (uint256)
0
maxLockPeriod(view returns (uint32)
0
minLockPeriod(view returns (uint32)
0
owner(view returns (address)
0x0000000000000000000000000000000000000000
pendingOwner(view returns (address)
0x0000000000000000000000000000000000000000
Read-only
deposits(addressaddressuint256view returns (uint96 balanceuint32 unlockAt)
getDeposit(address depositoraddress tokenuint256 depositIdview returns (struct PortalDepositInfo)
tokenAbility(addressview returns (uint8)
State-modifying
acceptOwnership(
addSupportedToken(struct PortalSupportedToken supportedToken
deposit(address tokenuint96 amountuint32 lockPeriod
depositFor(address depositOwneraddress tokenuint96 amountuint32 lockPeriod
initialize(struct PortalSupportedToken[] supportedTokens
lock(address tokenuint256 depositIduint32 lockPeriod
receiveApproval(address fromuint256 amountaddress tokenbytes data
renounceOwnership(
setMaxLockPeriod(uint32 _maxLockPeriod
setMinLockPeriod(uint32 _minLockPeriod
transferOwnership(address newOwner
withdraw(address tokenuint256 depositIduint96 amount
Events
Deposited(address indexed depositoraddress indexed tokenuint256 indexed depositIduint256 amount
Initialized(uint64 version
Locked(address indexed depositoraddress indexed tokenuint256 indexed depositIduint32 unlockAtuint32 lockPeriod
MaxLockPeriodUpdated(uint32 maxLockPeriod
MinLockPeriodUpdated(uint32 minLockPeriod
OwnershipTransferStarted(address indexed previousOwneraddress indexed newOwner
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
SupportedTokenAdded(address indexed tokenuint8 tokenAbility
Withdrawn(address indexed depositoraddress indexed tokenuint256 indexed depositIduint256 amount
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AddressEmptyCode(address target
AddressInsufficientBalance(address account
DepositLocked(uint32 unlockAt
DepositNotFound(
FailedInnerCall(
IncorrectAmount(uint256 amount
IncorrectDepositor(address depositor
IncorrectLockPeriod(uint256 lockPeriod
IncorrectTokenAbility(uint8 ability
IncorrectTokenAddress(address token
InsufficientDepositAmount(uint256 amountuint256 depositBalance
InsufficientTokenAbility(address tokenuint8 tokenAbility
InvalidInitialization(
LockPeriodOutOfRange(uint32 lockPeriod
LockPeriodTooShort(uint32 lockPerioduint32 newUnlockAtuint32 existingUnlockAt
NotInitializing(
OwnableInvalidOwner(address owner
OwnableUnauthorizedAccount(address account
SafeERC20FailedOperation(address token
TokenAlreadySupported(address tokenuint8 tokenAbility
TokenNotSupported(address token