Portal

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x9f4b2631 at 20791437
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 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(addressaddressuint256view returns (uint96 balanceuint32 unlockAtuint96 receiptMinteduint96 feeOweduint88 lastFeeIntegraluint8 tbtcMigrationState)
feeInfo(addressview returns (uint96 totalMinteduint32 lastFeeUpdateAtuint88 feeIntegraluint8 annualFeeuint8 mintCapaddress receiptTokenuint96 feeCollected)
getDeposit(address depositoraddress tokenuint256 depositIdview returns (struct PortalDepositInfo)
liquidityTreasuryManaged(addressview returns (bool)
tbtcMigrations(addressview returns (bool isAlloweduint96 totalMigrating)
tokenAbility(addressview returns (uint8)
State-modifying
acceptOwnership(
addSupportedToken(struct PortalSupportedToken supportedToken
completeTbtcMigration(address tokenstruct PortalDepositToMigrate[] migratedDeposits
deposit(address tokenuint96 amountuint32 lockPeriod
depositFor(address depositOwneraddress tokenuint96 amountuint32 lockPeriod
initialize(struct PortalSupportedToken[] supportedTokens
lock(address tokenuint256 depositIduint32 lockPeriod
mintReceipt(address tokenuint256 depositIduint256 amount
receiveApproval(address fromuint256 amountaddress tokenbytes data
renounceOwnership(
repayReceipt(address tokenuint256 depositIduint256 amount
requestTbtcMigration(address tokenuint256 depositId
setAssetAsLiquidityTreasuryManaged(address assetbool isManaged
setAssetTbtcMigrationAllowed(address assetbool isAllowed
setLiquidityTreasury(address _liquidityTreasury
setMaxLockPeriod(uint32 _maxLockPeriod
setMinLockPeriod(uint32 _minLockPeriod
setReceiptParams(address tokenuint8 annualFeeuint8 mintCapaddress receiptToken
setTbtcMigrationTreasury(address _tbtcMigrationTreasury
setTbtcTokenAddress(address _tbtcToken
transferOwnership(address newOwner
withdraw(address tokenuint256 depositId
withdrawAsLiquidityTreasury(address tokenuint256 amount
withdrawForTbtcMigration(address tokenstruct PortalDepositToMigrate[] depositsToMigrate
withdrawPartially(address tokenuint256 depositIduint96 amount
Events
Deposited(address indexed depositoraddress indexed tokenuint256 indexed depositIduint256 amount
FeeCollected(address indexed depositoraddress indexed tokenuint256 indexed depositIduint256 fee
FeeCollectedTbtcMigrated(address indexed depositoraddress indexed tokenaddress tbtcTokenuint256 indexed depositIduint256 feeInTbtc
FundedFromTbtcMigration(uint256 amount
Initialized(uint64 version
LiquidityTreasuryManagedAssetUpdated(address indexed assetbool isManaged
LiquidityTreasuryUpdated(address indexed previousLiquidityTreasuryaddress indexed newLiquidityTreasury
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
ReceiptMinted(address indexed depositoraddress indexed tokenuint256 indexed depositIduint256 amount
ReceiptParamsUpdated(address indexed tokenuint8 annualFeeuint8 mintCapaddress receiptToken
ReceiptRepaid(address indexed depositoraddress indexed tokenuint256 indexed depositIduint256 amount
SupportedTokenAdded(address indexed tokenuint8 tokenAbility
TbtcMigrationAllowedUpdated(address indexed tokenbool isAllowed
TbtcMigrationCompleted(address indexed depositoraddress indexed tokenuint256 indexed depositId
TbtcMigrationRequested(address indexed depositoraddress indexed tokenuint256 indexed depositId
TbtcMigrationStarted(address indexed depositoraddress indexed tokenuint256 indexed depositId
TbtcMigrationTreasuryUpdated(address indexed previousMigrationTreasuryaddress indexed newMigrationTreasury
TbtcTokenAddressSet(address tbtc
Withdrawn(address indexed depositoraddress indexed tokenuint256 indexed depositIduint256 amount
WithdrawnByLiquidityTreasury(address indexed tokenuint256 amount
WithdrawnForTbtcMigration(address indexed tokenuint256 amount
WithdrawnTbtcMigrated(address indexed depositoraddress indexed tokenaddress tbtcTokenuint256 indexed depositIduint256 amountInTbtc
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors
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 tokenuint8 tokenAbility
InvalidInitialization(
LockPeriodOutOfRange(uint32 lockPeriod
LockPeriodTooShort(uint32 lockPerioduint32 newUnlockAtuint32 existingUnlockAt
MaxAnnualFeeExceeded(uint8 annualFee
MaxReceiptMintCapExceeded(uint8 mintCap
NotInitializing(
OwnableInvalidOwner(address owner
OwnableUnauthorizedAccount(address account
PartialWithdrawalAmountTooHigh(uint256 depositAmount
ReceiptFeeOwed(uint256 feeOwed
ReceiptMintLimitExceeded(uint256 mintLimituint96 currentlyMinteduint256 feeOweduint256 amount
ReceiptMintingDisabled(
ReceiptNotRepaid(uint256 receiptMinted
ReceiptTokenAlreadyInitialized(
RepayAmountExceededDebt(uint96 mintedDebtuint256 amount
SafeERC20FailedOperation(address token
SenderNotLiquidityTreasury(address sender
SenderNotTbtcMigrationTreasury(
TbtcCanNotBeMigrated(
TbtcMigrationAndLiquidityManagementConflict(
TbtcMigrationNotAllowed(
TbtcMigrationNotCompleted(
TbtcMigrationRequestedErr(
TbtcTokenAddressAlreadySet(
TbtcTokenAddressNotSet(
TokenAlreadySupported(address tokenuint8 tokenAbility
TokenNotSupported(address token
UnexpectedTbtcMigrationState(uint256 depositIduint8 currentStateuint8 expectedState
UnknownTokenDecimals(address token