Skip to content

Commit

Permalink
Merge pull request #164 from TxnLab/dev
Browse files Browse the repository at this point in the history
fix(nodemgr): contract expects 2 algo for now on every 'go online' call (until opcodes that can detect it are available)
  • Loading branch information
pbennett authored May 21, 2024
2 parents eeaa644 + b71c524 commit da9653a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/bootstrap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap",
"version": "0.8.9",
"version": "0.8.10",
"description": "",
"main": "index.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reti-contracts",
"version": "0.8.9",
"version": "0.8.10",
"license": "MIT",
"scripts": {
"generate-client": "algokit generate client contracts/artifacts/ --language typescript --output contracts/clients/{contract_name}Client.ts && ./update_contract_artifacts.sh``",
Expand Down
3 changes: 2 additions & 1 deletion nodemgr/internal/lib/reti/stakingpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ func (r *Reti) GoOnline(poolAppID uint64, caller types.Address, needsIncentiveFe

var goOnlineFee uint64 = 0
// if going offline to online - pay extra 2 algo so the account is payouts eligible !
if needsIncentiveFeePaid {
//if needsIncentiveFeePaid {
if true {
// TODO - this is temporary - need to wait until AVM has opcode which can detect if account isn't currently
// eligible for incentives and only then to pay the extra fee
// account return will also have IncentiveEligible property which caller will use when calling us.
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reti-ui",
"version": "0.8.9",
"version": "0.8.10",
"private": true,
"type": "module",
"engines": {
Expand Down

0 comments on commit da9653a

Please sign in to comment.