BAMM

Verified contract

Active on Ethereum with 1,695 txns
Deployed by via 0xbb174b1e at 14067816
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $279.37
ERC-20
Value $21,952.78
0x460c9ed8fb567d7ec249d1e04f77fa57273cf9dddc11c3bf479350fb994de9b7
0xbe3f3d97e84ed8c75702c909f0a1dd951875320d10f7b7f78a7ba56b36d9005c
0xe6e7ae6ae0ca23ef72c6ab828a7c1e93502c80b90acefc5ee03b2e26168d38f5
From
0xb8d9ab08ff706e7b1d95a456cbd71290f2c3d3325879486216be05082d135837
From
0xdbb40e16db3a52057d6c15d71bffb3c4fc7e2a968f5e78df92a6367beb49de4b
From
0xa595e09f2f1a60c833562b628e7665641c35b55cf88a6b33716730285ecb60c7
0xd4f9a61a914ac9a9af9a7c4c424e48e4ea1182d99a41ab9d5788496e707f0fa2
0xfda67f2873266de1475d30e92120b7454ecd708cba95d734831641b29dc95784
0xb387bee64c2f735d0dd10620fe4a067c0b5c437c7b0ec16f0b140dc3cb5504c0
0x7e9e77f1074b7c4aa0302cfe6cddeef09a1cc94fea41c591ed4e026966f041d1

Functions
Getter at block 21243893
A(view returns (uint256)
20
LUSD(view returns (address)
0x5f98805a4e8be255a32880fdec7f6728c6568ba0
MAX_A(view returns (uint256)
200
MAX_FEE(view returns (uint256)
100
MIN_A(view returns (uint256)
20
PRECISION(view returns (uint256)
1000000000000000000
SP(view returns (address)
0x66017d22b0f8556afdd19fc67041899eb65a21bb
bonus(view returns (address)
0x6dea81c8171d0ba574754ef6f8b412f2ed88c54d
dec(view returns (uint256)
18
decimals(view returns (uint256)
18
fee(view returns (uint256)
100
feePool(view returns (address)
0x7095f0b91a1010c11820b4e263927835a4cf52c9
fetchPrice(view returns (uint256)
3303523981820000000000
frontEndTag(view returns (address)
0x0000000000000000000000000000000000000000
gem(view returns (address)
0x113b3a7b3eeddc47978e659eca8190c7d90dc6ae
ilk(view returns (bytes32)
0x422e414d4d000000000000000000000000000000000000000000000000000000
isOwner(view returns (bool)
false
lusd2UsdPriceAggregator(view returns (address)
0x3d7ae7e594f2f2091ad8798313450130d0aba3a0
maxDiscount(view returns (uint256)
400
name(view returns (string)
B.AMM LUSD-ETH
owner(view returns (address)
0xf7d44d5a28d5af27a7f9c8fc6efe0129e554d7c4
priceAggregator(view returns (address)
0x5f4ec3df9cbd43714fe2740f5e3616155c5b8419
share(view returns (uint256)
448853559845436593884174787
stock(view returns (uint256)
18142789854759394548177
symbol(view returns (string)
LUSDETH
total(view returns (uint256)
84310934458984804283372
totalSupply(view returns (uint256)
84310934458984804283372
vat(view returns (address)
0x7b1ae94612965bfff7fae25ee79fc5eb913bd1b4
Read-only
add(uint256 xuint256 ypure returns (uint256 z)
balanceOf(address ownerview returns (uint256 balance)
compensateForLusdDeviation(uint256 ethAmountview returns (uint256 newEthAmount)
crops(addressview returns (uint256)
getConversionRate(addressaddressuint256 srcQtyuint256view returns (uint256)
getReturn(uint256 xQtyuint256 xBalanceuint256 yBalanceuint256 Apure returns (uint256)
getSumFixedPoint(uint256 xuint256 yuint256 Apure returns (uint256)
getSwapEthAmount(uint256 lusdQtyview returns (uint256 ethAmountuint256 feeLusdAmount)
mul(uint256 xuint256 ypure returns (uint256 z)
rdiv(uint256 xuint256 ypure returns (uint256 z)
rmul(uint256 xuint256 ypure returns (uint256 z)
rmulup(uint256 xuint256 ypure returns (uint256 z)
stake(addressview returns (uint256)
sub(uint256 xuint256 ypure returns (uint256 z)
wdiv(uint256 xuint256 ypure returns (uint256 z)
wdivup(uint256 xuint256 ypure returns (uint256 z)
wmul(uint256 xuint256 ypure returns (uint256 z)
State-modifying
deposit(uint256 lusdAmount
nav(returns (uint256)
nps(returns (uint256)
setParams(uint256 _Auint256 _fee
swap(uint256 lusdAmountuint256 minEthReturnaddress destreturns (uint256)
trade(addressuint256 srcAmountaddressaddress destAddressuint256boolpayable returns (bool)
transferOwnership(address newOwner
withdraw(uint256 numShares
Events
Exit(uint256 val
Flee(
Join(uint256 val
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
ParamsSet(uint256 Auint256 fee
RebalanceSwap(address indexed useruint256 lusdAmountuint256 ethAmountuint256 timestamp
Tack(address indexed srcaddress indexed dstuint256 wad
Transfer(address indexed _fromaddress indexed _touint256 _value
UserDeposit(address indexed useruint256 lusdAmountuint256 numShares
UserWithdraw(address indexed useruint256 lusdAmountuint256 ethAmountuint256 numShares
Constructor
constructor(address _priceAggregatoraddress _lusd2UsdPriceAggregatoraddress _SPaddress _LUSDaddress _LQTYuint256 _maxDiscountaddress _feePooladdress _fronEndTag
Fallback and receive
receive(
Errors

This contract contains no error objects.