FriendShares

Verified contract

Active on Base with 18 txns
Deployed by via 0xe42f01fc at 3142593
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Native
Value $288.69
0x3f67e9c90881013579e28ff2f92572cc4281c9b7cdccf361626e7f01b60d36f1
0x3cc4e6392c33bf0c2b1fd8b78fc9015d5add7470911d1f2e42622b822afcbca8
0x66c002a5d084cd2404445000b3143201b8de77865a074c075cdfde9302bfb0ec
0xf04cdfdf1153181362f68df8f112ca6c8a65126bc3196e521c73ba9aadc79e5b
0xd687b2317b0f5d7815c33509569b5a899e192a4295b200a0edfe94926e769fa0
0xbb3ef6a6c1973fc87825b346ed6ae0ea03aee20d2eaf95f28155bb7198b359a7
0x80567587fb352013b9ce73c07d65dc4a9ad4fb57c04aeb03a0fe719a2f6bd516
0x1374f032713dd0ddee1c09cb2d319f93eab9a50d058a499b6d9ffb125a18abd7
0x5cd4441a648e68e7394d36f47ddd6c07361052b2a7e6d20c6830a8d42e7c047c
0xd5908fcf2bfb85f73a6d088ae86d9c72d1f39852e6f5cde3f5b24b0142517768

Functions
Getter at block 23268833
protocol(view returns (address)
0x8fcc36cca8de6e5d6c44d4de5f8fbca86742e0af
Read-only
balanceOf(address useraddress ownerview returns (uint256)
getBuyInfo(uint128 spotPriceuint256 numItemspure returns (uint128 newSpotPriceuint256 inputValueuint256 userFeeuint256 protocolFee)
getSellInfo(uint128 spotPriceuint256 numItemspure returns (uint128 newSpotPriceuint256 outputValueuint256 userFeeuint256 protocolFee)
users(address userview returns (uint128 supplyuint128 price)
State-modifying
buyShares(address useruint128 amountaddress recipientpayable 
sellShares(address useruint128 amountaddress recipient
Events
BuyShares(address indexed traderaddress indexed useruint256 sharesuint256 value
SellShares(address indexed traderaddress indexed useruint256 sharesuint256 value
Constructor
constructor(address _protocol
Fallback and receive

This contract contains no fallback and receive objects.

Errors
InsufficientPayment(
InvalidNumItems(
SpotPriceOverflow(
SpotPriceUnderflow(