Skip to content
ClearClear
Docs
Protocol/RedemptionAgent

RedemptionAgent

Source: contracts/extensions/RedemptionAgent.sol

1 min readView source

On this page
Network
Chain id
Address
Base Sepolia
84532

Functions that change state

Function
Who can call
Also
onERC721Received(address, address from, uint256 tokenId, bytes data)
Checked inside the function
redeemHome(uint256 homeId)
Checked inside the function
nonReentrant
release(uint256 homeId)
Checked inside the function
nonReentrant

Read functions

Anyone can call these; they change nothing.

Function
Returns
beneficialOwnerOf(uint256 tokenId)
address
deedNFT()
address
holdOf(uint256 homeId)
(address,address)
housingRecord()
address

Events

Event
Deposited(uint256 homeId indexed, address depositor indexed, address member indexed)
Redeemed(uint256 homeId indexed, address member indexed)
Released(uint256 homeId indexed, address depositor indexed)

Errors

Error
NotCoopDeed()
NotDeedNFT()
NotDepositor()
NotHeld(uint256 homeId)
NotOccupant(uint256 homeId, address member)
NotSponsor(address from)
StillLive(uint256 homeId)
WrongMember(uint256 homeId, address member)