Interest rate peg

That sounds like a perfect foresight scenario. There must be example codes in the forum. E.g.