I read a fic a while ago in which Thor and his friends ambushed Jotenheim (just for fun I think?). There's some sort of negotiation and it's decided that Thor has to stay in Jotenheim for a year and he spends the time as Loki's personal servant/sex slave. There's a lot of politics and stuff going on in the fic, with Loki constantly fighting/scheming to gain/retain his place as crown prince of Jotenheim. A few specific things I remember was that the Jotenn culture has no concept of familial relations/loyalty and all relationships are based on necessity and mutual gain. There's a scene towards the end of the fic where Loki and his brother are both amused and confused by Thor's desire for his father's approval.
The fic ends when Thor's year is up and he goes back to Asgard. I think it was part of a series, but I don't think anymore of the series had been written (at the time that I read it).
I know that this fic is not Wild Ambition Fortune's Ice Prefers by amberfox17.
I'm 90% sure that I read it on AO3, but it might have been on lj.
I'd be so grateful if someone knows what fic this is and if they can tell me what happened to it or where I could find it! Thanks.