prevRewrapTime
to sarcophagi so that we can calculate the correct amount to pay out to each archaeologist on rewrap - update to block.timestamp
on each rewrapmaxResurrectionTime
to sarcophagi so that we can limit the responsibility of archaeologists over time - this will allow us to combine freeBond
and diggingFee
without causing archaeologists to never be able to exit the system - on rewrap, revert if new resurrection time > maxResurrectionTime
- embalmer can either bury the sarcophagus or let it resurrectmaxResurrectionTime
to archaeologist profilesmaxResurrectionTime
- should be very similar to maximumRewrapInterval
negotiation - update signature verification utility to check maxResurrectionTime
protocolFeeBasePercentage
, admin can set and change the value - default to 1 - needs to be stored on the sarcophagus at creation time and read from the sarcophagus itself to determine locked bond on rewraps - if we don’t do it this way and the value changes, we could end up with bond getting calculated using one multiplier at lock time and a different multiplier at refund timediggingFeesPerSecond
values**February 3, 2023 2:06 AM (EST)February 3, 2023 2:06 AM (EST)February 3, 2023 2:06 AM (EST)
createSarcophagus
to lock archaeologist bond equal to diggingFeesPerSecond * (resurrectionTime - creationTime)
- locked bond will always equal the amount being charged to the embalmer for that archaeologist times the configurable bond multiplierembalmerCost = diggingFeesPerSecond * (newResurrectionTime - currentTime)
- newLockedBond = multiplier * diggingFeesPerSecond * (newResurrectionTime - currentTime)
- some amount will already have been locked by the previous rewrap. The previous locked bond will need to be calculated first and then some amount will either be added or removed from the archaeologist’s lockedBond
depending on whether this rewrap interval is longer or shorter than the previous one - archPayout = diggingFeesPerSecond * (oldResurrectionTime - prevRewrapTime
- this should be equal to the amount the embalmer paid into the contracts on the previous rewrap**February 3, 2023 2:06 AM (EST)February 3, 2023 2:06 AM (EST)February 3, 2023 2:06 AM (EST)
freeBond
and diggingFee
so that archaeologist rewards can always be used to fund the new bond amount being locked on rewrap - transfer digging fees to archaeologists before locking new bond on rewrap to ensure adequate balance - we may cap rewraps based on length of previous rewrap interval - if an embalmer increases their rewrap interval by more than 2x, the archaeologist rewards will not be sufficient to meet their locked bond requirements on the subsequent rewrap - I think that we should consider just requiring that archaeologists keep adequate locked bond available, an embalmer will be in an expensive/time consuming position to recover from if they set some low rewrap interval one time on a sarcophagus that they really want long intervals onprevRewrapTime
and multiplier
diggingFee
on CursedArchaeologist
and minimumDiggingFee
on ArchaeologistProfile
to be a per second value - probably worth renaming the variables to make units clear**February 3, 2023 2:07 AM (EST)February 3, 2023 2:07 AM (EST)February 3, 2023 2:07 AM (EST)
they're not in an especially clean format right now but I thought pasting them into the chat might be useful in case we decide to discuss them tomorrow morning