ThalesAMM

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0x85e28c0a at 2439493
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
14 additional variables

No balances found for "ThalesAMM"

No transactions found for "ThalesAMM"


Functions
Getter at block 22326431
capPerMarket(view returns (uint256)
0
curveOnrampEnabled(view returns (bool)
false
curveSUSD(view returns (address)
0x0000000000000000000000000000000000000000
dai(view returns (address)
0x0000000000000000000000000000000000000000
lastPauseTime(view returns (uint256)
0
liquidityPool(view returns (address)
0x0000000000000000000000000000000000000000
manager(view returns (address)
0x0000000000000000000000000000000000000000
maxAllowedPegSlippagePercentage(view returns (uint256)
0
maxSupportedPrice(view returns (uint256)
0
max_spread(view returns (uint256)
0
minSupportedPrice(view returns (uint256)
0
min_spread(view returns (uint256)
0
minimalTimeLeftToMaturity(view returns (uint256)
0
nominatedOwner(view returns (address)
0x0000000000000000000000000000000000000000
owner(view returns (address)
0x0000000000000000000000000000000000000000
paused(view returns (bool)
false
priceFeed(view returns (address)
0x0000000000000000000000000000000000000000
referrals(view returns (address)
0x0000000000000000000000000000000000000000
referrerFee(view returns (uint256)
0
sUSD(view returns (address)
0x0000000000000000000000000000000000000000
safeBox(view returns (address)
0x0000000000000000000000000000000000000000
safeBoxImpact(view returns (uint256)
0
stakingThales(view returns (address)
0x0000000000000000000000000000000000000000
usdc(view returns (address)
0x0000000000000000000000000000000000000000
usdt(view returns (address)
0x0000000000000000000000000000000000000000
Read-only
availableToBuyFromAMM(address marketuint8 positionview returns (uint256 _available)
availableToSellToAMM(address marketuint8 positionview returns (uint256 _available)
buyFromAmmQuote(address marketuint8 positionuint256 amountview returns (uint256 _quote)
buyFromAmmQuoteWithDifferentCollateral(address marketuint8 positionuint256 amountaddress collateralview returns (uint256 collateralQuoteuint256 sUSDToPay)
buyPriceImpact(address marketuint8 positionuint256 amountview returns (int256 _priceImpact)
getCapPerAsset(bytes32 assetview returns (uint256 _cap)
impliedVolatilityPerAsset(bytes32view returns (uint256)
isMarketInAMMTrading(address marketview returns (bool isTrading)
min_spreadPerAddress(addressview returns (uint256)
price(address marketuint8 positionview returns (uint256 priceToReturn)
safeBoxFeePerAddress(addressview returns (uint256)
sellPriceImpact(address marketuint8 positionuint256 amountview returns (uint256 _impact)
sellToAmmQuote(address marketuint8 positionuint256 amountview returns (uint256 _quote)
spentOnMarket(addressview returns (uint256)
whitelistedAddresses(addressview returns (bool)
State-modifying
acceptOwnership(
buyFromAMM(address marketuint8 positionuint256 amountuint256 expectedPayoutuint256 additionalSlippagereturns (uint256)
buyFromAMMWithDifferentCollateralAndReferrer(address marketuint8 positionuint256 amountuint256 expectedPayoutuint256 additionalSlippageaddress collateraladdress _referrerreturns (uint256)
buyFromAMMWithReferrer(address marketuint8 positionuint256 amountuint256 expectedPayoutuint256 additionalSlippageaddress _referrerreturns (uint256)
initNonReentrant(
initialize(address _owneraddress _priceFeedaddress _sUSDuint256 _capPerMarketaddress _deciMathuint256 _min_spreaduint256 _max_spreaduint256 _minimalTimeLeftToMaturity
nominateNewOwner(address _owner
retrieveSUSDAmount(address accountuint256 amount
sellToAMM(address marketuint8 positionuint256 amountuint256 expectedPayoutuint256 additionalSlippagereturns (uint256)
setAmmUtils(address _ammUtils
setCapPerAsset(bytes32 assetuint256 _cap
setCurveSUSD(address _curveSUSDaddress _daiaddress _usdcaddress _usdtbool _curveOnrampEnableduint256 _maxAllowedPegSlippagePercentage
setImpliedVolatilityPerAsset(bytes32 assetuint256 _impliedVolatility
setLiquidityPool(address _liquidityPool
setMinMaxSpread(uint256 _minspreaduint256 _maxspread
setMinMaxSupportedPriceAndCap(uint256 _minSupportedPriceuint256 _maxSupportedPriceuint256 _capPerMarket
setMinSpreadPerAddress(address _addressuint256 newFee
setMinimalTimeLeftToMaturity(uint256 _minimalTimeLeftToMaturity
setOwner(address _owner
setPaused(bool _paused
setPositionalMarketManager(address _manager
setPriceFeedAndSUSD(address _priceFeedaddress _sUSD
setSafeBoxData(address _safeBoxuint256 _safeBoxImpact
setSafeBoxFeePerAddress(address _addressuint256 newFee
setStakingThalesAndReferrals(address _stakingThalesaddress _referralsuint256 _referrerFee
setWhitelistedAddress(address _addressbool enabled
transferOwnershipAtInit(address proxyAddress
transferTokens(address[] tokensaddress accountuint256 amountbool all
Events
BoughtFromAmm(address buyeraddress marketuint8 positionuint256 amountuint256 sUSDPaidaddress susdaddress asset
BoughtOptionType(address buyeruint256 sUSDPaidbool inTheMoney
BoughtWithDiscount(address buyeruint256 amountuint256 sUSDPaid
OwnerChanged(address oldOwneraddress newOwner
OwnerNominated(address newOwner
PauseChanged(bool isPaused
ReferrerPaid(address reffereraddress traderuint256 amountuint256 volume
SetCapPerAsset(bytes32 assetuint256 _cap
SetImpliedVolatilityPerAsset(bytes32 assetuint256 _impliedVolatility
SetMaxSpread(uint256 _spread
SetMinMaxSupportedPriceCapPerMarket(uint256 minPriceuint256 maxPriceuint256 capPerMarket
SetMinSpread(uint256 _spread
SetMinimalTimeLeftToMaturity(uint256 _minimalTimeLeftToMaturity
SetPositionalMarketManager(address _manager
SetPriceFeed(address _priceFeed
SetSUSD(address sUSD
SetSafeBox(address _safeBox
SetSafeBoxImpact(uint256 _safeBoxImpact
SoldToAMM(address selleraddress marketuint8 positionuint256 amountuint256 sUSDPaidaddress susdaddress asset
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.