File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
ui/modals/partkey/transaction Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -64,18 +64,13 @@ func (m ViewModel) Account() *algod.Account {
6464 return nil
6565}
6666
67- func (m ViewModel ) IsIncentiveProtocol () bool {
68- return m .State .Status .LastProtocolVersion == "https://github.com/algorandfoundation/specs/tree/236dcc18c9c507d794813ab768e467ea42d1b4d9"
69- }
70-
7167// Whether the 2A incentive fee should be added
7268func (m ViewModel ) ShouldAddIncentivesFee () bool {
7369 // conditions for 2A fee:
7470 // 1) incentives allowed by user: command line flag to disable incentives has not been passed
7571 // 2) online keyreg
76- // 3) protocol supports incentives
77- // 4) account is not already incentives eligible
78- return m .State != nil && ! m .State .IncentivesDisabled && ! m .OfflineControls && m .IsIncentiveProtocol () && m .Account () != nil && ! m .Account ().IncentiveEligible
72+ // 3) account is not already incentives eligible
73+ return m .State != nil && ! m .State .IncentivesDisabled && ! m .OfflineControls && m .Account () != nil && ! m .Account ().IncentiveEligible
7974}
8075
8176func (m * ViewModel ) UpdateState () {
You can’t perform that action at this time.
0 commit comments