@dhyasama/totem-models 9.2.0 → 9.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/CapTable.js +0 -5
  2. package/package.json +1 -1
package/lib/CapTable.js CHANGED
@@ -34,9 +34,6 @@ module.exports = function(mongoose, config) {
34
34
  // optional reference to download the cap table file
35
35
  document: { type: Schema.ObjectId, ref: 'Document', required: false },
36
36
 
37
- // single pool of unissued options for the org
38
- unissued: { type: Number, default: 0 },
39
-
40
37
  // computed on save (via pre-save hook); don't set directly;
41
38
  shares: { type: Number, default: 0 },
42
39
 
@@ -48,7 +45,6 @@ module.exports = function(mongoose, config) {
48
45
  rounds: [{
49
46
  round: { type: String, trim: true, required: true },
50
47
  shares: { type: Number, default: 0 },
51
- ownership: { type: Number, default: 0 }
52
48
  }],
53
49
 
54
50
  // computed on save (via pre-save hook); don't set directly;
@@ -375,7 +371,6 @@ module.exports = function(mongoose, config) {
375
371
  self.shares = _.reduce(self.stakeholders, function(memo, stakeholder) {
376
372
  return memo + stakeholder.shares;
377
373
  }, 0);
378
- self.shares = self.shares + self.unissued;
379
374
 
380
375
  // Calculate each stakeholders ownership
381
376
  _.each(self.stakeholders, function(stakeholder) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "9.2.0",
3
+ "version": "9.4.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",