Skip to content
This repository was archived by the owner on Apr 18, 2023. It is now read-only.

Commit 84c682e

Browse files
committed
set token names
1 parent c5bd53b commit 84c682e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/fab.sol

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ contract DaiFab is DSAuth {
9595
sai = gemFab.newTok('DAI');
9696
sin = gemFab.newTok('SIN');
9797
skr = gemFab.newTok('PETH');
98+
sai.setName('Dai Stablecoin v1.0');
99+
sin.setName('SIN');
100+
skr.setName('Pooled Ether');
98101
step += 1;
99102
}
100103

src/sai.t.sol

+12
Original file line numberDiff line numberDiff line change
@@ -2545,3 +2545,15 @@ contract DustTest is SaiTestBase {
25452545
tub.free(cup, 0.995 ether);
25462546
}
25472547
}
2548+
2549+
contract SymbologyTest is SaiTestBase {
2550+
function testSymbology() public {
2551+
assertEq(sai.symbol(), 'DAI');
2552+
assertEq(sin.symbol(), 'SIN');
2553+
assertEq(skr.symbol(), 'PETH');
2554+
2555+
assertEq(sai.name(), 'Dai Stablecoin v1.0');
2556+
assertEq(sin.name(), 'SIN');
2557+
assertEq(skr.name(), 'Pooled Ether');
2558+
}
2559+
}

0 commit comments

Comments
 (0)