OptimizedTransparentUpgradeableProxy
Verified contract
Proxy
Active on
Ethereum with 318 txns
Unified storage
Map
Table
Raw
Constants and immutables
5
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 48 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 2 additional slots
-
variable spans 47 additional slots
18 additional
variables
Balances ($0.00)
No balances found for "OptimizedTransparentUpgradeableProxy"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 20719837 | a month ago | | | 0.00011572377 | 0.0031459462 | |
| 20683878 | a month ago | | | 0.00011160805 | 0.00053853223 | |
| 20677308 | a month ago | | | 0.0056580372 | 0.00054662300 | |
| 20657050 | a month ago | | | 0 | 0.00015877012 | |
| 20607649 | 2 months ago | | | 0 | 0.00013810174 | |
| 20607648 | 2 months ago | | | 0 | 0.00018054059 | |
| 20568418 | 2 months ago | | | 0 | 0.00024043753 | |
| 20551326 | 2 months ago | | | 0 | 0.00016509048 | |
| 20532848 | 2 months ago | | | 0 | 0.00042275981 | |
| 20532847 | 2 months ago | | | 0 | 0.00040438913 |
ABI
ABI objects
Getter at block 20948051 globalEquilCovRatio() view returns (int256 equilCovRatio, int256 invariant) globalEquilCovRatioWithCredit() view returns (uint256 equilCovRatio, uint256 invariantInUint)
adaptor() view returns (address)
0xaceb589012edbbee4ce7b4e89b916700b43419ca
ampFactor() view returns (uint256)
250000000000000
creditForTokensHaircut() view returns (uint128)
300000000000000
dev() view returns (address)
0x5781b4fe4fadb61ea2483eedd9498388f9b353b1
endCovRatio() view returns (uint128)
1800000000000000000
feeTo() view returns (address)
0x5781b4fe4fadb61ea2483eedd9498388f9b353b1
getTokens() view returns (address[])
[0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, 0xdAC17F958D2ee523a2206206994597C13D831ec7]
haircutRate() view returns (uint256)
400000000000000
lpDividendRatio() view returns (uint256)
500000000000000000
masterWombat() view returns (address)
0xc9bfc3efefe4cf96877009f75a61f5c1937e5d1a
maximumInboundCredit() view returns (uint128)
100000000000000000000000
maximumOutboundCredit() view returns (uint128)
100000000000000000000000
mintFeeThreshold() view returns (uint256)
10000000000000000000
owner() view returns (address)
0x5781b4fe4fadb61ea2483eedd9498388f9b353b1
paused() view returns (bool)
false
retentionRatio() view returns (uint256)
500000000000000000
startCovRatio() view returns (uint128)
1500000000000000000
swapCreditForTokensEnabled() view returns (bool)
true
swapTokensForCreditEnabled() view returns (bool)
true
tokensForCreditHaircut() view returns (uint128)
300000000000000
totalCreditBurned() view returns (uint128)
181439967302213587037872
totalCreditMinted() view returns (uint128)
178383607005796294683055
withdrawalHaircutRate() view returns (uint256)
0
Read-only
addressOfAsset(address token) view returns (address)
creditBalance(address) view returns (uint256)
exchangeRate(address token) view returns (uint256 xr)
isPaused(address token) view returns (bool)
quoteAmountIn(address fromToken, address toToken, int256 toAmount) view returns (uint256 amountIn, uint256 haircut)
quotePotentialDeposit(address token, uint256 amount) view returns (uint256 liquidity)
quotePotentialSwap(address fromToken, address toToken, int256 fromAmount) view returns (uint256 potentialOutcome, uint256 haircut)
quotePotentialWithdraw(address token, uint256 liquidity) view returns (uint256 amount)
quotePotentialWithdrawFromOtherAsset(address fromToken, address toToken, uint256 liquidity) view returns (uint256 finalAmount, uint256 withdrewAmount)
quoteSwapCreditForTokens(address toToken, uint256 fromCreditAmount) view returns (uint256 actualToAmount, uint256 toTokenFee)
quoteSwapTokensForCredit(address fromToken, uint256 fromAmount) view returns (uint256 creditAmount, uint256 fromTokenFee)
tipBucketBalance(address token) view returns (uint256 balance)
State-modifying
Events admin() returns (address admin_)
implementation() returns (address implementation_)
upgradeTo(address newImplementation)
upgradeToAndCall(address newImplementation, bytes data) payable
addAsset(address token, address asset)
completeSwapCreditForTokens(address toToken, uint256 fromAmount, uint256 minimumToAmount, address receiver) returns (uint256 actualToAmount, uint256 toTokenFee)
deposit(address token, uint256 amount, uint256 minimumLiquidity, address to, uint256 deadline, bool shouldStake) returns (uint256 liquidity)
fillPool(address token, uint256 amount)
initialize(uint256 ampFactor_, uint256 haircutRate_)
mintCredit(uint256 creditAmount, address receiver)
mintFee(address token) returns (uint256 feeCollected)
pause()
pauseAsset(address token)
removeAsset(address token)
renounceOwnership()
setAdaptorAddr(address _adaptor)
setAmpFactor(uint256 ampFactor_)
setCovRatioFeeParam(uint128 startCovRatio_, uint128 endCovRatio_)
setCrossChainHaircut(uint128 _tokensForCreditHaircut, uint128 _creditForTokensHaircut)
setDev(address dev_)
setFee(uint256 lpDividendRatio_, uint256 retentionRatio_)
setFeeTo(address feeTo_)
setHaircutRate(uint256 haircutRate_)
setMasterWombat(address masterWombat_)
setMaximumInboundCredit(uint128 _maximumInboundCredit)
setMaximumOutboundCredit(uint128 _maximumOutboundCredit)
setMintFeeThreshold(uint256 mintFeeThreshold_)
setSwapCreditForTokensEnabled(bool enable)
setSwapTokensForCreditEnabled(bool enable)
setWithdrawalHaircutRate(uint256 withdrawalHaircutRate_)
swap(address fromToken, address toToken, uint256 fromAmount, uint256 minimumToAmount, address to, uint256 deadline) returns (uint256 actualToAmount, uint256 haircut)
swapCreditForTokens(address toToken, uint256 fromAmount, uint256 minimumToAmount, address receiver) returns (uint256 actualToAmount, uint256 toTokenFee)
swapCreditForTokensCrossChain(address toToken, uint256 toChain, uint256 fromAmount, uint256 minimumToAmount, address receiver, uint256 receiverValue, uint256 deliveryGasLimit) payable returns (uint256 trackingId)
swapTokensForTokensCrossChain(address fromToken, address toToken, uint256 toChain, uint256 fromAmount, uint256 minimumCreditAmount, uint256 minimumToAmount, address receiver, uint256 receiverValue, uint256 deliveryGasLimit) payable returns (uint256 creditAmount, uint256 fromTokenFee, uint256 sequence)
transferOwnership(address newOwner)
transferTipBucket(address token, uint256 amount, address to)
unpause()
unpauseAsset(address token)
withdraw(address token, uint256 liquidity, uint256 minimumAmount, address to, uint256 deadline) returns (uint256 amount)
withdrawFromOtherAsset(address fromToken, address toToken, uint256 liquidity, uint256 minimumAmount, address to, uint256 deadline) returns (uint256 toAmount)
AdminChanged(address previousAdmin, address newAdmin)
BeaconUpgraded(address indexed beacon)
Upgraded(address indexed implementation)
AssetAdded(address indexed token, address indexed asset)
AssetRemoved(address indexed token, address indexed asset)
Deposit(address indexed sender, address token, uint256 amount, uint256 liquidity, address indexed to)
FillPool(address token, uint256 amount)
Initialized(uint8 version)
MintCredit(address indexed receiver, uint256 creditAmount)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Paused(address account)
PausedAsset(address token, address account)
SetAmpFactor(uint256 value)
SetDev(address addr)
SetFee(uint256 lpDividendRatio, uint256 retentionRatio)
SetFeeTo(address addr)
SetHaircutRate(uint256 value)
SetMasterWombat(address addr)
SetMintFeeThreshold(uint256 value)
SetWithdrawalHaircutRate(uint256 value)
SwapCreditForTokens(uint256 creditAmount, address indexed toToken, uint256 toAmount, uint256 toTokenFee, address indexed receiver)
SwapTokensForCredit(address indexed sender, address indexed fromToken, uint256 fromAmount, uint256 fromTokenFee, uint256 creditAmount)
SwapV2(address indexed sender, address fromToken, address toToken, uint256 fromAmount, uint256 toAmount, uint256 toTokenFee, address indexed to)
TransferTipBucket(address token, uint256 amount, address to)
Unpaused(address account)
UnpausedAsset(address token, address account)
Withdraw(address indexed sender, address token, uint256 amount, uint256 liquidity, address indexed to)
constructor(address _logic, address admin_, bytes _data)
fallback()
receive()
POOL__CREDIT_NOT_ENOUGH()
POOL__REACH_MAXIMUM_BURNED_CREDIT()
POOL__REACH_MAXIMUM_MINTED_CREDIT()
POOL__SWAP_CREDIT_FOR_TOKENS_DISABLED()
POOL__SWAP_TOKENS_FOR_CREDIT_DISABLED()
WOMBAT_AMOUNT_TOO_LOW()
WOMBAT_ASSET_ALREADY_EXIST()
WOMBAT_ASSET_ALREADY_PAUSED()
WOMBAT_ASSET_NOT_EXISTS()
WOMBAT_ASSET_NOT_PAUSED()
WOMBAT_CASH_NOT_ENOUGH()
WOMBAT_COV_RATIO_LIMIT_EXCEEDED()
WOMBAT_EXPIRED()
WOMBAT_FORBIDDEN()
WOMBAT_INVALID_VALUE()
WOMBAT_SAME_ADDRESS()
WOMBAT_ZERO_ADDRESS()
WOMBAT_ZERO_AMOUNT()
WOMBAT_ZERO_CREDIT_AMOUNT()
WOMBAT_ZERO_LIQUIDITY()