mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-22 17:12:03 -07:00
Removing commented code
This commit is contained in:
+1
-24
@@ -32,30 +32,7 @@ class OfferLib {
|
||||
throw new Error('Invalid signature')
|
||||
}
|
||||
|
||||
// Verify psf tokens balance
|
||||
|
||||
// const psfBalance = await this.bchjs.getPSFTokenBalance(entryEntity.slpAddress)
|
||||
//
|
||||
// if (psfBalance < 10) {
|
||||
// throw new Error('Insufficient psf balance')
|
||||
// }
|
||||
//
|
||||
// const merit = await this.bchjs.getMerit(entryEntity.slpAddress)
|
||||
//
|
||||
// const updatedEntry = {
|
||||
// entry: entryEntity.entry.trim(),
|
||||
// slpAddress: entryEntity.slpAddress.trim(),
|
||||
// description: entryEntity.description.trim(),
|
||||
// signature: entryEntity.signature.trim(),
|
||||
// category: entryEntity.category.trim(),
|
||||
// balance: psfBalance,
|
||||
// merit
|
||||
// }
|
||||
//
|
||||
// const entryModel = new this.EntryModel(updatedEntry)
|
||||
// await entryModel.save()
|
||||
//
|
||||
// return entryModel
|
||||
// Add offer to P2WDB.
|
||||
|
||||
return true
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user