new wasm functions: `newAllocationTokensToLock` and `updateAllocationTokensToLock`
boddumanohar opened this issue · 2 comments
boddumanohar commented
newAllocationTokensToLock
--> given an new allocation request, the parameters should be exactly same as a newallocation
and should return the minimum no of tokens to lock in writepool
newAllocationTokensToLock
--> given an update allocation request, the parameters should be exactly same as updateallocation
and should return the minimum no of tokens to lock in writepool
boddumanohar commented
when trying to reduce allocation, the allocation size cannot be less than used size.
peterlimg commented
getAllocationMinLock can be used for get min lock tokens for new allocation. I'll add the new endpoint for getting min lock requirements for updating allocation.