Portal
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
3
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "Portal"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "Portal"
ABI
ABI objects
Getter at block 20838052
depositCount() view returns (uint256)
0
liquidityTreasury() view returns (address)
0x0000000000000000000000000000000000000000
maxLockPeriod() view returns (uint32)
0
minLockPeriod() view returns (uint32)
0
owner() view returns (address)
0x0000000000000000000000000000000000000000
pendingOwner() view returns (address)
0x0000000000000000000000000000000000000000
tbtcMigrationTreasury() view returns (address)
0x0000000000000000000000000000000000000000
tbtcToken() view returns (address)
0x0000000000000000000000000000000000000000
Read-only
deposits(address, address, uint256) view returns (uint96 balance, uint32 unlockAt, uint96 receiptMinted, uint96 feeOwed, uint88 lastFeeIntegral, uint8 tbtcMigrationState)
feeInfo(address) view returns (uint96 totalMinted, uint32 lastFeeUpdateAt, uint88 feeIntegral, uint8 annualFee, uint8 mintCap, address receiptToken, uint96 feeCollected)
getDeposit(address depositor, address token, uint256 depositId) view returns (struct PortalDepositInfo)
liquidityTreasuryManaged(address) view returns (bool)
tbtcMigrations(address) view returns (bool isAllowed, uint96 totalMigrating)
tokenAbility(address) view returns (uint8)
State-modifying
Events acceptOwnership()
addSupportedToken(struct PortalSupportedToken supportedToken)
completeTbtcMigration(address token, struct PortalDepositToMigrate[] migratedDeposits)
deposit(address token, uint96 amount, uint32 lockPeriod)
depositFor(address depositOwner, address token, uint96 amount, uint32 lockPeriod)
initialize(struct PortalSupportedToken[] supportedTokens)
lock(address token, uint256 depositId, uint32 lockPeriod)
mintReceipt(address token, uint256 depositId, uint256 amount)
receiveApproval(address from, uint256 amount, address token, bytes data)
renounceOwnership()
repayReceipt(address token, uint256 depositId, uint256 amount)
requestTbtcMigration(address token, uint256 depositId)
setAssetAsLiquidityTreasuryManaged(address asset, bool isManaged)
setAssetTbtcMigrationAllowed(address asset, bool isAllowed)
setLiquidityTreasury(address _liquidityTreasury)
setMaxLockPeriod(uint32 _maxLockPeriod)
setMinLockPeriod(uint32 _minLockPeriod)
setReceiptParams(address token, uint8 annualFee, uint8 mintCap, address receiptToken)
setTbtcMigrationTreasury(address _tbtcMigrationTreasury)
setTbtcTokenAddress(address _tbtcToken)
transferOwnership(address newOwner)
withdraw(address token, uint256 depositId)
withdrawAsLiquidityTreasury(address token, uint256 amount)
withdrawForTbtcMigration(address token, struct PortalDepositToMigrate[] depositsToMigrate)
withdrawPartially(address token, uint256 depositId, uint96 amount)
Deposited(address indexed depositor, address indexed token, uint256 indexed depositId, uint256 amount)
FeeCollected(address indexed depositor, address indexed token, uint256 indexed depositId, uint256 fee)
FeeCollectedTbtcMigrated(address indexed depositor, address indexed token, address tbtcToken, uint256 indexed depositId, uint256 feeInTbtc)
FundedFromTbtcMigration(uint256 amount)
Initialized(uint64 version)
LiquidityTreasuryManagedAssetUpdated(address indexed asset, bool isManaged)
LiquidityTreasuryUpdated(address indexed previousLiquidityTreasury, address indexed newLiquidityTreasury)
Locked(address indexed depositor, address indexed token, uint256 indexed depositId, uint32 unlockAt, uint32 lockPeriod)
MaxLockPeriodUpdated(uint32 maxLockPeriod)
MinLockPeriodUpdated(uint32 minLockPeriod)
OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
ReceiptMinted(address indexed depositor, address indexed token, uint256 indexed depositId, uint256 amount)
ReceiptParamsUpdated(address indexed token, uint8 annualFee, uint8 mintCap, address receiptToken)
ReceiptRepaid(address indexed depositor, address indexed token, uint256 indexed depositId, uint256 amount)
SupportedTokenAdded(address indexed token, uint8 tokenAbility)
TbtcMigrationAllowedUpdated(address indexed token, bool isAllowed)
TbtcMigrationCompleted(address indexed depositor, address indexed token, uint256 indexed depositId)
TbtcMigrationRequested(address indexed depositor, address indexed token, uint256 indexed depositId)
TbtcMigrationStarted(address indexed depositor, address indexed token, uint256 indexed depositId)
TbtcMigrationTreasuryUpdated(address indexed previousMigrationTreasury, address indexed newMigrationTreasury)
TbtcTokenAddressSet(address tbtc)
Withdrawn(address indexed depositor, address indexed token, uint256 indexed depositId, uint256 amount)
WithdrawnByLiquidityTreasury(address indexed token, uint256 amount)
WithdrawnForTbtcMigration(address indexed token, uint256 amount)
WithdrawnTbtcMigrated(address indexed depositor, address indexed token, address tbtcToken, uint256 indexed depositId, uint256 amountInTbtc)
constructor()
This contract contains no fallback and receive objects.
AddressEmptyCode(address target)
AddressInsufficientBalance(address account)
AssetNotManagedByLiquidityTreasury(address asset)
DepositLocked(uint32 unlockAt)
DepositNotFound()
FailedInnerCall()
IncorrectAmount(uint256 amount)
IncorrectDepositor(address depositor)
IncorrectLockPeriod(uint256 lockPeriod)
IncorrectReceiptTokenDecimals(address receiptToken)
IncorrectTokenAbility(uint8 ability)
IncorrectTokenAddress(address token)
InsufficientTokenAbility(address token, uint8 tokenAbility)
InvalidInitialization()
LockPeriodOutOfRange(uint32 lockPeriod)
LockPeriodTooShort(uint32 lockPeriod, uint32 newUnlockAt, uint32 existingUnlockAt)
MaxAnnualFeeExceeded(uint8 annualFee)
MaxReceiptMintCapExceeded(uint8 mintCap)
NotInitializing()
OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount(address account)
PartialWithdrawalAmountTooHigh(uint256 depositAmount)
ReceiptFeeOwed(uint256 feeOwed)
ReceiptMintLimitExceeded(uint256 mintLimit, uint96 currentlyMinted, uint256 feeOwed, uint256 amount)
ReceiptMintingDisabled()
ReceiptNotRepaid(uint256 receiptMinted)
ReceiptTokenAlreadyInitialized()
RepayAmountExceededDebt(uint96 mintedDebt, uint256 amount)
SafeERC20FailedOperation(address token)
SenderNotLiquidityTreasury(address sender)
SenderNotTbtcMigrationTreasury()
TbtcCanNotBeMigrated()
TbtcMigrationAndLiquidityManagementConflict()
TbtcMigrationNotAllowed()
TbtcMigrationNotCompleted()
TbtcMigrationRequestedErr()
TbtcTokenAddressAlreadySet()
TbtcTokenAddressNotSet()
TokenAlreadySupported(address token, uint8 tokenAbility)
TokenNotSupported(address token)
UnexpectedTbtcMigrationState(uint256 depositId, uint8 currentState, uint8 expectedState)
UnknownTokenDecimals(address token)