fix: remove grant/grant_term from inflation (#489)

This commit is contained in:
Sunny Gleason 2019-09-20 09:17:35 -04:00 committed by Michael Vines
parent 97c07c7b0a
commit e031710ae0
2 changed files with 12 additions and 7 deletions

View File

@ -82,8 +82,6 @@ type VoteAccountStatus = {
const GetInflationResult = struct({
foundation: 'number',
foundation_term: 'number',
grant: 'number',
grant_term: 'number',
initial: 'number',
storage: 'number',
taper: 'number',

View File

@ -142,8 +142,6 @@ test('get inflation', async () => {
result: {
foundation: 0.05,
foundation_term: 7.0,
grant: 0.05,
grant_term: 7.0,
initial: 0.15,
storage: 0.1,
taper: 0.15,
@ -153,9 +151,18 @@ test('get inflation', async () => {
]);
const inflation = await connection.getInflation();
expect(inflation.initial).toBeGreaterThan(0);
expect(inflation.storage).toBeGreaterThan(0);
expect(inflation.terminal).toBeGreaterThan(0);
for (const key of [
'initial',
'terminal',
'taper',
'foundation',
'foundation_term',
'storage',
]) {
expect(inflation).toHaveProperty(key);
expect(inflation[key]).toBeGreaterThan(0);
}
});
test('get slot', async () => {