Skip to content

Commit

Permalink
Add getStrategy and setWatermark method cuz it is required by logic
Browse files Browse the repository at this point in the history
  • Loading branch information
donhardman committed Jul 9, 2021
1 parent 93ecfd5 commit de77d41
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/CreatorCoin.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ public function setIsCreator(bool $is_creator): static {
return $this;
}

public function setWatermark(int $watermark): static {
$this->watermark = max($this->supply, $watermark);
return $this;
}

// https://github.com/bitclout/core/blob/d268ff4d11f98b65a0438d84b3e9a5397eaef84e/lib/block_view.go#L2039
/**
* Emulate buy creator coins of account
Expand Down Expand Up @@ -267,6 +272,10 @@ public function getLastSell(): array {
return $this->sell;
}

public function getStrategy(): string {
return $this->strategy;
}

// This method is required to call with additional parameter
// To follow code logic of salamon bug fixing
public function adjustSellAmount(int $amount, int $held): int {
Expand Down

0 comments on commit de77d41

Please sign in to comment.